Skip to content

invertedColors: not working any more #970

@ericlaaper

Description

@ericlaaper

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions