StackedXYAreaChart - shapes for data points

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
chrisrhyno2003
Posts: 30
Joined: Thu Jun 18, 2015 5:42 pm
antibot: No, of course not.

StackedXYAreaChart - shapes for data points

Post by chrisrhyno2003 » Thu Jul 02, 2015 1:47 am

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 ?

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: StackedXYAreaChart - shapes for data points

Post by paradoxoff » Thu Jul 02, 2015 11:40 am

There is no class StackedXYAreaChart.
The class StackedXYAreaRenderer should support drawing of shapes.

chrisrhyno2003
Posts: 30
Joined: Thu Jun 18, 2015 5:42 pm
antibot: No, of course not.

Re: StackedXYAreaChart - shapes for data points

Post by chrisrhyno2003 » Thu Jul 02, 2015 5:14 pm

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.

chrisrhyno2003
Posts: 30
Joined: Thu Jun 18, 2015 5:42 pm
antibot: No, of course not.

Re: StackedXYAreaChart - shapes for data points

Post by chrisrhyno2003 » Thu Jul 02, 2015 6:25 pm

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);

Locked