ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Bar Chart label colors
Posted by Corey on Apr-05-2011 01:57
I am using addBarLayer3() to create a bar chart where each bar has it's own color: c.addBarLayer3(arrData, arrColors), where addData() and  arrColors() are the same size. How can I create data labels where the labels are the same color as the corresponding bar?

I've tried various configurations of .setDataLabelFormat/Style() and .setAggregateLabelFormat/Style() without success. I still need to be able to customize the font and fontsize of the label, as well.

Thanks
--Corey

  Re: Bar Chart label colors
Posted by Peter Kwan on Apr-06-2011 00:06
Hi Corey,

You may use SameAsMainColor as the label color. The exact syntax depends on your programming language, and is the same syntax you use for the "Transparent" color. The syntax can be Chart.SameAsMainColor, Chart::SameAsMainColor, cd.SameAsMainColor, SameAsMainColor, ......

Hope this can help.

Regards
Peter Kwan

  Re: Bar Chart label colors
Posted by Corey on Apr-06-2011 00:08
Worked like a charm.
Thanks!