I’ve formatted some axes with the NumeralTickFormatter and set up some spans, and it all works beautifully except I’d like to adjust their settings based on what values are selected for the axes. Some axes values are percentages, “0%”, others are in thousands, “0,0”.
So I don’t want axes formatting to be shown in percentages when a thousands value is selected, but it’d be nice to have percentages shown for percentage values instead of 0.[something]. Similarly for percentages I’ve set up a span at 1 (100%) so that what’s effectively the limit of the graph is more easily spotted. I obviously don’t want this span showing when a non percentage value is selected as having a line at 1 won’t be any good. Is there any way I can prevent this? Maybe somehow set line_alpha = 0 ?
The axes are set as x_active and y_active and widgets’ js_on_change updates these to copies of the values of selected lists.
Could anyone please help me figure out how I can have axes’ formatting and span conditions change based off what axes are selected?