Click here to Skip to main content
Click here to Skip to main content

Plotter Control (a-la Task Manager Performance History Graphs)

, 2 Jan 2007
Rate this:
Please Sign up or sign in to vote.
Plotter Control with Scrolling (.NET 2.0)

Introduction

I made this control as a favor to my friend who is an electrical engineer.  He needed a Task Manager style control to display a sampled signal coming from a device that he was making.  I did a quick search on codeproject, and the closest thing I could find was Anup. V.’s Plotter control but it lacked the scrolling capability.  So I finally had to get my hands dirty and made this plotter control.  Now I’m posting it here guessing that there might be other electrical engineers out there who are in a desperate need of such a control.

 

Demo Project

 

Sample Image - plotter.jpg

 

Tip: Use the vertical track bar to change the current value.

 

Using the Plotter Control

  • Set the Min & Max properties.

  • Set the BackColor & ForeColor properties to adjust the colors to your liking.

  • Use the Add method to add new values periodically (e.g. from a timer event handler).

 

Changes History

01/03/2006

Fixed a bug when the graph was drawn incorrectly when the control was put on a form with AutoScaleMode different than None and the system font size was different from the size the application was built with.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Serge Slepov
Web Developer
Russian Federation Russian Federation
No Biography provided

Comments and Discussions

 
Questionreset [modified] PinmemberChaosPerformance28-Jan-09 10:39 
Generalmultiple values and Ticks PinmemberThPloeger22-Jan-07 3:54 
GeneralRe: multiple values and Ticks PinmemberSerge Slepov22-Jan-07 7:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141223.1 | Last Updated 2 Jan 2007
Article Copyright 2007 by Serge Slepov
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid