Next
Update
Prev
Default

You can use the logarithmic scale for both X- and Y-axes by creating the <LogAxis> element tag as a child node of the <horizontalAxis> and <verticalAxis> element tags.

Please keep in mind that two <Axis2DRenderer> element tags must be defined in the layout because two vertical axes are used in this sample chart.

If only one horizontal axis ( or vertical axis ) is used in the chart, then you don't have to define the AxisRenderer element tag for that axis.

...
<Plot2DChart ... >
'''
  <horizontalAxis>
    <LogAxis title="Log Axis" formatter="{numFmt}" minimum="100" maximum="1000000"/>
  </horizontalAxis>
  ...
    <Line2DSeries ... >
      <verticalAxis>
        <LogAxis id="vAxis1" title="Log Axis" formatter="{numFmt}" minimum="100" maximum="1000000"/>
      </verticalAxis>
      ...
    </Line2DSeries>
    ...
    <Plot2DSeries ... >
      <verticalAxis>
        <LogAxis id="vAxis2" title="Log Axis" formatter="{numFmt}" minimum="100" maximum="10000000"/>
      </verticalAxis>
      ...
    </Plot2DSeries>
  ...
  <verticalAxisRenderers>
    <Axis2DRenderer axis="{vAxis1}"/>
    <Axis2DRenderer axis="{vAxis2}"/>
  </verticalAxisRenderers>
...
</Plot2DChart>
...

© 2017 KoolChart. All rights reserved.