AxisYRightWidth

View as Markdown

Definition

Measures the distance (in pixels) between the y-axis and the right edge of a chart.

Property Value

A double representing the number of pixels separating the y-axis and the right edge of the chart.

Syntax

\<chartcontrol\>.AxisYRightWidth

Example

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 // Print the number of pixels between the y-axis and the right edge of the chart
4 double rightWidth = chartControl.AxisYRightWidth;
5 Print(rightWidth);
6}

Based on the image below, AxisYRightWidth reveals that the space between the y-axis and the right edge of the chart is 53 pixels on this chart.

ChartControl_AxisYRightWidth

When there are no right-justified data series on a chart, AxisYRightWidth will return 0, as there will be no space between the y-axis and the right edge.