Vizlib Home Try Vizlib

Vizlib line chart static colors

I have a requirement to assign static colors to measures in Vizlib line chart and hide/show few lines according to the user selection using on/off button. I am able to assign the static colors to measures but if I hide any one measure it is passing color to another measure in the sequence.


Below are the steps to achieve the scenario.


Take Vizlib Line chartAdd one dimensionCreate Multiple measures and assign static colors to measuresHide one of the measure with condition then you will see color of hidden measure passed on to next measure in the list.


I am suspecting this as a bug in extension if not I appreciate your efforts to get the solution.


The goal is even if we hide the measure the other measure should contain same defined color. We can’t use native line chart due other functionality limitations.


Also, I have tried creating master measures and assign static color


Login to post a comment