Clearing chart selectionIndex

Posted by: ed on 28 October 2019, 5:49 pm EST

    • Post Options:
    • Link

    Posted 28 October 2019, 5:49 pm EST

    I have a bar chart with 2 series with a handler to catch when the selectionChanges. When I am finished I want to clear the selectionIndex so that the series that was selected no longer shows as having been selected. See below;

    receiptsChart.selectionMode = wijmo.chart.SelectionMode.Point;

    receiptsChart.selectionChanged.addHandler(function (e) {

    var selectedIndex = e._selectionIndex

    Do some stuff	
    
        e._selectionIndex = null;
    }); 
    

    I have also tried receiptsChart.selectionIndex = null;

    Thanks, Ed

  • Posted 30 October 2019, 1:24 am EST

    Hi Ed,

    You may set the selection property of the FlexChart to null to remove the selection from the chart.

    e.selection = null;
    

    Let me know if this works for you.

    Regards,

    Ashwin

  • Posted 30 October 2019, 9:16 pm EST

    Hi Ashwin,

    Yes, that works. Thought I had tried all the possibilities. Thanks for your help.

    Ed

Need extra support?

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

Learn More

Forum Channels