Configuring Logarithmic Charts

FusionCharts Suite XT allows you to configure the functional aspects of logarithmic charts.

In this section, you will be shown how you can:

  • Custom select the base

  • Configure inverse axis support

  • Custom select the y-axis upper and lower limits

  • Custom select the number of minor divisional lines

Custom Selection of Base

By default, the base of a logarithmic chart is set to 10. You can, however, set the base to any value of your requirement. Just ensure that the base value is any positive number greater than 1.

A log column chart with the base set to 5 looks like this:

FusionCharts should load here..

Given below is a brief description of the attribute used to customize the base value:

Attribute Name Description
base It is used to specify the base value for the logarithmic chart. This attribute can take any value that is a positive number greater than 1. The default value for this attribute is 10.

The data structure needed to custom select the base of a logarithmic chart is given below:

...

Inverse Axis Support

Logarithmic charts allow you to plot the y-axis values inversely so that the y-axis upper limit appears at the bottom of the chart canvas instead of at the top.

A log column 2D chart rendered with an inverted y-axis looks like this:

FusionCharts should load here..

Given below is a brief description of the attribute used to render an inverted y-axis:

Attribute Name Description
invertYAxis It is used to specify whether the log chart will be rendered with an inverted y-axis. Setting this attribute to 1 will render an inverted y-axis, setting it to 0 (default) will not.

The data structure needed to render a log chart with an inverted y-axis is given below:

...

Custom Selection of Y-axis Lower and Upper Limits

By default, the chart automatically decides the y-axis limits based on the data you provide. However, you can explicitly set the y-axis limits according to your requirements.

Given below is a brief description of the attributes used to custom select the y-axis limits:

Attribute Name Description
yAxisMinValue It is used to explicitly specify the lower limit for the y-axis.
yAxisMaxValue It is used to explicitly specify the upper limit for the y-axis.

Custom Selection of the Number of Minor Divisional Lines

By default, the chart automatically calculates the number of minor divisional lines depending on the logarithmic base defined in the chart. You can, however, explicitly specify the number of minor divisional lines.

A log column chart with the number of minor divisional lines explicitly specified looks like this:

FusionCharts should load here..

Given below is a brief description of the attribute used to set the number of minor div lines:

Attribute Name Description
numMinorDivLines It is used to specify the number of minor divisional lines to be rendered between any two major divisional lines. This attribute can take value that is greater than 0.

The data structure needed to explicitly specify the number of minor divisional lines is given below:

...

There! You have now seen how you can configure logarithmic charts.