Jump to content
Software FX Community

How can I get the plot area of the chart?


Recommended Posts

You need to access the left, top, bottom, and right properties of the PlotAreaMargin of the chart. You can do the following:

 To retrieve its values:

int x1 = Chart1.PlotAreaMargin.Left;

int y1 = Chart1.PlotAreaMargin.Top;

int x2 = Chart1.PlotAreaMargin.Right;

int y2 = Chart1.PlotAreaMargin.Bottom;

Then to calculate the height and width, you can do the following:

width = right - left, if right > left

height = bottom - top, if bottom > top

Link to comment
Share on other sites

Also, you can access the bounding rectangle of the pane (plotted area) and retrieve its left, top, right, and bottom values respectively, as well as the height and width of the rectangle.

You can access this rectangle by calling:



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...