Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Data model for charts and tables

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.

Former Member
Not what you were looking for? View more on this topic or Ask a question