Skip to content

Create Legend in SKCartesianChart #123

Answered by beto-rodriguez
essenius asked this question in Q&A
Discussion options

You must be logged in to vote

SKCartesianChart, SKPieChart and SKGeoMap classes do not require a UI.

But for now all the legends and tooltips are user controls on each platform, this allows the user to pass a custom template to render their own tooltips and legends using the syntax in their current platform (Xamarin, Avalonia, WPF, WinUI ...) sadly there is no a standard between all these platforms.

An alternative is to create your own IChartLegend<T> and use the SkiaSharp API to draw the legend, this way we could share the legend across all platforms (and "in-memory charts" also such as the SKCharts classes). Actually I was going for this approach for the library, but then it would have been harder for the user to cu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@beto-rodriguez
Comment options

Answer selected by essenius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants