Closed tfeige91 closed 3 years ago
Custom legends are not possible. They get generated based on the data provided.
You could look at Grouped Bar Charts? https://github.com/willdale/SwiftUICharts#grouped-bar-chart
Setting up a Grouped Bar Chart with only one group did the trick :) Thanks!
No worries, glad it's working.
Is it possible to draw a custom Legend for a bar chart? I have many bars but only two conditions and want to place only those two conditions in a legend below the chart. What I get is a Legend with one Item for each bar.
In the Docs it says that legends is part of BarChartData but I can't add id there.