예제 #1
0
 /**
  * Creates a bar chart view.
  *
  * @param context the context
  * @param dataset the multiple series dataset (cannot be null)
  * @param renderer the multiple series renderer (cannot be null)
  * @param type the bar chart type
  * @return a bar chart graphical view
  * @throws IllegalArgumentException if dataset is null or renderer is null or if the dataset and
  *     the renderer don't include the same number of series
  */
 public static final GraphicalView getBarChartView(
     Context context,
     XYMultipleSeriesDataset dataset,
     XYMultipleSeriesRenderer renderer,
     Type type) {
   checkParameters(dataset, renderer);
   XYChart chart = new BarChart(dataset, renderer, type);
   return new GraphicalView(context, chart);
 }
예제 #2
0
 public static final GraphicalView getTimeBarChartView(
     Context context,
     XYMultipleSeriesDataset dataset,
     XYMultipleSeriesRenderer renderer,
     Type type,
     String format) {
   checkParameters(dataset, renderer);
   TimeBarChart chart = new TimeBarChart(dataset, renderer, type);
   chart.setDateFormat(format);
   return new GraphicalView(context, chart);
 }