title: how to display two line charts on a graphview in android getting the values from database?
body: <p>how to display two line charts on a graphview in android getting the values from database?</p>
  
  <p>here is my code</p>
  
  <pre><code>    gvp1=new GraphViewData[systolic.size()];
          for(int i=0;i&lt;gvp1.length;i++)
          {
              gvp1[i]=new GraphViewData(Double.parseDouble(systolic.get(i).toString()), Double.parseDouble(diastolic.get(i).toString()));
          System.out.println("array avp1 is......."+Double.parseDouble(systolic.get(i).toString()));
          }
  
       LineGraphView graphView = new LineGraphView(
              this
              , "BP Graph"
      );
  
  
       graphView.addSeries(new GraphViewSeries(gvp1));
  
       System.out.println("in graphview......"+gvp1);
  
      /* 
       graphView.addSeries(new GraphViewSeries(new GraphViewData[] {
  
               new GraphViewData(1, 2.0d)
  }));*/
  
      /*
       ViewHolder v = null;
  
       v = new ViewHolder();
       convertView=null;      
       */
  
       setContentView(graphView);
      // setContentView(R.layout.demo11);
  
       ImageView iv = new ImageView(this);
       iv.setImageResource(R.drawable.graph_header);
          graphView.addView(iv);
  
  
  
  
  
  
  }
  </code></pre>
  
  <p>this is how i am getting values from database to graph. but i want another line graph to be plotted on same scale.
  any working code will be a great help..</p>