Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

additional series support #1265

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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