-
Notifications
You must be signed in to change notification settings - Fork 821
Description
HI, I have got a problem with the inverted colors in bar chart
Everything works except for this. In the past, same code worked perfect.
Underneath my code for the options off the graph
let optionsGraph = {
x: 0.25,
y: 0.85,
w: 7,
h: 4,
barDir: "bar",
barGrouping: "stacked",
valGridLine: {
color: "EFF0F1",
},
catAxisOrientation: "minMax",
catAxisLabelColor: this.colors.colorB,
catAxisTitleColor:this.colors.colorA,
catAxisLabelFontFace: "Calibri",
catAxisLabelFontSize: 14,
catAxisLineShow: false,
valAxisLabelFontColor: this.colors.colorA,
valAxisLabelFontBold: false,
catAxisLabelPos: 'low',
dataLabelColor: this.colors.colorA,
showValue: false,
chartColors: [this.colors.colorC],
invertedColors: [this.colors.colorD],
titleColor: "red",
titleFontFace: "Arial",
titleFontSize: 24,
valAxisMaxVal: 100,
valAxisMinVal: -100,
};
Then I add the chart by:
slide1.addChart(pptx.charts.BAR, arrayStatementA, optionsGraph);
the optiongraph is stating an error in my IDE which removes when I remove InvertedColors form options.
removing the bracet from InvertedColors makes the error go away but it not makes InvertedColors working.
I also tried with just colornumber in stead off the variable same problem negative values have the same color as positive values.