Results 1 to 2 of 2

Thread: A little experience required..

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    4

    Unhappy

    I have an app that uses the MS Chart control. How can I programmatically change the color of the series?

    Thanks for any help

    JP

  2. #2
    Hyperactive Member DKCK's Avatar
    Join Date
    Dec 2000
    Location
    United States
    Posts
    329
    This code will change the series color. Replace 1 with what ever row you are changing. Keep the -1. This example creates a blue fill color.

    MSChart.Plot.SeriesCollection(1).DataPoints(-1). Brush.FillColor.Red = 152
    MSChart.Plot.SeriesCollection(1).DataPoints(-1). Brush.FillColor.Green = 173
    MSChart.Plot.SeriesCollection(1).DataPoints(-1). Brush.FillColor.Blue = 199

    DKCK

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