willdale / SwiftUICharts

A charts / plotting library for SwiftUI. Works on macOS, iOS, watchOS, and tvOS and has accessibility features built in.
MIT License
843 stars 105 forks source link

Is there a way to add multiple legends base on the color of the bars in BarChart? #195

Open owenzhao opened 2 years ago

owenzhao commented 2 years ago

I had tried, but the legends created was based on each bar with many duplicates.

What I wanted was something like: red bar, type 1 green bar, type 2 yellow bar, type 3

like above.