use of org.jfree.chart.JFreeChart in project adempiere by adempiere.
the class MChart method createAreaChart.
private JFreeChart createAreaChart() {
// create the chart...
JFreeChart chart = ChartFactory.createAreaChart(// chart title
getName(), // domain axis label
getDomainLabel(), // range axis label
getRangeLabel(), // data
getCategoryDataset(), X_AD_Chart.CHARTORIENTATION_Horizontal.equals(getChartOrientation()) ? PlotOrientation.HORIZONTAL : // orientation
PlotOrientation.VERTICAL, // include legend
isDisplayLegend(), // tooltips?
true, // URLs?
true);
setupCategoryChart(chart);
return chart;
}
use of org.jfree.chart.JFreeChart in project adempiere by adempiere.
the class MChart method createBarChart.
private JFreeChart createBarChart() {
JFreeChart chart = ChartFactory.createBarChart(// chart title
getName(), // domain axis label
getDomainLabel(), // range axis label
getRangeLabel(), // data
getCategoryDataset(), X_AD_Chart.CHARTORIENTATION_Horizontal.equals(getChartOrientation()) ? PlotOrientation.HORIZONTAL : // orientation
PlotOrientation.VERTICAL, // include legend
isDisplayLegend(), // tooltips?
true, // URLs?
true);
BarRenderer renderer = new BarRenderer();
renderer.setBarPainter(new StandardBarPainter());
CategoryPlot plot = chart.getCategoryPlot();
plot.setRenderer(renderer);
setupCategoryChart(chart);
return chart;
}
use of org.jfree.chart.JFreeChart in project adempiere by adempiere.
the class MChart method create3DStackedBarChart.
private JFreeChart create3DStackedBarChart() {
JFreeChart chart = ChartFactory.createStackedBarChart3D(// chart title
getName(), // domain axis label
getDomainLabel(), // range axis label
getRangeLabel(), // data
getCategoryDataset(), X_AD_Chart.CHARTORIENTATION_Horizontal.equals(getChartOrientation()) ? PlotOrientation.HORIZONTAL : // orientation
PlotOrientation.VERTICAL, // include legend
isDisplayLegend(), // tooltips?
true, // URLs?
true);
setupCategoryChart(chart);
return chart;
}
use of org.jfree.chart.JFreeChart in project adempiere by adempiere.
the class MChart method createStackedAreaChart.
private JFreeChart createStackedAreaChart() {
// create the chart...
JFreeChart chart = ChartFactory.createStackedAreaChart(// chart title
getName(), // domain axis label
getDomainLabel(), // range axis label
getRangeLabel(), // data
getCategoryDataset(), X_AD_Chart.CHARTORIENTATION_Horizontal.equals(getChartOrientation()) ? PlotOrientation.HORIZONTAL : // orientation
PlotOrientation.VERTICAL, // include legend
isDisplayLegend(), // tooltips?
true, // URLs?
true);
setupCategoryChart(chart);
return chart;
}
use of org.jfree.chart.JFreeChart in project adempiere by adempiere.
the class MChart method create3DBarChart.
private JFreeChart create3DBarChart() {
JFreeChart chart = ChartFactory.createBarChart3D(// chart title
getName(), // domain axis label
getDomainLabel(), // range axis label
getRangeLabel(), // data
getCategoryDataset(), X_AD_Chart.CHARTORIENTATION_Horizontal.equals(getChartOrientation()) ? PlotOrientation.HORIZONTAL : // orientation
PlotOrientation.VERTICAL, // include legend
isDisplayLegend(), // tooltips?
true, // URLs?
true);
setupCategoryChart(chart);
return chart;
}
Aggregations