From b911e3374f169b2a9127e8a2657edf3fd59da68c Mon Sep 17 00:00:00 2001 From: hell-racer Date: Tue, 8 May 2018 14:29:46 +0300 Subject: [PATCH] Fix for #8 Removed SetSourceData call as it seems like the chart picks the right source when it's created --- Ribbon/DataWriter.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Ribbon/DataWriter.cs b/Ribbon/DataWriter.cs index 249a713..8f54669 100644 --- a/Ribbon/DataWriter.cs +++ b/Ribbon/DataWriter.cs @@ -39,7 +39,6 @@ public static void WriteData() Range dataRange= ws.Range["A1:B101"]; dataRange.Select(); ws.Shapes.AddChart(XlChartType.xlLineMarkers).Select(); - xlApp.ActiveChart.SetSourceData(Source: dataRange); } } }