Home Forums Chart Support datapoints not showing in chart

datapoints not showing in chart

Viewing 3 posts - 1 through 3 (of 3 total)
  • #38757

    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.

    #38769

    @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

    #38774

    Thank you so much – it worked.

    s

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.