How to Add a Dashed Array or Strip Line to a Pivot Chart

Hello,
I'm trying to add a vertical dashed line or strip line to my stackingbar pivot chart. I would want to pass in a value and render the line in the chart vertically ontop of the bars from the xAxis. I don't see anything in the documentation to support dash lines or strip lines in the pivot chart but only in the e-chart.


this.chartSettings = {
      chartSeries: { type: 'StackingBar'legendShape: 'Rectangle' },
      legendSettings: { visible: trueposition: 'Top'textStyle: { size: '14px'color: '#656a70' } },
      primaryXAxis: {},
      primaryYAxis: {},
      tooltip: {
        template: '<span class="e-tooltip-wrap e-popup"><b>${rowHeaders}</b><br/><br/><b>${value}</b> ${columnHeaders}<br/> </span>',
      },
    } as ChartSettings;
    this.primaryYAxis = this.displayOption = { view: 'Chart' } as DisplayOption;

<ejs-pivotview
      #pivotview
      id="PivotView"
      [dataSourceSettings]="dataSourceSettings"
      [chartSettings]="chartSettings"
      [displayOption]="displayOption"
      tooltipTemplate="#Template"
      [toolbar]="toolbarOptions"
      allowDrillThrough="true"
      width="width"
      height="height"
      allowConditionalFormatting="true"
      [legendSettings]="legendSettings"
      (chartSeriesCreated)="chartSeriesCreated($event)"
    ></ejs-pivotview>



1 Reply 1 reply marked as answer

SS Saranya Sivan Syncfusion Team October 29, 2020 01:15 PM UTC

Hi Dean, 
 
Thanks for contacting Syncfusion support. 
 
Based on your requirement, we have prepared a sample to apply vertical and horizontal striplines in stacking bar pivot chart for your reference. Please check the below sample and UG for your reference. 
 
 
 
Please let us know if you have concern. 
 
Regards, 
Saranya Sivan. 


Marked as answer
Loader.
Up arrow icon