cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic values to y-axis through Applet

Former Member
0 Kudos

Hi all,

I have created a graph using applet now i want to assign y-axis maximum value dynamically through applet .

or i want to assign value to Display template property Global Max Range .

thanks in advance

Praveen Sharma

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi All,

My problem seems similar to the discussed one.

Could you tell me why I can't turn GlobalAutoScale off and redraw the chart right away using updateChart(false)?

I don't want to pull the data once again by updateChart(true) but this code:

document.myChart.getChartObject().setGlobalAutoScale(false);

document.myChart.updateChart(false);

doesn't work out. However, setting another property, e.g. Chart Title works fine.

document.myChart.getChartObject().setTitle("newName");

document.myChart.updateChart(false);

Is there any chance to change the scaling w/o reloading the data?

Thank you in advance,

Dmitry

Former Member
0 Kudos

Read the documentation for the iChart applet. The applet properties are fully documented. Just remember to call document.yourChart.updateChart(false) to redraw the chart after you make any "visual" changes and updateChart(true) if you change anything related to the query.

jcgood25
Active Contributor
0 Kudos

And after properly using the help documentation and script assistant to answer this question, don't forget to make sure GlobalAutoScale is set to false or it will auto scale instead of the static value.

Regards,

Jeremy