You must be logged in to post your query.
Home › Forums › Chart Support › datapoints not showing in chart
Tagged: datapoints chart
https://jsfiddle.net/g2tc4yLh/
I tried to copy my code here – got blocked. php echo “body”.json_encode($dataPoints, JSON_NUMERIC_CHECK); body[{“x”:” CODE1 “,”y”:2},{“x”:” CODE2 “,”y”:1},{“x”:”ICT3715″,”y”:1}]
So why is my datapoints not displayed on the chart – i just get an empty chart.
@susanf,
The x value that you are passing in the dataPoints is a string but it accepts only numeric or dateTime values. To display string values you can use the label property.
If this doesn’t solve your issue, kindly create a sample project reproducing the issue you are facing and share it over Google-Drive or Onedrive along with sample data so that we can look into your code, and understand it better and help you out.
__ Adithya Menon Team CanvasJS
Thank you so much – it worked.
s
You must be logged in to reply to this topic. Login/Register