Can't create a stacked column chart #206

guyisra opened this Issue Sep 26, 2015 · 1 comment


None yet

2 participants

guyisra commented Sep 26, 2015

the helper generate this js

new Chartkick.ColumnChart("chart-3", [{"name":"None","data":{"none":501}},{"name":"Shoes","data":[["None",1],["Flats & Loafers",1]]},{"name":"Bottoms","data":[["Skirts",1]]},{"name":"Jewelry","data":[["None",1]]},{"name":"Accessories","data":[["Belts",1]]},{"name":"Bags","data":[["None",1]]},{"name":"Dresses","data":[["None",116],["Midi",6],["Maxi",4]]},{"name":"Tops","data":[["None",6],["Shirts",6],["Sweaters & Cardigans",1]]}], {"stacked":true});

but the chart doesn't stack, and only shows a single bar in None. Seeing the js object resulting, the value of any data is NaN

Basically what I was hoping for is a column per type series which is divided by its data (sub categories of those items)

@ankane ankane added the bug label Jan 7, 2017
ankane commented Jan 7, 2017

Hey @guyisra, thanks for reporting 👍

With the latest version of Chartkick, this example seems to work for Google Charts and Highcharts. With Chart.js, I'm getting odd NaN values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment