cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Delete Primary Values from Numeric Point Chart

Lorenz_Diem
Explorer
0 Likes
619

Hello everyone,

in my story i have a numeric point chart with three primary values. With a button click i want to remove the three values and add two other ones.

does anybody know how i have to wright the script, that this will work?

unfortunately, everything i tried does not work.

thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

eeddggaarr
Contributor

Hi,
try this:
change 'Chart_2' and 'ID OF YOUR MEASURE' accordingly.

if you want to add multiple measures you can do it one after another like in row 7 or you use the same technique from removing the measures.

var measure = Chart_2.getMeasures(Feed.ValueAxis);

for (var i = 0; i < measure.length; i++) {
	Chart_2.removeMeasure(measure[i], Feed.ValueAxis);
}

Chart_2.addMeasure("ID OF YOUR MEASURE", Feed.ValueAxis);

br

edgar

Lorenz_Diem
Explorer
0 Likes

Hi Edgar, 

worked perfectly.

Thank you very much.

BR

Lorenz

Answers (0)