Search in sources :

Example 1 with BarChart

use of org.achartengine.chart.BarChart in project Anki-Android by Ramblurr.

the class ChartFactory method getBarChartIntent.

/**
 * Creates a bar chart intent that can be used to start the graphical view
 * activity.
 *
 * @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
 * @param activityTitle the graphical chart activity title
 * @return a bar chart intent
 * @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 Intent getBarChartIntent(Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, Type type, String activityTitle) {
    checkParameters(dataset, renderer);
    Intent intent = new Intent(context, GraphicalActivity.class);
    BarChart chart = new BarChart(dataset, renderer, type);
    intent.putExtra(CHART, chart);
    intent.putExtra(TITLE, activityTitle);
    return intent;
}
Also used : RangeBarChart(org.achartengine.chart.RangeBarChart) BarChart(org.achartengine.chart.BarChart) Intent(android.content.Intent)

Example 2 with BarChart

use of org.achartengine.chart.BarChart in project Anki-Android by Ramblurr.

the class ChartFactory method getBarChartView.

/**
 * 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);
}
Also used : RangeBarChart(org.achartengine.chart.RangeBarChart) BarChart(org.achartengine.chart.BarChart) XYChart(org.achartengine.chart.XYChart) CombinedXYChart(org.achartengine.chart.CombinedXYChart)

Example 3 with BarChart

use of org.achartengine.chart.BarChart in project sensorreadout by onyxbits.

the class ChartFactory method getBarChartIntent.

/**
 * Creates a bar chart intent that can be used to start the graphical view
 * activity.
 *
 * @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
 * @param activityTitle the graphical chart activity title
 * @return a bar chart intent
 * @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 Intent getBarChartIntent(Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, Type type, String activityTitle) {
    checkParameters(dataset, renderer);
    Intent intent = new Intent(context, GraphicalActivity.class);
    BarChart chart = new BarChart(dataset, renderer, type);
    intent.putExtra(CHART, chart);
    intent.putExtra(TITLE, activityTitle);
    return intent;
}
Also used : RangeBarChart(org.achartengine.chart.RangeBarChart) BarChart(org.achartengine.chart.BarChart) Intent(android.content.Intent)

Example 4 with BarChart

use of org.achartengine.chart.BarChart in project sensorreadout by onyxbits.

the class ChartFactory method getBarChartView.

/**
 * 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);
}
Also used : RangeBarChart(org.achartengine.chart.RangeBarChart) BarChart(org.achartengine.chart.BarChart) XYChart(org.achartengine.chart.XYChart) CombinedXYChart(org.achartengine.chart.CombinedXYChart)

Aggregations

BarChart (org.achartengine.chart.BarChart)4 RangeBarChart (org.achartengine.chart.RangeBarChart)4 Intent (android.content.Intent)2 CombinedXYChart (org.achartengine.chart.CombinedXYChart)2 XYChart (org.achartengine.chart.XYChart)2