Results 1 to 3 of 3

Thread: [RESOLVED] how to change Rowlabel of ms chart in VB6?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2006
    Posts
    31

    Resolved [RESOLVED] how to change Rowlabel of ms chart in VB6?

    If my chart has only a one column, I can change them rowlabels by MsChart1.Rowlabel = "Jan" etc. But the chart has two columns or more I can not do it.

    Could you tell me how coding to solve it?

    Thanx

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: how to change Rowlabel of ms chart in VB6?

    I may be wrong (been a while since ive used the chart control)
    but I think u have to first set the rowlabelindex, then the label
    VB Code:
    1. Mschart1.RowLabelIndex = 1
    2. MsChart1.Rowlabel = "Jan"
    3. Mschart1.RowLabelIndex = 2
    4. MsChart1.Rowlabel = "Feb"
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2006
    Posts
    31

    Re: how to change Rowlabel of ms chart in VB6?

    Thank you Static. I found my solution which are:
    VB Code:
    1. MsChart1.Row = 1          
    2.   MsChart1.RowLabel = "Jan"                  
    3.   MsChart1.Row = 2          
    4.   MsChart1.RowLabel = "Feb"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width