You must be logged in to post your query.
Home › Forums › Chart Support › how to get database value by button into chart.
I want click a button, and go to database select value and bring to create chart. I used ajax to query data but can’t bring json into CanvasJS.
My sample code. https://mdatasystem-my.sharepoint.com/:u:/g/personal/mwy_liao_mds_com_tw/EaLGZ3TH7LxJiifGHVz919AB5_1e5lKy3EEKdcuwSRhE0A?e=3eBxOm
I pass query database, use DataService GetRandomDataForCategoryAxis replace. Home/Index.cshtml have a CreateChart button.
@mwy_liao,
The response that you are passing to view seems to be string & not JSON. Passing JSON seems to be working fine. Please download updated sample from here.
— Vishwas R Team CanvasJS
You must be logged in to reply to this topic. Login/Register