List of usage examples for org.jfree.chart.plot PlotOrientation VERTICAL
PlotOrientation VERTICAL
To view the source code for org.jfree.chart.plot PlotOrientation VERTICAL.
Click Source Link
From source file:br.com.utfpr.pb.view.GraficoTotalVendasView.java
public GraficoTotalVendasView() { try {/*from w w w . j a va2s. co m*/ // cria o grfico JFreeChart grafico = ChartFactory.createBarChart("Total de Vendas vs Compras por Data", "Data", "Valor Total", graficoDao.totalVendasPorData(), PlotOrientation.VERTICAL, true, true, false); //exibe o grfico ChartFrame frame = new ChartFrame("Grfico", grafico); frame.pack(); frame.setVisible(true); frame.setLocationRelativeTo(null); } catch (Exception e) { e.printStackTrace(); } }
From source file:nodeconfig.FinalSuspectLine.java
public FinalSuspectLine(String applicationTitle, String chartTitle) { super(applicationTitle); JFreeChart lineChart = ChartFactory.createLineChart(chartTitle, "Nodes", "Degree Of Suspect", createDataset(), PlotOrientation.VERTICAL, true, true, false); ChartPanel chartPanel = new ChartPanel(lineChart); chartPanel.setPreferredSize(new java.awt.Dimension(560, 367)); setContentPane(chartPanel);/* w ww.j a v a2 s . c o m*/ }
From source file:cv.mikusher.freechart.LineChart.java
public LineChart(String applicationTitle, String chartTitle) { super(applicationTitle); setDefaultCloseOperation(ApplicationFrame.EXIT_ON_CLOSE); JFreeChart lineChart = ChartFactory.createLineChart(chartTitle, "Years", "Number of Schools", createDataset(), PlotOrientation.VERTICAL, true, true, false); ChartPanel chartPanel = new ChartPanel(lineChart); chartPanel.setPreferredSize(new java.awt.Dimension(560, 367)); setContentPane(chartPanel);/*from ww w .ja va 2s .co m*/ }
From source file:br.com.utfpr.pb.view.GraficoQuantidadeVendasView.java
public GraficoQuantidadeVendasView() { try {// w w w . j a v a 2 s .co m // cria o grfico JFreeChart grafico = ChartFactory.createBarChart("Nmero de Vendas vs Compras por Data", "Data", "Quantidade", graficoDao.quantidadeVendasPorData(), PlotOrientation.VERTICAL, true, true, false); //exibe o grfico ChartFrame frame = new ChartFrame("Grfico", grafico); frame.pack(); frame.setVisible(true); frame.setLocationRelativeTo(null); } catch (Exception e) { e.printStackTrace(); } }
From source file:nodeconfig.BarChart_fuzzy.java
public BarChart_fuzzy(String applicationTitle, String chartTitle) { super(applicationTitle); JFreeChart barChart = ChartFactory.createBarChart(chartTitle, "Nodes", "Fuzzy", createDataset(), PlotOrientation.VERTICAL, true, true, false); ChartPanel chartPanel = new ChartPanel(barChart); chartPanel.setPreferredSize(new java.awt.Dimension(560, 367)); setContentPane(chartPanel);//from w ww . jav a2 s. co m }
From source file:br.com.utfpr.pb.view.GraficoProdutosMaisVendidosView.java
public GraficoProdutosMaisVendidosView() { try {//from w w w. j a va 2 s. c o m // cria o grfico JFreeChart grafico = ChartFactory.createBarChart("Produtos mais Vendidos vs Comprados", "Produto", "Total venda", graficoDao.produtosMaisVendidos(), PlotOrientation.VERTICAL, true, true, false); //exibe o grfico ChartFrame frame = new ChartFrame("Grfico", grafico); frame.pack(); frame.setVisible(true); frame.setLocationRelativeTo(null); } catch (Exception e) { e.printStackTrace(); } }
From source file:geneticalgorithm2.LineChart_AWT.java
public LineChart_AWT(String applicationTitle, String chartTitle, ArrayList<Double> fitnessArrayList) { super(applicationTitle); JFreeChart lineChart = ChartFactory.createLineChart(chartTitle, "Number of Generations", "Minimum Value", createDataset(fitnessArrayList), PlotOrientation.VERTICAL, true, true, false); ChartPanel chartPanel = new ChartPanel(lineChart); chartPanel.setPreferredSize(new java.awt.Dimension(560, 367)); setContentPane(chartPanel);//from w w w. j av a 2 s . c om }
From source file:org.jfree.chart.demo.CategoryMarkerDemo1.java
private static JFreeChart createChart(CategoryDataset categorydataset) { JFreeChart jfreechart = ChartFactory.createLineChart("Category Marker Demo 1", "Category", "Count", categorydataset, PlotOrientation.VERTICAL, true, true, false); jfreechart.setBackgroundPaint(Color.white); CategoryPlot categoryplot = (CategoryPlot) jfreechart.getPlot(); categoryplot.setBackgroundPaint(Color.lightGray); categoryplot.setRangeGridlinePaint(Color.white); NumberAxis numberaxis = (NumberAxis) categoryplot.getRangeAxis(); numberaxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); LineAndShapeRenderer lineandshaperenderer = (LineAndShapeRenderer) categoryplot.getRenderer(); lineandshaperenderer.setSeriesShapesVisible(0, true); lineandshaperenderer.setDrawOutlines(true); lineandshaperenderer.setUseFillPaint(true); lineandshaperenderer.setBaseFillPaint(Color.white); CategoryMarker categorymarker = new CategoryMarker("Category 4", Color.blue, new BasicStroke(1.0F)); categorymarker.setDrawAsLine(true);/*from www .ja v a 2 s. c o m*/ categorymarker.setLabel("Marker Label"); categorymarker.setLabelFont(new Font("Dialog", 0, 11)); categorymarker.setLabelTextAnchor(TextAnchor.TOP_RIGHT); categorymarker.setLabelOffset(new RectangleInsets(2D, 5D, 2D, 5D)); categoryplot.addDomainMarker(categorymarker, Layer.BACKGROUND); return jfreechart; }
From source file:nodeconfig.BarChart_parameters.java
public BarChart_parameters(String applicationTitle, String chartTitle) { super(applicationTitle); JFreeChart barChart = ChartFactory.createBarChart(chartTitle, "Nodes", "Values", createDataset(), PlotOrientation.VERTICAL, true, true, false); ChartPanel chartPanel = new ChartPanel(barChart); chartPanel.setPreferredSize(new java.awt.Dimension(560, 367)); setContentPane(chartPanel);// w w w .j a v a 2 s . c om }
From source file:org.jfree.chart.demo.ItemLabelDemo4.java
private static JFreeChart createChart(CategoryDataset categorydataset) { JFreeChart jfreechart = ChartFactory.createLineChart("Java Standard Class Library", "Release", "Class Count", categorydataset, PlotOrientation.VERTICAL, false, true, false); jfreechart.addSubtitle(new TextTitle("Number of Classes By Release")); TextTitle texttitle = new TextTitle( "Source: Java In A Nutshell (4th Edition) by David Flanagan (O'Reilly)"); texttitle.setFont(new Font("SansSerif", 0, 10)); texttitle.setPosition(RectangleEdge.BOTTOM); texttitle.setHorizontalAlignment(HorizontalAlignment.RIGHT); jfreechart.addSubtitle(texttitle);//from w w w . j a v a 2 s . com jfreechart.setBackgroundPaint(Color.white); CategoryPlot categoryplot = (CategoryPlot) jfreechart.getPlot(); categoryplot.setBackgroundPaint(Color.lightGray); categoryplot.setRangeGridlinePaint(Color.white); NumberAxis numberaxis = (NumberAxis) categoryplot.getRangeAxis(); numberaxis.setUpperMargin(0.14999999999999999D); numberaxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); LineAndShapeRenderer lineandshaperenderer = (LineAndShapeRenderer) categoryplot.getRenderer(); lineandshaperenderer.setBaseShapesVisible(true); lineandshaperenderer.setDrawOutlines(true); lineandshaperenderer.setUseFillPaint(true); lineandshaperenderer.setBaseFillPaint(Color.white); lineandshaperenderer.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator()); lineandshaperenderer.setBaseItemLabelsVisible(true); return jfreechart; }