|
Month number on the item |
Posted by Helmut on May-13-2018 00:51 |
|
Hello,
I have set layer = c.addBarLayer2 (cd.Side, 0) with 12 months.
A customer loop and Data1-Data12.
That works wonderfully.
Now I would like to see the Monatz number in the group on each item.
Call layer.setAggregateLabelStyle only gives me the group number.
Call layer.setAggregateLabelFormat ("<* font = arial.ttf, bgcolor = FFCCC0 *> {dataSet}")
Here's the {dataset} not.
What can I do.
Can someone help me?
Thanks and greetings Helmut
|
Re: Month number on the item |
Posted by Peter Kwan on May-13-2018 04:31 |
|
Hi Helmut,
The "aggregate label" is designed for displaying aggregated information. For example, in a stacked bar, it displays the sum of all the stacks in a bar. So the aggregate value does not belong to any particular data set, but to the sum of all data sets. For this reason, the aggregate label does not have any parameter for single data sets.
For your case, you can use setDataLabelFormat for the label, but I see that you have already use setDataLabelFormat to display the data value at the center of the bar. In this case, you may consider to use addCustomAggregateLabel, like:
For i = 0 To layer.getDataSetCount()
For j = 0 To Ubound(labels)
Call layer.addCustomGroupLabel(i, j, "<*font,bgcolor=FFCC00*>" & (i + 1), "arial.ttf", 8)
Next
Next
Hope this can help.
Regards
Peter Kwan |
Re: Month number on the item |
Posted by Helmut on May-13-2018 14:43 |
|
Thanks Peter
it worked well. |
|