PptxGenJS icon indicating copy to clipboard operation
PptxGenJS copied to clipboard

lineDataSymbol and lineDash per data set

Open Jank1310 opened this issue 6 years ago • 0 comments

Added an option to set different lineDataSymbols per data set. Bildschirmfoto von 2019-03-20 14-33-12

Example

const PptxGenJS = require('./dist/pptxgen.js');
var pptx = new PptxGenJS();
var slide = pptx.addNewSlide();

// Chart Type: LINE
var dataChartAreaLine = [
  {
    name  : 'Actual Sales',
    labels: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
    values: [1500, 4600, 5156, 3167, 8510, 8009, 6006, 7855, 12102, 12789, 10123, 15121]
  },
  {
    lineDataSymbol:'diamond',
    name  : 'Projected Sales',
    labels: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
    values: [1000, 2600, 3456, 4567, 5010, 6009, 7006, 8855, 9102, 10789, 11123, 12121]
  }
];
slide.addChart( pptx.charts.LINE, dataChartAreaLine, { x:1.0, y:1.0, w:12, h:6, showLegend:true } );

pptx.save('Demo-Line-Chart');

Jank1310 avatar Mar 27 '19 08:03 Jank1310