Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Simple bar graphs in VB

Simple bar graphs in VB

Scheduled Pinned Locked Moved Visual Basic
algorithmsdata-structuresquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amatbrewer
    wrote on last edited by
    #1

    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

    P P 2 Replies Last reply
    0
    • A amatbrewer

      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

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • A amatbrewer

        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

        P Offline
        P Offline
        Patrick Etc
        wrote on last edited by
        #3

        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

        A 1 Reply Last reply
        0
        • P Patrick Etc

          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

          A Offline
          A Offline
          amatbrewer
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups