解决方案 »

  1.   

    嘿嘿,我是刚刚做完折线图,发表一下拙见,不对勿怪
    其中这个是确定每条线点的坐标,
    String[] titles 这个是每条线的名字,如果是8条线就需要构建8个点集,每次更新这8个点集同时更新,应该是这部分的内容需要更改,你将8条线的数据放入新的点集中
    另外这个demo中的定时器貌似有点小问题,我是这样写的
    说的比较简单,希望能够帮助到你
      

  2.   

    我就是用了List<series> 来添加了8个新点,但是在   生成图表
    chart = ChartFactory.getLineChartView(context, mDataset, renderer);这里就报错了
      

  3.   


    在   生成图表
    chart = ChartFactory.getLineChartView(context, mDataset, renderer);这里就报错
     Caused by: java.lang.IllegalArgumentException: Dataset and renderer should be not null and should have the same number of series