on 10-05-2016 8:07 PM
The problem I'm running into appears that using INFOCHART.setAxisScaling only seems to work for a single axis at a time. I have an Info_chart where I am trying to set both axis based on some other values (lets not worry about that part now). My chart (CHRT_OUTLIERS) starts out looking something like the following with the default min/max for both axis as follows:
Clicking the 'update' button in the lower right runs the following script:
var xmin = 0;
var xmax = 1;
var ymin = 0;
var ymax = 1;
CHRT_OUTLIERS.setAxisScaling(ChartAxisScaling.Y_AXIS, ymin, ymax);
CHRT_OUTLIERS.setAxisScaling(ChartAxisScaling.X_AXIS, xmin, xmax);
Pretty simple.
*Also, it is worth noting I have the 'Axis Scaling' property for both X and Y axis set to <UNchecked>. Both Min/Max values are set to <blank>.
After running the above script, my chart refreshes and looks like this:
It would appear as though only my SECOND "setAxisScaling" method works. That is, my first gets reset, or overwritten, then the second runs. I switched the setAxisScaling X and Y lines, and it is always the 2nd that takes effect.
The help guide doesn't provide much insight ("Sets a minimum and maximum value for an axis.").
Is this by design?
Is there a work around?
Where do the default 0-7000 numbers come from?
When I set my Axis Scaling to enabled in the chart's properties, my defaults become 0-300,000,000,000. Why?
Looks like there was an issue with this in SP2; please see https://launchpad.support.sap.com/#/notes/2334389/E - have you tried it with SP3?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.