Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Getting a reference to LinearLayout of the MainActivity Layout
- chartContainer = (LinearLayout) findViewById(R.id.chart_container);
- // Creating a Line Chart
- mChart = (GraphicalView) ChartFactory.getLineChartView(getBaseContext(), dataset, multiRenderer);
- // Adding the Line Chart to the LinearLayout
- chartContainer.addView(mChart);
- bitmap1 = Bitmap.createBitmap(mChart.getDrawingCache());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement