Skip to Content

Dynamic measure in charts using same data source

Hi Experts,

I am trying to use single data source to show chart for selective measures. I have tried the steps here: Design Studio 1.2: Select key figures to display on charts. Here we can create multiple charts with selective measures using single data source.

But, is it possible to re-use the same chart component ? I mean, selecting a measure name from a drop down, I want to change the measure in the same chart component - using one chart component and one data source. Is it possible using some script ?

I tried but could not find an option for a chart component to change the dimension/measure. I do not want to have one chart for each measure and show/hide based on the selection. I want a single chart and want to change the objects dynamically using some script.

Regards,

Arijit

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 27, 2014 at 06:55 AM

    Hi Arijit,

    1. For Changing the measures in your chart - you can use CHART_1.setDataSelection() - Using this you can change measures in your chart
    2. For changing the dimensions however you have to change the Data Source state associated with the chart. You can use various script option to change the dimensions in rows and columns in your data source.

    Hope this helps.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 05, 2014 at 06:21 AM

    Thank You Anil,

    Its really helped 😊

    Regards

    Arjun KT

    Add comment
    10|10000 characters needed characters exceeded