MaxValue

View as Markdown

Definition

Indicates the maximum Y value of objects within the chart panel, based on the current y-axis scale. The scale of the y-axis is dependent upon the values of objects in the panel which have Auto Scale enabled.

Property Value

A double representing the maximum Y value in the panel’s vertical scale

Syntax

ChartPanel.MaxValue

Examples

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 base.OnRender(chartControl, chartScale);
4
5 // Print the minimum and maximum Y values for objects in the panel
6 Print(String.Format("Min value: {0}, Max value: {1}", ChartPanel.MinValue, ChartPanel.MaxValue));
7}