I am using Jfreechart to make a stacked area chart. I am using the class StackedXYAreaChart.
I wanted to know if we could draw shapes at data points for the StackedAreaChart, (it a line chart we can denote each data point by setting the SetSeriesShapes()).
The method setSeriesShape() doesn't seem to work. Anyone have any idea ?
StackedXYAreaChart - shapes for data points
-
- Posts: 30
- Joined: Thu Jun 18, 2015 5:42 pm
- antibot: No, of course not.
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: StackedXYAreaChart - shapes for data points
There is no class StackedXYAreaChart.
The class StackedXYAreaRenderer should support drawing of shapes.
The class StackedXYAreaRenderer should support drawing of shapes.
-
- Posts: 30
- Joined: Thu Jun 18, 2015 5:42 pm
- antibot: No, of course not.
Re: StackedXYAreaChart - shapes for data points
I am sorry I phrased my question wrong last time.
I am using the ChartFactory to create a StackedXYAreaChart. I did try using the StackedXYAreaRenderer, but it does not show me any kind of shapes on the actual data point. I used the method setSeriesShape using the renderer. Doesn't seem to work.
I am using the ChartFactory to create a StackedXYAreaChart. I did try using the StackedXYAreaRenderer, but it does not show me any kind of shapes on the actual data point. I used the method setSeriesShape using the renderer. Doesn't seem to work.
-
- Posts: 30
- Joined: Thu Jun 18, 2015 5:42 pm
- antibot: No, of course not.
Re: StackedXYAreaChart - shapes for data points
Found my answer:
You can set shapes for a stackedXYAreaChart using the following method:
StackedXYAreaRenderer renderer = new StackedAreaRenderer(StackedXYAreaRenderer.AREA_AND_SHAPES);
renderer.setShape(index, Shape);
You can set shapes for a stackedXYAreaChart using the following method:
StackedXYAreaRenderer renderer = new StackedAreaRenderer(StackedXYAreaRenderer.AREA_AND_SHAPES);
renderer.setShape(index, Shape);