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)
labeling question
markcheung
I am using BIRT Chart Engine to create a histogram view rather than a report. The only way to do so using BIRT is by starting with a bargraph and making it look like a histogram. The label that I am getting is a set of x-axis scales (in CDateTime format), so it is something like 07/ 28 05:00, 7/28 10:00, 7/28 15:00, 7/28 20:00. I have already gotten the frequencies for the time range, and I would like to make it look like a histogram rather than a bar graph. I can either set the scales' label to a set of ranges (07/ 28 00:00 - 07/ 28 05:00, 07/ 28 05:00 - 7/28 10:00, etc) or insert a beginning scale label with no value and shift all the bars to the left.
Code snippet:
xAxis = chart.getPrimaryBaseAxes()[0];
xAxis.getLabel().getCaption().getFont().setRotation(45);
// xAxis.setLabelPosition(Position.RIGHT_LITERAL); //error
xAxis.setGapWidth(10); //??
xAxis.getTitle().getCaption().setValue("Time");
xAxis.getTitle().getCaption().setColor(ColorDefinitionImpl.CREAM());
xAxis.getTitle().setVisible(true);
String k=xAxis.getLabel().getCaption().getValue();
System.out.println("Value: "+k); -->print out "Value: " no k value?
attached screenshot. I think this thread belong to this forum.
Find more posts tagged with
Comments
JasonW
Did you get this to work?
Jason