Example usage for org.jfree.chart ChartFactory createXYStepAreaChart

List of usage examples for org.jfree.chart ChartFactory createXYStepAreaChart

Introduction

In this page you can find the example usage for org.jfree.chart ChartFactory createXYStepAreaChart.

Prototype

public static JFreeChart createXYStepAreaChart(String title, String xAxisLabel, String yAxisLabel,
        XYDataset dataset) 

Source Link

Document

Creates a filled stepped XY plot with default settings.

Usage

From source file:dao.Graficos.java

public void tipoGrafico(TipoGrafico tipo) {

    switch (tipo) {

    case linear:/* w ww  . j a v  a2 s.  co  m*/

        grafico = ChartFactory.createXYLineChart(titulo, xx, xy, dados, PlotOrientation.VERTICAL, true, true,
                true);

        break;

    case polar:

        grafico = ChartFactory.createPolarChart(titulo, dados, true, true, true);

        break;

    //            case barras:
    //
    //      
    //
    //                break;
    //            case pizza:
    //
    //                grafico = ChartFactory.createXYStepChart(titulo, xx, xy, dados);
    //
    //                break;
    case area:

        grafico = ChartFactory.createXYStepAreaChart(titulo, xx, xy, dados);

        break;

    }

}