This is a lightweight .NET WinForms Control for creating Sparkline charts with simple style customization options
Add a reference to the Sparkline control into your toolbox and draw the chart in your form. Showing your data is just a matter of populating the Values property of the object and calling the Refresh method.
sparkline1.Values = new List<float>() { 97, 90, 91, 55, 69, 65 };
sparkline1.Refresh();Make sure to always call the Refresh() method after updating the values from a list.
Values- A list of floats containing your series values. Make sure to callRefresh()after updating the listYMin/YMax- Set the Y axis range. Only works if auto ranging is disabled (see below)AutoMin/AutoMax- Automatically calculates the Y axis rangeFilled- Fills the area below the line seriesFillColor- Fill color, ifFilledis set to trueLineStyle- APenobject defining the series style, such as color, width, pattern, etc.LineColor- Exposes color of the internalPenobjectLineWidth- Exposes width of the internalPenobject
