Y (Coordinate)

View as Markdown

Definition

Indicates the y-coordinate on the chart canvas at which the chart panel begins.

Property Value

A int representing the y-coordinate at which the panel begins.

Syntax

ChartPanel.Y

Example

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 base.OnRender(chartControl, chartScale);
4
5 // Print the coordinates of the top-left corner of the panel
6 Print(String.Format("The panel begins at coordinates {0},{1}",ChartPanel.X ,ChartPanel.Y));
7}

Based on the image below, Y reveals that the chart panel begins at y-coordinate 232.

chartpanel_y