Working with Json

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
cjherasmus
Newbie
Newbie
Posts: 5
Joined: Mon Jan 09, 2017 12:00 am

Working with Json

Post by cjherasmus » Wed May 31, 2017 8:21 am

I'm looking at the Js/Html5 code and would like know how to bind the chart with Json data generated by an ASP.NET web service/httphandler via the JavaScriptSerializer
From the sample I assume that:
1. I must format my Json data in a very specific format for the chart, so I must build my own converter?
2. The Json data must be held in a TextArea control?

Regards

Marc
Site Admin
Site Admin
Posts: 1274
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Working with Json

Post by Marc » Thu Jun 08, 2017 10:34 am

Hello,

Apologies for the delay with this reply.

Re. 1. & 2.
It's not necessary that the data reside in a TextArea control. If you want to bring the data into the Chart when already committed to JScript (ie, not at chart generation time in NET), here's some information to help you format the data:

https://www.steema.com/files/public/tee ... /index.htm

Regards,
Marc Meumann
Steema Support

cjherasmus
Newbie
Newbie
Posts: 5
Joined: Mon Jan 09, 2017 12:00 am

Re: Working with Json

Post by cjherasmus » Thu Jun 08, 2017 10:42 am

Thank you Marc, I;ve found the samples, working through them.

Post Reply