CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: MSChart

  1. #1
    Join Date
    Oct 2000
    Location
    Upstate NY
    Posts
    249

    MSChart

    Any of you guru's know how to label the legend that is generated by MSChart. I have 12 bars of varying colors which are called C1 thru C12. I need to give them month names.
    73 RSH


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: MSChart


    ' A small example
    private Sub Form_Load()
    'change legend description
    MSChart1.ColumnLabel = "AAA"
    MSChart1.Column = 2
    MSChart1.ColumnLabel = "bbb"
    MSChart1.Column = 3
    MSChart1.ColumnLabel = "CCC"
    MSChart1.Legend.Location.Visible = true
    'change X description
    MSChart1.RowLabel = "aa"
    MSChart1.Row = 2
    MSChart1.RowLabel = "bb"
    MSChart1.Row = 3
    MSChart1.RowLabel = "cc"
    End Sub




    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Oct 2000
    Location
    Upstate NY
    Posts
    249

    Re: MSChart

    Cimperiali:
    That is exactly what I Needed. With a few modifications it works perfectly. This was not to be found in any of the texts that I own.
    73 & Thanks
    RSH


  4. #4
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    you're welcome

    ;-)
    Have a nice day


    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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

Featured