Results 1 to 2 of 2

Thread: Change color of MSChart column?

  1. #1

    Thread Starter
    Addicted Member S@NSIS's Avatar
    Join Date
    Aug 2000
    Location
    Stoke-On-Trent, England
    Posts
    243
    Hi,
    Has anybody got any idea on how to change the color of a column in an MSChart graph in runtime (not designtime!).

    Thanks in advance

    Shaun
    Web/Application Developer
    VB6 Ent (SP5), Win 2000,SQL Server 2000

  2. #2
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613

    Post

    Add a MSChart control to a form, and a button
    then add this code:

    'change the color of series 1 to white
    Private Sub Command1_Click()
    MSChart1.Plot.SeriesCollection(1).DataPoints(-1).Brush.FillColor.Set 255, 255, 255
    End Sub

    Hope this help
    TheBao

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