-1

By using Microsoft.Office.Interop.Excel, I can create the excel chart on my C# program and extract to excel file.

But I want to directly put the chart to C# wpf.

If it's not possible, can anyone suggest a simple charting library/dll for me.

Will
  • 155
  • 7
  • You can either embed Excels ActiveX control or if you want a pure .NET solution check out the [Chart class](https://msdn.microsoft.com/en-us/library/system.windows.forms.datavisualization.charting.chart(v=vs.110).aspx). However the latter is WinForms so you'll need to host it in a WinForm container in WPF –  Nov 24 '17 at 01:15

1 Answers1

0

if you want to use chart in wpf, you can import DataVisualization.Toolkit and use the chart control

cmnewfan
  • 129
  • 1
  • 9