Open
Description
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
}
}
];