# How to use Charting

**URL:** <https://forums.fusetools.com/t/how-to-use-charting/6342>\
**Category:** How-to Discussions\
**Created:** [May 31, 2017, 4:41pm UTC](https://forums.fusetools.com/t/how-to-use-charting/6342 "2017-05-31T16:41:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruairi](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@Ruairi](https://forums.fusetools.com/u/Ruairi)\
**Post date:** [May 31, 2017, 4:41pm UTC](https://forums.fusetools.com/t/how-to-use-charting/6342/1 "2017-05-31T16:41:23Z")

</div>

Hi,

I’ve been trying out Fuse today and I’ve been very impressed with it. Just trying to get charts to work but I’m getting an error after following the guide.

I ran uno install Fuse.Charting and with the below code I get this error:  
Could not resolve type c:Plot and c:DataSeries

```auto
<Panel ux:Class="Chart" xmlns:c="Fuse.Charting">
	<c:Plot>
		<c:DataSeries Data="{data}"/>
	</c:Plot>
</Panel>

```

Amy I missing something?

Thanks,

Ruairi

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [May 31, 2017, 4:47pm UTC](https://forums.fusetools.com/t/how-to-use-charting/6342/2 "2017-05-31T16:47:29Z")

</div>

Hi Ruairi,

as [the docs state](https://www.fusetools.com/docs/charting/charting#fuse-charting-package), you need to include the `Fuse.Charting` package in your `.unoproj` file, under `"Includes"` section.

After that, rebuild the project and you should be good to go. Hope this helps!

---

<div class="post-metadata">

**Author:** ![Ruairi](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@Ruairi](https://forums.fusetools.com/u/Ruairi)\
**Post date:** [June 1, 2017, 9:16am UTC](https://forums.fusetools.com/t/how-to-use-charting/6342/3 "2017-06-01T09:16:58Z")

</div>

That worked nicely, thanks for the quick reply. Now I’m getting an error: {name} not found in data context.

Is there any examples of the charts in use I could take a look at? Could find any in the examples section.

My code is below, tried different variations using just y, using value, excluding label. Always get the same error so maybe I’m using Observable incorrectly.

```auto
var Observable = require("FuseJS/Observable");
var data = Observable();

data.add({x:0, y:1, label: 'Test'});

module.exports = {
	data: data
};

```

Thanks,

Ruairi

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [June 1, 2017, 10:14am UTC](https://forums.fusetools.com/t/how-to-use-charting/6342/4 "2017-06-01T10:14:18Z")

</div>

If it complained about `{name}` not being found, then you probably didn’t export that variable (or have it in the objects). No way to tell from JavaScript only, since it was your UX that caused the notice to be thrown.

As for samples, there’s something coming in [this pull request](https://github.com/fusetools/fuse-samples/pull/60).

---

<div class="post-metadata">

**Author:** ![Ruairi](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@Ruairi](https://forums.fusetools.com/u/Ruairi)\
**Post date:** [June 1, 2017, 10:22am UTC](https://forums.fusetools.com/t/how-to-use-charting/6342/5 "2017-06-01T10:22:06Z")

</div>

Perfect thanks, I’ll hold out for the example.

---

<div class="post-metadata">

**Author:** ![Clay](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@Clay](https://forums.fusetools.com/u/Clay)\
**Post date:** [June 3, 2017, 4:10pm UTC](https://forums.fusetools.com/t/how-to-use-charting/6342/6 "2017-06-03T16:10:01Z")

</div>

edit: moved the question to a new thread
