Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7522557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:33:27+00:00 2026-05-30T02:33:27+00:00

I am using zedgraph to draw bar chart in my vb.net project. The bar

  • 0

I am using zedgraph to draw bar chart in my vb.net project. The bar base is Y (meaning all bars are horizontal). I have 9 fields for user to choose from, and once a user clicks a field, one corresponding bar will show. Of course, the user can click off the selected field to remove the corresponding bar item. I can do this. The basic idea is to get all bar items and set their visibility according to user’s selection. My problems is that I want to have a textlabel next to each bar (this text label is different from legend)so I set the yAxis.Type=text. There are two problems:

1) When I add bars, I still need to specify x and y value. How do I set y value in this case to make sure bar ally perfect with its text?

2) As far as I know, I can add text labels by an array as the last line code shows. But obviously this only works for bar chart with fixed bars. In my case, the number of bars and also the order is changing based on user selection. How can I set text labels?

Dim gpBar As GraphPane
            'bar setting
            gpBar.BarSettings.Base = BarBase.Y

            gpBar.BarSettings.MinBarGap = 0.1
            gpBar.BarSettings.ClusterScaleWidth = 4
            gpBar.BarSettings.Type = BarType.Cluster
            gpBar.YAxis.Type = AxisType.Text
            **gpBar.YAxis.Scale.TextLabels = {"a", "b"}**
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:33:28+00:00Added an answer on May 30, 2026 at 2:33 am

    A simple but maybe not sufficient solution is to redraw all bars and labels each time a user changes his selection of bars.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my vb.net project, I use zedgraph to draw figures. I find that the
I use zedgraph to draw figures in my vb.net project. The x axis of
How to draw triangle wave (symmetrical) using ZedGraph ? alt text http://img101.imageshack.us/img101/8482/okr20troj.jpg Preferably with
I'm using ZedGraph for my 2D graphing needs, but for a project, I need
In Zedgraph (asp.net) I have a datapoint list where the x values are of
I am using ZedGraph's master pane to display two graphs that have synchronized X
I am using ZedGraph to create a pie chart, and adding items to it
I have a bar graph and I want to allow the user to right
I'm currently using the charting within .NET using System.Windows.Forms.DataVisualization.Charting.Chart . Thus far it seems
I have successfully used the C++ example project to draw graphs from my C++

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.