Addepar / ember-charts

Home Page:https://opensource.addepar.com/ember-charts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

rathboma opened this issue · comments

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?