Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3280

Data model for charts and tables

$
0
0

Hi,

I have the following model for rendering an horizontal stacked bar chart.

 

{    "Scenarios": [    {        "Scenario": "Managed System",        "Type"    : "Undefined",        "ManagedObjects"  : 25    },    {        "Scenario": "Managed System",        "Type"    : "Success",        "ManagedObjects"  : 10    }    ]
}

Here for the scenario Managed System I will have one bar with two values: 25 and 10.

 

And on the same screen I have to display details of Managed Objects at the same time : 25 lines of Managed Object with Type Undefined and 10 lines with Type Success.

 

So I would need this kind of model to match the table:

 

{    "Scenarios": [    {        "Scenario": "Managed System",        "Type"    : "Undefined",        "ManagedObject"  : "FA7~ABAP"    },    {        "Scenario": "Managed System",        "Type"    : "Undefined",        "ManagedObject"  : "SD7~ABAP"    },    {        "Scenario": "Managed System",        "Type"    : "Undefined",        "ManagedObject"  : "FQ7~ABAP"    },    ...     {        "Scenario": "Managed System",        "Type"    : "Success",        "ManagedObject"  : "HY5~JAVA"    },    {        "Scenario": "Managed System",        "Type"    : "Success",        "ManagedObject"  : "FT5~JAVA"    }    ...    ]
}

There is a Filter bar common to the chart and the table.

 

How could I managed to have the same model working for the graph and the table using the filtering capabilities?

 

Thanks,

Serge.


Viewing all articles
Browse latest Browse all 3280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>