Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LineSeries series = new LineSeries();
- // set the stroke thickness to 2
- series.setStrokeThickness(Util.getDimen(TypedValue.COMPLEX_UNIT_DIP, 2));
- // bind to the 'category' field of the ViewModel object
- series.setCategoryBinding(new FieldNameDataPointBinding("category"));
- // bind to the 'value' field of the ViewModel object
- series.setValueBinding(new FieldNameDataPointBinding("value"));
- // set the data source
- series.setData(getDataSource());
- // add LineSeries to the chart's series collection
- cartesianChart.getSeries().add(series);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement