Search code examples
iosios-charts

iOS-chart : Can we how bar chart for ZERO value


I would like to show some customized way for ZERO value on bar chart because the user can't see that the value is ZERO. I am attaching the screenshot here.

enter image description here


Solution

  • I managed to represent ZERO on the chart. I added some icon to the bar with ZERO value.

    BarChartDataEntry(x: x_, y: y_, icon: UIImage(named: "icon"))
    

    enter image description here