Simple bar graphs in VB
-
I am working on a program that needs a simple stacked bar graph (4 stacked values, 3 bars). I am doing it in VB due to all the math involved in the project. I have been searching for ways to do this, but all I have found are commercial controls that cost hundreds of dollars. The simplicity of the graphs and the scope of the program make this unreasonable (considering the $60 control as a last resort - csXGraph). Any suggestions?
David Wilkes
-
I am working on a program that needs a simple stacked bar graph (4 stacked values, 3 bars). I am doing it in VB due to all the math involved in the project. I have been searching for ways to do this, but all I have found are commercial controls that cost hundreds of dollars. The simplicity of the graphs and the scope of the program make this unreasonable (considering the $60 control as a last resort - csXGraph). Any suggestions?
David Wilkes
If you are using VB.NET, you could draw the graph yourself using the classes in the
System.Drawing
namespace. I don't know about classic VB as I haven't used it for years.Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
I am working on a program that needs a simple stacked bar graph (4 stacked values, 3 bars). I am doing it in VB due to all the math involved in the project. I have been searching for ways to do this, but all I have found are commercial controls that cost hundreds of dollars. The simplicity of the graphs and the scope of the program make this unreasonable (considering the $60 control as a last resort - csXGraph). Any suggestions?
David Wilkes
You can also use ZedGraph - http://www.zedgraph.org[^] Works incredibly well, has the feature you're asking for, you just pass it x and y values. You'd need to use VB.NET though unless you want to do a ton of COM interop, so this may rule it out since you're using VB.
"If you think of yourselves as helpless and ineffectual, it is certain that you will create a despotic government to be your master. The wise despot, therefore, maintains among his subjects a popular sense that they are helpless and ineffectual." - Frank Herbert
-
You can also use ZedGraph - http://www.zedgraph.org[^] Works incredibly well, has the feature you're asking for, you just pass it x and y values. You'd need to use VB.NET though unless you want to do a ton of COM interop, so this may rule it out since you're using VB.
"If you think of yourselves as helpless and ineffectual, it is certain that you will create a despotic government to be your master. The wise despot, therefore, maintains among his subjects a popular sense that they are helpless and ineffectual." - Frank Herbert
Thanks! As it turns out I had this all along (got it but never used it for a diffrent project) but forgot about it.
David Wilkes