Introduction
Set Axis
Scale
Show
Wall
Format
Wall Color
Show
Wall Gridlines
Set Axis
Scale by Time-based Zooming
Label
and Ticker
Introduction
To set properties on the
Axis grid, labels, range, intervals...etc, first create an IAxis object
that has a handle on the chart's Axis that would be edited. Then,
the minimum, maximum, step intervals...etc can be set by using the setMinScale,
setMaxScale, setScaleStep... etc. Please refer to IAxis in the EspressChart
API DOCS if additional information is desired. Some examples are
provided below.
Frame frame = new Frame();Set Axis Scale
frame.addNotify();// draw a frame chart of the same size as the chart
chart.draw(frame.getGraphics(), frame, 500, 400);// create an IAxis object that has a handle on X-Axis
IAxis hXAxis = chart.gethXAxis();
// set XY Wall invisible: X Axis corresponds to XY Wall,Format Wall Color
// Y Axis to YZ Wall, Z Axis to XZ Wall
hXAxis.setVisible( false);
// set all walls to yellow colorShow Wall Gridlines
hXAxis.setColor( Color.yellow);
// make vertical gridlines visibleSet Axis Scale by Time-based Zooming
// (horizontal gridlines are set through the Y Axis)
hXAxis.setGridVisible(true);
Label
and Ticker
For information on Label
and Ticker, please refer to Axis Label API.
Please refer to IAxis,
IDataPointSet,
DateTimeFormat,
&
IZoomInfo in EspressChart
APIDocs for additional information.