Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Series Palette Problem
markcheung
For some reason, my bar graph displays only 1 color.
xsdefinition.getSeriesPalette().shift(1);
List k =xsdefinition.getSeriesPalette().getEntries();
System.out.println(k.size()); //-->32
xAxis.getSeriesDefinitions().add(xsdefinition);
xsdefinition.getSeries().add(xseries);
Find more posts tagged with
Comments
mwilliams
Hi MC,
Does your chart have more than one series?
markcheung
Thanks for the reply.
No, my chart has only 1 series for now.
Error found:
simply set the legend type to categories_literal: chart.getLegend().setItemType(LegendItemType.CATEGORIES_LITERAL);
mwilliams
MC,
You got it!
Let us know whenever you have questions.