1

I am tweaking the Areas Example project from SwiftCharts and I am running into the issue where the point indicators are getting cut off like so:

enter image description here

In the github issues a found this and this other issue where the solutions were to set chartSettings.clipInnerFrame = false

However, when I do this the the area color awkward shape also becomes visible like so:

enter image description here

How can I get the whole shape of the points but all the other stuff?

boidkan
  • 4,691
  • 5
  • 29
  • 43

1 Answers1

1

You have to pass to the ChartPointsViewsLayer with the points clipViews: false (see example). ChartSettings.clipInnerFrame has to be true (i.e. the default). This way only the layer with the points is clipped.

Finally, if you want to clip the unclipped points layer (to limit the area outside of the chart where they are displayed), you can do it passing a custom rectangle, like here (this setting is admittedly not very intuitive).

User
  • 31,811
  • 40
  • 131
  • 232
  • This almost works however now the points layer is now behind the line graph. Like so https://imgur.com/a/e5iOL – boidkan Nov 14 '17 at 23:22
  • 1
    @boidkan I think this is a (probably easy to fix) bug - this functionality is relatively new and has not been tested well. I'll give it a look later today. – User Nov 15 '17 at 09:38
  • 1
    @boidkan Should be fixed now - please update master and try again! – User Nov 16 '17 at 00:52