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. Graphs using GraphicsServer

Graphs using GraphicsServer

Scheduled Pinned Locked Moved Visual Basic
data-structures
3 Posts 2 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.
  • J Offline
    J Offline
    john_paul
    wrote on last edited by
    #1

    On the Y axis of a graph, if the graph starts at 0 and goes to 10000. Is there a way you can force the graph to display the Y values to include a comma so that 10000 renders as 10,000. Thanks

    X 1 Reply Last reply
    0
    • J john_paul

      On the Y axis of a graph, if the graph starts at 0 and goes to 10000. Is there a way you can force the graph to display the Y values to include a comma so that 10000 renders as 10,000. Thanks

      X Offline
      X Offline
      xstoneheartx
      wrote on last edited by
      #2

      use format string like this: Dim cnt As Integer = 100000 MsgBox(cnt.ToString("###,###,###"))

      J 1 Reply Last reply
      0
      • X xstoneheartx

        use format string like this: Dim cnt As Integer = 100000 MsgBox(cnt.ToString("###,###,###"))

        J Offline
        J Offline
        john_paul
        wrote on last edited by
        #3

        Thanks for the reply Here is the code that I used to get the formatting I wanted. With .Grid.AxisY .AxisMode = AxisMode.ValueLinear .AxisScale = AxisScaleType.UserDefined .LabelFormatMask = "###,###,###" .GridLinesOn = True .GridLineProperties.Color = Color.DarkGray .MaxAxisValueUser = highest .MinAxisValueUser = 0 .TickMode = TickMode.OnStartAtZero .MajorTickInterval = 5 .MajorTickCount = 0 'If count is nonzero, interval is ignored .LabelProperties.Font = New Font("Tahoma", _ 8, FontStyle.Bold) .LabelProperties.Font.Dispose() End With

        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