RangeSelector - Setting the initial selected range

Posted by: ed on 11 November 2019, 5:36 am EST

    • Post Options:
    • Link

    Posted 11 November 2019, 5:36 am EST

    I have a chart set up as a range selector for another chart.

    var selectorChart = new wijmo.chart.FlexChart(‘#selectorChart’,

    {

    itemsSource: viewData,

    bindingX: ‘day’,

    series: [

    { binding: ‘amtDueByDay’ }

    ],

    palette: wijmo.chart.Palettes[‘cocoa’],

    chartType: wijmo.chart.ChartType.Line,

    legend: {position: wijmo.chart.Position.None},

    axisY: { position: wijmo.chart.Position.None }

    });

    My viewData set has 30 records. When I initialize the chart rather than having the selected range be 0 and 29. I want it to 15 and 29. Can I do that?

    Thanks, Ed

  • Posted 12 November 2019, 7:37 pm EST

    Hi Ed,

    You can use the min and max property of the RangeSelector to initialize it with 15 and 29 value:

    var rg = new wjcChartInteraction.RangeSelector(chart, {
    	min: 15,
    	max: 29
    })
    

    Regards,

    Ashwin

  • Posted 13 November 2019, 3:50 am EST

    Hi Ashwin,

    Thanks for all your help.

    Ed

  • Posted 13 November 2019, 3:21 pm EST

    You are always welcome, Ed.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels