Skip to content

Conversation

dustinfarris
Copy link

@dustinfarris dustinfarris commented Jun 20, 2023

  • specify series color with color
  • per-series overrides
  • support multiple series for doughnut/pie charts

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

- specify series color with `color`
- per-series overrides
- support multiple series for doughnut/pie charts
@WhyUuAsk
Copy link

Hello! dataBorder disappeared now. Help to restore please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants