Hi
please tell me how cound i make the following chart
- only range axis on the left (no range axis on the right)
- i can't use the marker for the line because it isn't horizontal
- i looked the DualAxisDemo1 but it has the secondary axis
thanks a lot
stacked bar chart with line chart
Re: stacked bar chart with line chart
Hi, you can use
to force two datasets to use the same axis. Hope it helps you.
Code: Select all
plot.mapDatasetToRangeAxis(indexDataset, indexPlot);
to force two datasets to use the same axis. Hope it helps you.
Re: stacked bar chart with line chart
it is OK for range axis
but not for domain axis (tried with categoryplot.mapDatasetToDomainAxis(1, 0);)
as you see on the above chart, i have 2 lines:
- line1 : from XY(16,12) to (29,12) and up to (30,15) and pass to (66,15)
- line2 : from XY(16,18) to (29,18) and up to (30,25) and pass to (66,25)
how could I use the same domain axis for those 2 lines?
thanks
edit:
here is my chart actually
but not for domain axis (tried with categoryplot.mapDatasetToDomainAxis(1, 0);)
as you see on the above chart, i have 2 lines:
- line1 : from XY(16,12) to (29,12) and up to (30,15) and pass to (66,15)
- line2 : from XY(16,18) to (29,18) and up to (30,25) and pass to (66,25)
how could I use the same domain axis for those 2 lines?
thanks
edit:
here is my chart actually
Re: stacked bar chart with line chart
got solution with createStackedXYAreaChart
(bad idea with StackedBarChart)
(bad idea with StackedBarChart)