gitbrent / PptxGenJS

Create PowerPoint presentations with a powerful, concise JavaScript API.
https://gitbrent.github.io/PptxGenJS/
MIT License
2.84k stars 625 forks source link

additional series support #1265

Open dustinfarris opened 1 year ago

dustinfarris commented 1 year ago

You can now provide any option to the data series and it will override the chart options for that series, e.g.

const series1 = {
  name: "Series 1",
  labels: ["A", "B", "C"],
  values: [1, 2, 3],
  // chartColors will be `["#AAA"]` because that is set at the chart-level
}
const series2 = {
  name: "Series 2",
  labels: ["A", "B", "C"],
  values: [4, 5, 6],
  chartColors: ["#F00", "#0F0", "#00F"]
}
slide.addChart(
  presentation.ChartType.bar,
  [series1, series2],
  {
    title: "Multi-series bar chart with different color patterns",
    showTitle: true,
    chartColors: ["#AAA"]
  }
);

Closes #1261 Closes #1198 Closes #1190 Closes #1031

WhyUuAsk commented 1 year ago

Hello! dataBorder disappeared now. Help to restore please.