Example usage for org.jfree.chart.renderer.category MinMaxCategoryRenderer setDrawLines

List of usage examples for org.jfree.chart.renderer.category MinMaxCategoryRenderer setDrawLines

Introduction

In this page you can find the example usage for org.jfree.chart.renderer.category MinMaxCategoryRenderer setDrawLines.

Prototype

public void setDrawLines(boolean draw) 

Source Link

Document

Sets the flag that controls whether or not lines are drawn to connect the items within a series and sends a RendererChangeEvent to all registered listeners.

Usage

From source file:org.jfree.chart.demo.MinMaxCategoryPlotDemo1.java

public static JFreeChart createChart(CategoryDataset categorydataset) {
    JFreeChart jfreechart = ChartFactory.createBarChart("Min/Max Category Plot", "Category", "Value",
            categorydataset, PlotOrientation.VERTICAL, true, true, false);
    CategoryPlot categoryplot = (CategoryPlot) jfreechart.getPlot();
    categoryplot.setRangePannable(true);
    MinMaxCategoryRenderer minmaxcategoryrenderer = new MinMaxCategoryRenderer();
    minmaxcategoryrenderer.setDrawLines(false);
    categoryplot.setRenderer(minmaxcategoryrenderer);
    ChartUtilities.applyCurrentTheme(jfreechart);
    return jfreechart;
}