cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
StarfruitBob
Level VI

Column Switcher customization

Hello,

 

Is there a way to more completely customize the column switcher through JSL?  In the example attached, I have 3 metrics and 3 sizes of boxes. Each metric has all sizes of boxes.  When I create a graph, the column switcher can only switch out one variable in the chart. Multiple column switchers can be added via JSL, but if there are many columns to select from in each column switcher, that gets messy and time consuming very quickly to individually find and switch columns from each of the lists.

 

What I would like is if the column switcher could be customized to select a custom option, for example: MetricA, MetricB, or MetricC, and all of the variables on the y-axis would swap to that metric.

 

Example, swapping MetricA -> MetricB, all at once, in their respective places on the y-axis:

  • MetricA_BoxBig -> MetricB_BoxBig
  • MetricA_BoxMed -> MetricB_BoxMed
  • MetricA_BoxSM -> MetricB_BoxSM
Learning every day!
1 REPLY 1
jthi
Super User

Re: Column Switcher customization

I don't think you can do this easily with Column Switcher but you could use ListBox and write your own function 

Names Default To Here(1);
New Window("Example",
	fontobj = lb = List Box(
		{"First Item", "Second Item", "Third Item"},
		width(200),
		max selected(1),
		nlines(6),
		<< set function(function({this},
			show(this << get selected);
		))
	)
);
-Jarmo