CodeYellowBV / chartist-plugin-legend

Legend plugin for Chartist.js.
https://codeyellowbv.github.io/chartist-plugin-legend/
Other
116 stars 62 forks source link

Worng data to final chart #39

Closed Jeketerri closed 7 years ago

Jeketerri commented 7 years ago

I have a problem, maybe is caused by a bad building:

            console.log('arr_data ' + arr_data);
            obj = { "name": tara_fin[i], "data": arr_data };
            arr_series.push(obj);

I get this data output:

arr_data 36,27
arr_data 18,9
arr_data 9,9
arr_data 9,48
arr_data 36,24
arr_data 12,12
arr_data 12,12

But in the graph I only get all the bars with the last array information, the labels are okey, w/o the box color border, but it works. Sorry with my very bad English, and thanks for the response.

SpaceK33z commented 7 years ago

I don't understand... Please provide a CodePen where you reproduce your issue.

Jeketerri commented 7 years ago

Hi, sorry for the lateness, I'm registered now on the codepen, but I don't know why it doesn't work with my script, sorry I learn to code this year, this is the code, Well I simplified the code, because I recover the data from an AJAX call.

Jeketerri commented 7 years ago

Well, I found the problem in the codepen, it was on the CDN of your plugin, you can see now how my graph apear, it only get the last data I pass, I don't know if a problem of your plugin or is in my building... sorry for my bad English :(

SpaceK33z commented 7 years ago

I'm sorry but I don't have time for this. I would recommend asking this on StackOverflow.