Hi Guys,
In the attached image you can see that my point markers are clipped at every edge of the chart. Just a niggle, but my customers are complaining.
Any idea of a solution? A quick search shows that sometimes you suggest entering nulls at the beginning and end of the series to move it in from the edges. A bit nasty, and it won't fix my clipping at the bottom.
thanks
Pete
Hi Peter,
In order to move the points away from the sides you will indeed need to add null values at the beginning and end of your ItemsSource. In order to move the points away from the bottom however, I think providing custom tickmark values will be the best option.
I created a sample where you provide a MinimumValue for the NumericYAxis that is less than 0. This will move the 0 tickmark up which will also move your bottom points up. I then provided an Interval and then I gave the axis some custom tickmark values that were calculated such that they would only start at 0 and move up by the Interval amount. This gives you the appearance as though you have shifted up the entire Y axis.
Let me know if you have any questions.
Rob,
Thanks for your time in providing the sample project. I've attached a picture of the result in case anyone else comes looking.
I am providing our users with the ability to switch between chart types. If the point (and line) charts need a different numeric axis it it's not so good, especially when switching to column charts.
I'll stick with my clipped markers, as the least nasty of the two.
I noticed you are clipping your plot area with a rectangular geometry clip, and that's where my problem is. If I get rid of the clipping then that problem is solved, but of course the clipping is essential when the chart is zoomed. There may be a way forward for me in this direction.
Thanks
Hi Pete,
You could also try creating a style for PointSeries and try setting the margin. This will help push the points off the edges. You might see some slight misalignment with the category labels though. It would be a very simple addition so you might want to give it a try to see how it looks.
Let me know if you have any further questions.