Skip to Content
avatar image
Former Member

setAxisScaling overrides setAxisScaling on a different axis

It appears the setAxisScaling method which you can call on an infochart will override the axis scaling for a different axis.

When calling the method, the parameters are setAxisScaling(which axis, min, max). So, if you wanted to change BOTH axis of your chart, you would need to call this twice, like the following example:

CHRT_OUTLIERS.setAxisScaling(ChartAxisScaling.Y_AXIS, <ymin>, <ymax>);

CHRT_OUTLIERS.setAxisScaling(ChartAxisScaling.X_AXIS, <xmin>, <xmax>);

But, only the second method takes effect. You can swap the order, but again, only the second will take effect.

It may be worth noting that its completely possible that the first one *does* take effect, but just gets overwritten once the second method runs. It seems more like when you call the method, it resets BOTH axis, but is only able to update the one you specify in the parameters, which means you always end up with one axis you can't specify.

Tammy Powlas found the following issue, but I dont think its the same:

Any thoughts on a work around?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 10, 2016 at 09:21 PM

    Hello Joseph,

    I just tried it and could scale both the axes perfectly.

    You have mentioned InfoChart in the description but the script example, you provided, is for a Chart component.

    So I tried it for both Chart and InfoChart, and worked perfectly fine for both these components.

    I am on Design Studio 1.6 SP3, so maybe you should also consider checking your Design Studio version and upgrade if needed.

    Thank you.


    Swapnil Koti

    Add comment
    10|10000 characters needed characters exceeded