SwiftUICharts icon indicating copy to clipboard operation
SwiftUICharts copied to clipboard

Some improvements to HorizontalBarChartView

Open boherna opened this issue 4 years ago • 0 comments

Improvements (based on my own needs):

  • Supports custom text to show next to the bars (in my case I needed a different text than the default provided).
  • Adjusts the height and size of the bars and circles, respectively, when the size of the dynamic font changes.
  • Allows setting the max value for calculating the bar width (in my case I needed charts with different dataPoints to have a normalised width regardless of the max values of those dataPoints).

I also changed RoundedRectangle by Capsule to guarantee the rounded edges no matter the height of the bar.

Thanks for sharing SwiftUICharts!

boherna avatar Jan 20 '21 12:01 boherna