SmoothieChart

The SmoothieChart extension uses a cool JavaScript charting widget for streaming data in a scrolling chart.

How to Use

The SmoothieChart extension can be added to a Wisej.NET project using NuGet Package Manager.

// set up 3 SmoothieCharts
// chart 1
smoothieChart1.TimeSeries.Add(new TimeSeries() { FillColor = Color.Green });
smoothieChart1.TimeSeries.Add(new TimeSeries() { FillColor = Color.Red });
smoothieChart1.TimeSeries.Add(new TimeSeries() { FillColor = Color.Blue });
// chart 2
smoothieChart2.TimeSeries.Add(new TimeSeries() { FillColor = Color.LightGray, LineColor = Color.White, LineWidth = 5 });
// chart 3
smoothieChart3.TimeSeries.Add(new TimeSeries() { FillColor= Color.Red, LineColor= Color.Black,  LineWidth= 2 });
// provide data for chart 1
private void smoothieChart1_DataNeeded(object sender, DataNeededEventArgs e)
{            
    if (e.LineIndex == 0)
    {
        e.Value = rnd.Next(100);
    }
    else if (e.LineIndex == 1)
    {
        e.Value = rnd.Next(50);
    }
    else if (e.LineIndex == 2)
    {
        e.Value = rnd.Next(30);
    }
}

Find more information in our SmoothieChart example in C# or in VB.NET. Or just try it online.

Learn more about the SmoothieChart in our Blog.

Last updated