Hi everyone:
i´m trying to create a specific barchart, so far i did some customizations to aproach to final design, but still miss a lot of them, so i nedd help. hope u could help me with you´re experience.
this is the idea of the final design
Some of the specifications:
- bar width 0.4cm,
- space between bars 0.2cm
- some bars are filled with dots, other with lines other wit other color
- font used, arial narrow 8pt.
- Range Marker dotted and always visible.
My average graph and color highlited.
- Light Green: that space could be 0.2cm but aparently is larger than that, it´s possible to customise it?.
- yellow: how can i hide perpendicular line to de x axis to label? and it´s posible to modify the space between label and axis (X and Y axes)?.
- red: i have to put 13 months(images are in spanish), so when i put january to december and repeat january, the chart render only one January(Ene in my case), so i have to change it for Act, it´s posible to repeat a label?, if its posible how to?.
- Blue: Name of axis in goal graph positions it´s posible?.
- light blue: Range marker is set to 340, and as you can see, didn´t display, and i need to display it anyways, how can i do this?.
- Green: its posible to change color or pattern to a specific bar?
thanks in advance to everyone culd help me.
PD: i searched about one week in forums...
several questions about barchart
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: several questions about barchart
Have a look at either categoryAxis.setUpper/LowerMargin.cee_time wrote: - Light Green: that space could be 0.2cm but aparently is larger than that, it´s possible to customise it?.
categoryAxis.setTickLabelsVisible(false);cee_time wrote: - yellow: how can i hide perpendicular line to de x axis to label? and it´s posible to modify the space between label and axis (X and Y axes)?.
You have two choiced: either make the tick labes unique by adding the year (that should also be more informative for the viewer of the chart), or make sure that equal Strings that you use as keys are not considered to be "equal". See this thread for an example.cee_time wrote: - red: i have to put 13 months(images are in spanish), so when i put january to december and repeat january, the chart render only one January(Ene in my case), so i have to change it for Act, it´s posible to repeat a label?, if its posible how to?.
categoryAxis.setLabelLocation(AxisLabelLocation.HIGH_END) should work. I haven´t used it so far.cee_time wrote: - Blue: Name of axis in goal graph positions it´s posible?.
Two options:cee_time wrote: - light blue: Range marker is set to 340, and as you can see, didn´t display, and i need to display it anyways, how can i do this?.
- Extend the displayed range of the ValueAxis to 15 % more than what wpuld be required (valueAxis.setUpperMargin(0.15))
- Set the range of the ValueAxis manually.
You will have to implement a suitable BarPainter.cee_time wrote: - Green: its posible to change color or pattern to a specific bar?
Re: several questions about barchart
thanks paradoxoff for the advices.
after test you´re advices the results are:
that´s only two things that i need right now.
after test you´re advices the results are:
this works like a charm...Have a look at either categoryAxis.setUpper/LowerMargin.
this hide labels complete, for example domainaxes setTickLabelsVisible to false, hide ,months name, not what i´m looking for. i just need to hide perpendicular tick, and modify space between axe and label.categoryAxis.setTickLabelsVisible(false);
that´s only two things that i need right now.
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: several questions about barchart
Sorry, I confused categoryAxis.setTickLabelsVisible(false) with categoryAxis.setTickMarksVisible(false)
Re: several questions about barchart
Thanks a lot paradoxoff, finally i got the same graph that i nedd.paradoxoff wrote:isible(false) with categoryAxis.setTickMarksVisible(false)