PhilJay / MPAndroidChart

A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.
Other
37.54k stars 9.01k forks source link

Bar chart is not showing #4884

Open erKaranjeet opened 4 years ago

erKaranjeet commented 4 years ago

Bar Chart is not visible, only showing a message 'No chart data available'. If i click on this message then data visible in BarChart. The problem is until i not click on barchat message its not showing. After clicking on message it show full data and chart correctly. Please help me to solve this issue.

banchanattu commented 4 years ago

Try calling chart.notifyDataSetChanged() after data is set.

erKaranjeet commented 4 years ago

thanks. But still not worked.

Sourav992v commented 4 years ago

call chart.invalidate()

prabhu73 commented 3 years ago

chart.invalidate() helped me. Thanks a lot @Sourav992v

pradeep-orbi commented 3 years ago

Neither notifyDataSetChanged() nor invalidate() is working. I'm getting no chart data available

Rohit-554 commented 1 year ago

chart. Invalidate()

thanks I was stucked there for long time It really helped