SwiftCharts
SwiftCharts copied to clipboard
issue with gradient in line chart
If you look at each screenshot you will the same proportion of line gradient. The second screenshot is after zooming. did anybody faced with this?
@dehlen any ideas? https://github.com/i-schuetz/SwiftCharts/pull/303
Not quite sure about that. Maybe if you could describe in a few words how zooming the graph works I could take a shot at it. My guess is that the gradient is redrawn for the visible graph if the graph changes (f.e when zooming the graph). If this is the case a possible fix could be to draw the gradient only once, or when necessary. However I did not look at the code since I am on a mobile phone right now. Can you confirm that the graph is redrawn when zooming or is it a simple transform ?