ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Graph is being cut off at the top
Posted by Brian Allardice on Jan-09-2020 20:25
Attachments:
Hi,

Ive got a graph but it appears the top of it is being sliced off (Image attached.) IS there anyway to remove the extra white space on the image?

Thanks

Brian.
cbGraph.png

  Re: Graph is being cut off at the top
Posted by Peter Kwan on Jan-10-2020 03:07
Hi Brian,

I assume the image you attached is the exact original chart image and not a screen shot. (It is a screen shot, then it is not sure which part is the chart and which part is the background of your window. In this case, for trouble-shooting, it is best to use a colored background, so we can see the exact boundary of the chart.)

The chart image shows that there is some space above the plot area. Those space are specified by your code. If you do not want those space, please set the top of the plot area to be at the top of the chart. (See the top coordinates to 0 in the setPlotArea line.)

For "sliced off", are you referring to the chart having no top border? It has no top border because your code sets the plot area border to transparent in the setPlotArea line. If you want the top border, please modify the code to not set the border to transparent.

If you need further help, is it possible to inform me of the charting part of your code?

Regards
Peter Kwan