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 |