ZoomCharts Documentation
ZoomCharts.Configuration.LinearChartSettingsValueAxis
Methods
Properties
Whether to align the zero value with other axes
Always animate value axis
Valid values:- auto - Only when necessary
- always - Animate also on the first load
Whether to show vertical line along value axis
Show/hide value axis.
Whether to force top and bottom values in the hgrid.
Amount to inset the forced min/max values
Placement of grid lines in relation to series data.
Valid values:- above - grid lines drawn after series
- under - grid lines drawn before series
Whether to show horizontal grid lines. Specifying null
means that only the first value axis will show the horizontal lines,
all other axis will not.
Whether to hide the valid axis when it is not valid
This parameter works together with animate
when it's set to "always" as here you can define fixed initial value that should be used for animation beginning.
If set to 0, then animation would be with "dropping" effect. If set to larger value than your maximum series value, then effect would be "growing".
If you want animation value to be calculated automatically depending on your data, keep default value and adjust initialAnimationValueMultiplier
.
This parameter works together with animate
when it's set to "always". It's used for multiplying maxium series value to get "growing" or "dropping" animation effect.
By default (if initial animation is turned on) there would be "growing" effect. You can increase this value if you need "further growing".
To make "dropping" effect you should use values less than 1, (for example: 0.45).
Also adjust scaleAdjustmentAnimationDelay
to make animation longer.
Whether to use logarithmic scale.
Fixed maximum value for value axis. If not set it will be computed automatically from visible data and zeroLine settings.
Fixed minimum value for value axis. If not set it will be computed automatically from visible data and zeroLine settings.
Only draw the top and bottom labels
Only draw non-redundant labels
Location of the value axis.
Valid values:- inside - on the left side, outside of the chart
- outside - on the left side, inside of the chart
The animation easing function.
Valid values:- = - linear animation
- <> - quadratic easing
Scale adjustment animation duration.
This tolerance specifies how big that part is as fraction of total chart height. When part of the vertical space is not used chart scale is automatically adjusted.
Smallest difference between two labels. For example, use 1 to disallow the labels to go into fractions.
Difference between two values on the axis. If not set (default), will be automatically calculated from chart height, min, max value and style.labelSpacing.
Value axis side in chart. Possible values: "left" or "right".
Fixed width of the value axis. If not set it will be computed automatically from font size.
Style for parts of value axis.
Properties
Whether label spacing should automatically scale with font size
Rendering style for the vertical line along value axis.
Base line settings. It is the horizontal line showing zero value.
Horizontal grid lines.
Distance between value axis labels.
How label spacing is used
Valid values:- fixed - Use labelSpacing value directly
- auto - Automatically calculate spacing; use labelSpacing as an additional scale/offset value
Value axis tick lines style.
font
, fillColor
properties to under textStyle
.Title text for the value axis.
font
, fillColor
properties to under textStyle
.Value axis label rendering settings.
Provides the ability to draw threshold guidelines and fill background areas for certain values. For example, this can be used to highlight an area that exceeds certain limit.
Title text for the value axis.
Following formats are supported:
^0([.,]0+)?( ?%) - percentage ^([^0-9]+)?0?([.,]0+)?([^0-9]+)? - currency
size
is not specified.Prepare custom format values to display in value axis. If using this, consider also setting the size
parameter to
accommodate your label size.
Parameters
numerical value to display
name of multiplier - 'K' for thousands, 'M' for millions
multiplier value - 1000 for thousands, 1 000 000 for millions
value string that is displayed by default
additional metadata for advanced use cases
Return value
string to display at the value
Zero line.
Valid values:- visible - adjusts position accordingly to the min/max values
- center - always centered
- floating - can be outside the visible chart - shown only range between min-max values.