Charts
Charts copied to clipboard
StackedBarChart only using rightAxis add extra padding
ℹ When using the Charts-Demo-iOS code for the StackedBarChart
when changing the enabling of the leftAxis
and rightAxis
adds extra padding to the bottom of the chart.
With the default
let leftAxis = chartView.leftAxis
leftAxis.valueFormatter = DefaultAxisValueFormatter(formatter: formatter)
leftAxis.axisMinimum = 0
chartView.rightAxis.enabled = false
StackedBarChart
appears as expected
However when revering which axis to display:
let rightAxis = chartView.rightAxis
rightAxis.valueFormatter = DefaultAxisValueFormatter(formatter: formatter)
rightAxis.axisMinimum = 0
chartView.leftAxis.enabled = false
There is extra padding on the bottom of the StackedBarChart
ℹ Changing between using the leftAxis
and the rightAxis
should not have the shown effect.
Charts (3.6.0) Xcode version: 13.3 Swift version: 5 macOS version running Xcode: 12.3