Chart scale positioning

Article ID: 2227
Last updated: 29 May, 2018
Article ID: 2227
Last updated: 29 May, 2018
Revision: 3
Views: 665
Posted: 07 Mar, 2011
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

How to set the position of a new scale in the chart?

Answer

The position of a scale can be set by means of the following methods:

  • ilog.views.chart.IlvScale.setCrossingValue(double), for a fixed value on the dual axis (the "dual axis" description can be found in the IlvScale.getDualAxis() documentation).

  • ilog.views.chart.IlvScale.setCrossing(IlvAxis.Crossing), to compute the

    crossing point by a function receiving the dual ilog.views.chart.IlvAxis as parameter. The default implementations are IlvAxis.MIN_VALUE and IlvAxis.MAX_VALUE.

When two scales share the same crossing (IlvAxis.MIN_VALUE or IlvAxis.MAX_VALUE), the chart automatically arranges the scales to avoid overlapping.

For example: in a Cartesian chart, setting several scales at theIlvAxis.MIN_VALUE crossing will have the scales drawn one after another at the left side of the chart.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2227
Last updated: 29 May, 2018
Revision: 3
Views: 665
Posted: 07 Mar, 2011 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Also read

Also listed in


Others in this category