Home Forums Chart Support Charts with drop down button to filter Reply To: Charts with drop down button to filter

#18887

@Carmen,

The json in the fiddle that you have shared has label and y-value, where as while parsing the json you are trying to read x-value and y-vlaue out of it. Replacing x-value with label while parsing should work fine in your case.

chart.options.data[0].dataPoints.push({label: dps[i].label, y: dps[i].y});

Please take a look at the updated jsfiddle.

Chart based on option selected from Dropdown List


Vishwas R
Team CanvasJS