This article explains how to change line style to smoothed line in line chart using XlsIO.
What is smoothed line?
A smoothed line helps you explore the potential relationships between two variables without fitting a specific model. Smoothed lines are most useful when the curvature of the relationship does not change sharply.
Line style changed to smoothed line using XlsIO
To create a line chart and change the line style to smoothed line in Excel using XlsIO, you need to do the following steps.
Steps to create change line style to smoothed line
Create a chart object by calling the worksheet.Charts.Add method and specify the chart type to ExcelChartType.Line enumeration value.
Set a range of data from the worksheet to chart’s DataRange property. To plot the series values in column and categories in row, set chart’s IsSeriesInRows property to false.
Add the basic elements like chart title, legend and datalabels.
Change the line style of chart series to smoothed line.
Applicable properties for a Line Chart
Common property applicable for a line charts is
NOTE: Applying other properties apart from the mentioned property might throw exception or the changes will not be reflected in the output document because those properties are not related to line chart.
The following C#/ VB.NET complete code snippet shows how to change line style to smoothed line in line chart using XlsIO.
This page will automatically be redirected to the sign-in page in 10 seconds.