Hi I have a DefaultCategoryDataset which I am using for a Line chart. It creates stacked bars using a KeyToGroupMap and GroupedStackedBarRenderer.
on the top of the bars I would like to create a line chart , that is why i use the LineAndShapeRenderer to make it. It works fine,
my x-Axis starts from year 2015 to year 2024
so for each year there is a stacked bar (2 colors, red for internal-costs and blue for external-costs)
and also for each year there is a datapoint for the line chart from year 2015 to year 2024
I would like to display the chart as following:
the bars using the GroupedStackedBarRenderer range from year 2015 to 2024
the lines using the LineAndShapeRenderer range from year 2018 to 2021
is that possible? Can anyone help me?
Best regards,
sabonzo
CategoryDataSet and LineAndShapeRenderer
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: CategoryDataSet and LineAndShapeRenderer
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
Re: CategoryDataSet and LineAndShapeRenderer
Thanks a lot, David
That solved my problem!
That solved my problem!
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: CategoryDataSet and LineAndShapeRenderer
No problem!
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program