MaxMinusMin

View as Markdown

Definition

The difference between the chart scale’s MaxValue and MinValue represented as a y value.

Property Value

A double value representing the difference in scale as a y value.

Syntax

\<chartscale\>.MaxMinusMin

Examples

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 // the difference between the scales maximum and minimum value
4 double maxMinusMin = chartScale.MaxMinusMin;
5
6 Print("maxMinusMin: " + maxMinusMin); // maxMinusMin: 3.92
7}

In the image below, the highest calculated value on the chart scale is 2106.21, with the lowest value being 2102.29; the MaxMinusMin property therefore provides us calculated value of 3.92.

MaxMinusMin