Advertisement
Guest User

Untitled

a guest
May 30th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. LineSeries series = new LineSeries();
  2. // set the stroke thickness to 2
  3. series.setStrokeThickness(Util.getDimen(TypedValue.COMPLEX_UNIT_DIP, 2));
  4. // bind to the 'category' field of the ViewModel object
  5. series.setCategoryBinding(new FieldNameDataPointBinding("category"));
  6. // bind to the 'value' field of the ViewModel object
  7. series.setValueBinding(new FieldNameDataPointBinding("value"));
  8. // set the data source
  9. series.setData(getDataSource());
  10. // add LineSeries to the chart's series collection
  11. cartesianChart.getSeries().add(series);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement