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.64k stars 9.02k forks source link

How to make the chart real-time display? #666

Closed wangningdy closed 9 years ago

wangningdy commented 9 years ago

Hi Philip Thank you for MPAndroidChart! How to make the chart real-time display? I mean data is constantly updated, Such as X axis is a total of 1-5, now it is 3,The chart shows the data of 1-3,After 3 is empty! I don't know whether MPAndroidChart support that? I don‘t know if or whether you can understand 。My English is too poor! No matter how to thank you!! aaaa

PhilJay commented 9 years ago
mitesh-shah commented 9 years ago

@wangningdy : Use handler and call setData function each time with different values. and then write mChart.invalidate(); It worked for me.

yuliangC commented 6 years ago

@wangningdy Hi wangningdy ,I am in trouble with the same question like yours,did you solve your question? Can you tell me how did you do for this question? if you are Chinese,please answer me for 中文,my English is very poor.thanks! Best wishes!