Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. // Getting a reference to LinearLayout of the MainActivity Layout
  2. chartContainer = (LinearLayout) findViewById(R.id.chart_container);
  3.  
  4. // Creating a Line Chart
  5. mChart = (GraphicalView) ChartFactory.getLineChartView(getBaseContext(), dataset, multiRenderer);
  6.  
  7.  
  8. // Adding the Line Chart to the LinearLayout
  9. chartContainer.addView(mChart);
  10.  
  11. bitmap1 = Bitmap.createBitmap(mChart.getDrawingCache());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement