Skip to Content
0

setAxisScaling overrides setAxisScaling on a different axis

Oct 10, 2016 at 01:38 PM

49

avatar image

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: https://launchpad.support.sap.com/#/notes/2334389/E

Any thoughts on a work around?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Swapnil Koti Oct 10, 2016 at 09:21 PM
0

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.

Regards,

Swapnil Koti

Share
10 |10000 characters needed characters left characters exceeded