Chart Borders |
Adding a Border | ||
No border is drawn around the charts by default. You can change that by assigning a ChartStroke Object to the ChartProperties. There is a default border implementation of ChartStroke.DEFAULT_CHART_OUTLINE.
ChartStroke borderStroke= new ChartStroke( new BasicStroke( 2.0f ), Color.red ); chartProperties.setBorderStroke( borderStroke );