dc.js icon indicating copy to clipboard operation
dc.js copied to clipboard

dc.errors.InvalidStateException

Open Smmw opened this issue 9 years ago • 1 comments

When I put the this variable globally var groupsRowChart = dc.rowChart("#groupRowChart"); It will throw me this error. It was working on my last project. This time did not working. image

Smmw avatar Nov 14 '17 03:11 Smmw

You've probably changed the order of initialization.

The error means that you need to initialize dimension before rendering the chart.

If you think this is incorrect, you'll need to supply an example. The error is there because the chart needs this data to draw anything. If it weren't there, the failures would be a lot harder to understand. As such, it should be self explanatory.

gordonwoodhull avatar Nov 14 '17 04:11 gordonwoodhull