Skip to Content

how to change the data in a chart using slider bar ?

hi community,

i have issue, i created one SDK extension slider bar based on that i want to change the data in chart.

my requirement is like, i have month and some measures in a chart i want to set month in a slider bar if am moving slider according to that values should be change in chart.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 16, 2014 at 05:39 PM

    Range Slider needs two values to define maximum/minimum interval, and OnChange event can be used to filter chart's datasource.

    But in this case, you want to use MONTH dimension values to feed the Range Slider.

    if I am not mistaken, you can't get the max and min month using datasource access methods, because it'is a dimension.


    I think that you need to allow your slider component to access datasource and processing the dimension data you can get MAX and MIN. BUT BE AWARE that if you use the same datasource in chart and slider, when you filter the datasource, your slider will get only filtered months.

    Regards,

    Xavier Polo

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 17, 2014 at 01:46 PM

    You could try the following.

    Pull the month dimension values into an object, where each dimension value is assigned to a "numeric" (air quotes, actually a string) attribute.

    Something along the lines of:

    var myMonths = new Object();

    myMonths["0"] = <month0_key>;

    myMonths["1"] = <month1_key>;

    Then, you assign the range slider a set of numeric values, from 0 to n, where n is the last attribute in myMonths. When the user changes the slider values and the OnChange is fired, use the numeric values of the current slider positions to get the appropriate range filter values out of myMonths.

    I've not tried this yet, so I don't yet know what pitfalls you'd run into.

    Cheers,

    Dave

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.