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

Message ListMessage List     Post MessagePost Message

  frmzoomscroll
Posted by Helmut on Feb-08-2018 02:09
Attachments:
Hello,

the first and last points are cut off.
How can I fix this?
Does anybody have a solution.

See grafic

Thanks Helmut
Statistik.jpg

  Re: frmzoomscroll
Posted by Peter Kwan on Feb-08-2018 15:46
Hi Helmut,

From your chart, it seems to be using a label based x-axis (using Axis.setLabels). In this case, the first and last visible data points may always appear at the left and right edge of the chart. If the data points have a size (such as a symbol), half of it may fall outside the plot area.

To display the entire symbol, there are two methods:

(a) In the original sample code, there is a line "Call c.setClipping()". Depending on how you configure the chart, it may be possible to remove this line. Without the above line, the entire symbol will be visible, including the part that is outside the plot area.

(b) Another method is to add left and right margins to the x-axis. It is like:

Call c.xAxis().setMargin(5, 5)

The margin can be set to half the symbol size. In this way, there will be a small gap between the first and last label positions with the left and right edge, so that the symbol will stay entirely inside the plot area.

Hope this can help.

Regards
Peter Kwan