Skip to Content
avatar image
Former Member

iChart: How to set GlobalAutoScale to false without reloading the data?

Hi All,

Could you explain whether GlobalAutoScale may be turned off providing that the chart is updated immediately?

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 and redraw the chart w/o reloading the data?

Second,

Is that the correct way to access underlying iChart data?

document.myChart.getQueryObject().getRowCount()

Whenever I execute this code I get permanently 100. I get confused without the possibility to navigate the query data from the applet.

Thank you in advance,

Dmitry

Edited by: Visiprise Guest on Sep 8, 2008 3:54 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 08, 2008 at 02:20 PM

    Hi Dmitry,

    I would need to do some testing for the first answer, but will answer the second one. The RowCount is set in the Query Template and is a limit upon the amount of data retrieved. It is not the number of rows returned by the query (unless you hit that limit). If you want to change it, go to the Query Template and look under the General tab or Category, you will see where it is specified.

    Are you still playing soccer?

    Regards,

    Mike

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 08, 2008 at 04:23 PM

    If document.APPLET.updateChart(true); is necessary (instead of false) to get the Global Auto Scaling to work then I guess you already have the answer. I would assume that this is because the applet scales the Y-Axis based upon the data feed as it gets it from the underlying query results, determining the min/max (with + / - fudge factor) while it is processing the data stream.

    The chart title is purely cosmetic (not being directly related to the data) so that is why the update false will work.

    By disabling the Global Auto Scaling, what do you actually expect to see on the chart's Y-Axis? Is it possible that the scale has no reason to change? What settings are you expecting to see take over with the removal of Global Auto Scaling?

    Regards,

    Jeremy

    Add comment
    10|10000 characters needed characters exceeded