Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Vertical Bar Chart requires a 'color' attribute for data elements #193

Open
rathboma opened this issue Nov 18, 2016 · 0 comments
Open

Vertical Bar Chart requires a 'color' attribute for data elements #193

rathboma opened this issue Nov 18, 2016 · 0 comments

Comments

@rathboma
Copy link

Going by the documentation simply doing this:

{{vertical-line-chart data=model.data}}

should work fine where model.data looks something like:

[ { label: "foo", group: "default", value: 100}]

Unfortunately this throws an error about a missing color attribute.

It can be solved by adding color to data:

[ { label: "foo", group: "default", value: 100, color: "#eeeeee"}]

But this seems different to the documentation and a strange place to define color?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant