Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Using complex JSON with DataChart
posted

Hello,

I have seen how to use the Formatter to bind complex JSON to igGrid. But I want to plot some of this data in a chart. I want to be able to plot for example the "CHOKE"."Number" against the "PRODUCTION_DATE". But how do I do this?

{
   "d":{
      "results":[
         {
            "NAME":"Alice-01",
            "PRODUCTION_DATE":"\/Date(1293840000000)\/",
            "TIME_ONLINE":{
               "Number":1440,
               "Unit":""
            },
            "CHOKE":{
               "Number":"17.0",
               "Unit":"Sm3"
            },

...



Parents
No Data
Reply
  • 3595
    Suggested Answer
    posted

    Hello Allen,

    Thank you for posting in our community!

    In order to plot “Number” against the “PRODUCTION_DATE” it is needed to position them in the same level of the JSON collection and to refer the JSON node they are pasted in in responseDataKey option.

    I have attached a sample with the column chart for your reference.

    More information on what other charts could be used and samples could be found at the following resource: http://igniteui.com/data-chart/overview

    If you have additional questions don’t hesitate to contact me again.

    igDataChart-StackedColumns-igZoombar.zip
Children