Skip to content

Error Bar in Data #652

Open
Open
@LanPodder

Description

@LanPodder

Trying to create a multi chart consisting of bars and a line.
I want to add a custom error rate to the line from my data.
i currently see no way to do this.
currently im doing

var dataChart = [
  {
    type: pptx.charts.BAR,
    data: [{
      name: 'region1',
      labels: labels,
      values: [0.08, 0.16, 0.27, 0.19, 0.15, 0.16]
    },
    {
      name: 'region2',
      labels: labels,
      values: [0.2, 0.17, 0.19, 0.2, 0.13, 0.11]
    }],
    options: {
      chartColors: ['0a2657', '0080ff'],
      barGrouping: 'standard'
    }
  },
  {
    type: pptx.charts.LINE,
    data: [{
      name: 'line',
      labels: labels,
      values: line_data
    },
    {
      name: 'Error_Rate',
      labels: labels,
      values: error_data
    }],
    options: {
      chartColors: ['ffb22b'],
      lineDataSymbol: 'triangle',
      lineSize: 1,
      barGrouping: 'standard',
      secondaryValAxis: !!opts.valAxes,
      secondaryCatAxis: !!opts.catAxes
    }
  }
];

what i want it to look like is something like this:
image

but currently its looking like this:
image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions