Example usage for org.jfree.chart.ui RectangleEdge TOP

List of usage examples for org.jfree.chart.ui RectangleEdge TOP

Introduction

In this page you can find the example usage for org.jfree.chart.ui RectangleEdge TOP.

Prototype

RectangleEdge TOP

To view the source code for org.jfree.chart.ui RectangleEdge TOP.

Click Source Link

Document

Top.

Usage

From source file:mekhq.gui.FinancesTab.java

private JFreeChart createMonthlyChart(CategoryDataset dataset) {
    JFreeChart chart = ChartFactory.createBarChart("", // title
            resourceMap.getString("graphDate.text"), // x-axis label
            resourceMap.getString("graphCBills.text"), // y-axis label
            dataset);// ww  w .  j av a  2  s .c  om

    chart.setBackgroundPaint(Color.WHITE);

    chart.getLegend().setPosition(RectangleEdge.TOP);

    return chart;
}