how do i print categoryitem labels in allternative lines....
-
- Posts: 14
- Joined: Tue May 06, 2008 5:57 am
how do i print categoryitem labels in allternative lines....
hi to every one i created on dual axis chart(combination of bar & line chart). i am using CategoryDataset. in that i am facing one more problem i need to put one small line between each categories.. and i need to print category labels in in two lines alternatively...
i have only one series in my domain axis(categories).. i am print 30 items(dates) in domain axis. first item label(01/03) has to print in first line and second item label(02/03) has to print in another line..please help me to come out of this problem.
it needs to be print as mentioned below order
___|___|___|___|___|___|___|___|___|___|___|___|___| domain axis
01/03 03/03 05/03 07/03 09/03
02/03 04/03 06/03 07/03
i have only one series in my domain axis(categories).. i am print 30 items(dates) in domain axis. first item label(01/03) has to print in first line and second item label(02/03) has to print in another line..please help me to come out of this problem.
it needs to be print as mentioned below order
___|___|___|___|___|___|___|___|___|___|___|___|___| domain axis
01/03 03/03 05/03 07/03 09/03
02/03 04/03 06/03 07/03
Re: how do i print categoryitem labels in allternative lines
you can use sublist to achieve the second line text.
-
- Posts: 14
- Joined: Tue May 06, 2008 5:57 am
-
- Posts: 14
- Joined: Tue May 06, 2008 5:57 am
hi samtuen,
i guess the following code will solve your problem
my senerio is bit different from u..
-Sreehari Ojili
i guess the following code will solve your problem
Code: Select all
categoryAxis.setMaximumCategoryLabelLines(lines)
-Sreehari Ojili
Hi Sreehari Ojili,
thank you for your reply. With the method
overlapping can be avoided (the text break in line 2) , but I want that the category texts are displayed alternate on 2 lines. Can you do it?
thank you for your reply. With the method
Code: Select all
categoryAxis.setMaximumCategoryLabelLines(lines)