I am working on a big library of C# components to help people visualize data. When working with sensors sometimes its best to see graphs or visual representations of the numbers, rather than reading all those numbers. These components could also be used in your apps. Maybe you're building a home temperature monitoring system, with these components you'll be able to have a nice user-friendly control panel.
I've decided to make this completely open to the community. This means that you will see all my components as I make them (images & source code). I hope you guys will have requests/ideas of things you'd like to add.
Current Items:
Analog Needle (Optional Pressure gauge style warning and danger zones)
Bar Graphs (Optional fit curve)
Please note that the code is not perfect since I am sharing these as I make them. They have gotten nowhere near the proper amount of testing I would usually do.
Code: Data Components.zip 7KB 3 downloads
Image: components.PNG 22.57KB 17 downloads
Example use (simulates increasing values):
private void timer1_Tick(object sender, EventArgs e) { if (analog_Needle1.Value < 165) { analog_Needle1.Value += 10; bars2.SetValue(0, analog_Needle1.Value); } analog_Needle1.Refresh(); bars2.Refresh(); } private void analog_Needle1_Load_1(object sender, EventArgs e) { analog_Needle1.Minimum = 0; analog_Needle1.Maximum = 200; analog_Needle1.SetZones(0, 150, 150, 175, 175, 200); analog_Needle1.DrawNormal = true; analog_Needle1.DrawWarning = true; analog_Needle1.DrawDanger = true; timer1.Start(); } private void bars2_Load(object sender, EventArgs e) { float[] data = new float[] { 10, 20, 20, 40, 50, 70, 30, 20, 40 }; bars2.SetValues(data); bars2.DrawCurve = true; bars2.Refresh(); }