diogobernardino / williamchart

Android Library to rapidly develop attractive and insightful charts in android applications.
5.1k stars 800 forks source link

Does WilliamChart LineChartView support displaying multiple line at the same time? #206

Closed noiz354 closed 7 years ago

noiz354 commented 7 years ago

Does WilliamChart LineChartView support displaying multiple line at the same time?

noiz354 commented 7 years ago

such as like this, multiline21

noiz354 commented 7 years ago

i take a look at https://github.com/diogobernardino/WilliamChart/blob/master/mobile/src/main/java/com/db/williamchartdemo/linechart/LineCardOne.java, and line 80 till 95 shows that it have 2 lineset. but it only shown one dataset. so, how do linechartview determine which dataset will be shown? Thanks

diogobernardino commented 7 years ago

In that sample I'm using the second lineset to update the values, not to present both at the same time. There's is nothing special to be done in order to present more than one line, just give as many linesets as you want (using addData())and then call show().

noiz354 commented 7 years ago

ok, got that, thanks