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

Different BarStyles support in StackedChart for different Data Sets #152

Open kunalverma25 opened 2 years ago

kunalverma25 commented 2 years ago

Can it be possible to add support for having different BarStyle associated with different bars in stacked chart?

willdale commented 2 years ago

What do you want to do in the separate bar styles?

kunalverma25 commented 2 years ago

That can allow the library to plot charts like this -

image

Right now to support something like this multiple charts needs to be created and overlayed in ZStack, which doesn’t seem optimal..