Jump to content
Software FX Community

how do you set the x axis labels?


User (Legacy)

Recommended Posts

how do you set the x axis labels?

I'm trying to chart values by month, and would like to see Jan, Feb,

Mar...etc along the x Axis.

I don't have actual dates along the X Axis, so i can't use the format

funtion with MMM as a formatting arg.

Which is actually a second question..how would i chart data like that (

(1/2/2006, 100); (2/15/2006,150); (3/12/2006,300); etc)

what property/collection would I use to enter the Dates?

thanks in advance,

johnsNoSpam@TransitAir.com

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles MyBase.Load

Dim i, j As Integer

With Chart1

.Stacked = Stacked.Normal

.OpenData(COD.Values, 2, 12) ' It Requires: Imports SoftwareFX.ChartFX.Lite

For j = 0 To 11

.Value(0, j) = Microsoft.VisualBasic.Rnd * 100

.Value(1, j) = .Value(0, j) * Microsoft.VisualBasic.Rnd

Next

.Titles(0).Text = "TAs per Month (Domestic=Blue, International=Red)"

.CloseData(COD.Values) ' It Requires:Imports SoftwareFX.ChartFX.Lite

End With

Link to comment
Share on other sites

how do you set the x axis labels?

I'm trying to chart values by month, and would like to see Jan, Feb,

Mar...etc along the x Axis.

I don't have actual dates along the X Axis, so i can't use the format

funtion with MMM as a formatting arg.

Which is actually a second question..how would i chart data like that (

(1/2/2006, 100); (2/15/2006,150); (3/12/2006,300); etc)

what property/collection would I use to enter the Dates?

thanks in advance,

johnsNoSpam@TransitAir.com

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles MyBase.Load

Dim i, j As Integer

With Chart1

.Stacked = Stacked.Normal

.OpenData(COD.Values, 2, 12) ' It Requires: Imports SoftwareFX.ChartFX.Lite

For j = 0 To 11

.Value(0, j) = Microsoft.VisualBasic.Rnd * 100

.Value(1, j) = .Value(0, j) * Microsoft.VisualBasic.Rnd

Next

.Titles(0).Text = "TAs per Month (Domestic=Blue, International=Red)"

.CloseData(COD.Values) ' It Requires:Imports SoftwareFX.ChartFX.Lite

End With

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...