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

  • Home
  • SEARCH
  • 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 6205367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:15:42+00:00 2026-05-24T05:15:42+00:00

Is there a way to modify the width of a ZedGraph bar? If so,

  • 0

Is there a way to modify the width of a ZedGraph bar? If so, what is the code necessary to do so? Is it possible to make it so the bars scale with the zoom also? I have bars that don’t show up because of the way the scaling works currently (there is a wide x-axis range, which makes all of the bars very skinny). If the bar is too narrow, it won’t show up at all. I’d like the bars to be wider so they will always show up without having to zoom in to see them.

  • 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-24T05:15:44+00:00Added an answer on May 24, 2026 at 5:15 am

    The documentation for ZedGraph has the following to say about bar type graphs (emphasis mine):

    Typically, bar charts would be created with XAxis.Type = AxisType.Text or XAxis.Type = AxisType.Ordinal (both types use ordinal values), such that the bars are drawn at integral values along the “base” axis, starting with 1 (e.g., the first bar cluster is at 1.0, the second is at 2.0, etc.). However, the ordinal axis type is not a requirement for bar charts. It is possible to create a bar chart that is not evenly spaced, by providing X values and using AxisType.Linear (in this case, you may need to use the GraphPane.ClusterScaleWidth property to tell ZedGraph how wide the bars should be. See this wiki page for details). For bar charts, the tic marks are typically between the bar clusters, which can be accomplished with the Axis.MajorTic.IsBetweenLabels property. However, this property is only applicable for AxisType.Text axes.

    Unfortunately the wiki link goes to the old domain which the authors of ZedGraph seem to have abandoned. However there is an archived version: Wiki Page

    Finally you may find it helpful to check the excellent source code reference at sourceforge.

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

Sidebar

Related Questions

Is there an easy way to modify this code so that the target URL
Is there a way to modify JavaScript code while debugging? Visual Studio has Edit
Is there a way to modify existing .NET assemblies without resorting to 3rd party
Is there any way to modify the bound value of one of the variables
Is there a way to modify/tell dired to copy files asynchronously? If you mark
Is there any way to modify the CSS properties of one table's cells based
is there a simple way to modify the InnerXml of a XElement? supose we
Is there an easy-ish way to modify the webform-form-tpl.php template to show disclaimer text
Is there way in next piece of code to only get the first record?
According to Daniel, in his answer, there is no easy way to modify the

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.