Area Chart- Removing vertical borders from chart

Hello Synfusion Team,

We are using synfusion area chart. We want to hide the vertical lines of area chart. Is there any way to do it?

I tried using line chart but there i couldn't set the color gradient.

Our Result:


We want to hide vertical lines highlighted in yellow. It should look something like below.


html-

<ejs-chart style='display:block; height: inherit !important;' [chartArea]='chartConfig?.chartArea'
[primaryXAxis]='chartConfig?.primaryXAxis' [primaryYAxis]='chartConfig?.primaryYAxis'
[chartArea]='chartConfig?.chartArea' [height]="chartConfig?.height" [tooltip]="chartConfig?.tooltip">
<e-series-collection>
<e-series #ejsChart [dataSource]='chartData' [type]='chartConfig?.chartType' [name]='chartConfig?.name'
[xName]='chartConfig?.xName'
[yName]='chartConfig?.yName' [fill]='fill' width=2
[border]='chartConfig?.border' opacity=1>
e-series>
e-series-collection>
ejs-chart>

ts:

this.chartConfig= {
chartType: 'Area',
primaryXAxis: this.primaryXAxis,
primaryYAxis: this.primaryYAxis,
xName: 'week',
yName: 'value',
legendSettings: {
visible: false
},
chartArea: this.chartArea,
fill: '#328DFF',
border: {
color: '#0033A0',
width: 2
},
tooltip: {
enable: false
},
height: '30%'

};


3 Replies 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team October 29, 2021 02:40 PM UTC

Hi Ansuman, 

Greetings from Syncfusion. 

By default, when border is specified for area chart, border will be applied for whole path. We suggest you to use Line series along with an area series to achieve your requirement. Please check with below snippet and sample. 

<ejs-chart> 
            <e-series-collection> 
                <e-series [dataSource]='data' type='Line' xName='x' yName='y'  fill="blue" width=2 > 
                </e-series> 
            </e-series-collection> 
</ejs-chart> 

 


Kindly revert us if you have any concerns. 

Regards,  
Durga G

Marked as answer

AP Ansuman Panda October 29, 2021 03:16 PM UTC

Okay, I think this will do. Thank you synfusion team.



DG Durga Gopalakrishnan Syncfusion Team November 1, 2021 06:51 AM UTC

Hi Ansuman, 

Most welcome. Please get back to us if you need any further assistance. We are always happy in assisting you. 

Regards,  
Durga G 


Loader.
Up arrow icon