How to add the same color of the bar chart to the labels of the bar #1374
esuneelkumar722
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the addChart property for to add the bar graph for the labels and values, and client requirement is use different color's for every bar and as well as respective color for the label's also. But I have observed that in the addchart dataLabelColor property accepts string format and only same color for the all the labels. I wanted to know is there any way to add different color for labels. Below is the sample code.
chartSlide.addChart(presentation.ChartType.bar, validBarChartData, {

,
x: 0.29,
y: 2.46,
w: 3.95,
h: 2.77,
// barColors = ['A100FF', '7500C0', '460073', 'FF50A0', '0041F0'];
dataLabelColor: '000000', // Black color for labels to ensure , // Here I wanted to same color as the chartColor's for different
labels respective that thier bar color
chartColors: barColors, // Purple color for chart elements
Previous template:
Expecting template:
if this is possible by the current version and is there any way to get the expected template output, please let me know.
Thanks for the looking into this issue. Great Thanks.
Beta Was this translation helpful? Give feedback.
All reactions