MaxValue

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Charts > Rendering >

MaxValue

Previous page Return to chapter overview Next page

Definition

The maximum value used for the automatic scaling of the y axis.  This property will only be used when the chart object is set to IsAutoScale

 

Property Value

A double value

 

Syntax

MaxValue

 

Examples

ns

public override void OnCalculateMinMax()
{
  if (DrawingState != DrawingState.Building)
  {
    //set the maximum value to the chart anchors price
    MaxValue = Anchor.Price;
  }
}