Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1810
Change series brush or outline at runtime
posted

I'm trying to change the series brush color on legend item mouse over. But it is not showing any change on the chart. Is there any way to do this?

$(document).delegate("#legend", "igchartlegendlegenditemmouseenter", function (evt, ui) {

ui.series.brush = "red";//not working

var series = $("#compositeChart").igDataChart("option", "series");
series[0].brush = "red"; //not working

});

Parents
  • 8736
    posted

    Hello ptilwani,

    If you want to change the brush property you would need to do something like as shown below:

    $(document).delegate("#legend", "igchartlegendlegenditemmouseenter", function (evt, ui) {

     $("#stackedColumn").igDataChart("option", "series", [{ "name": ui.series.name, brush: "red" }])

    });

    I hope this helps.

Reply Children
No Data