MsChart & Returning Original Color 
Author Message
 MsChart & Returning Original Color

I have the following code I pulled off the MS knowledge base on how to
convert colors on a bar chart to patterns of black and white.
My application sends a chart with colors, and has a command button to
change to black and white. However, I need to revert back to the original
colors, as my client has asked to be able to toggle (Via the cmdbutton)
between patterns and the colors as determined by the default series colors.

My routine was written as a do loop but uses the same theory.

How do I reset the colors to the original values, as the 255,255,255 of the
fillcolor.set has made them black? Is there a way to save the original
values, or is there an easier way that I am missing.

     Private Sub Command1_Click()
     MSChart1.Plot.SeriesCollection(1).DataPoints(-1).Brush.Style _
        = VtBrushStylePattern
     MSChart1.Plot.SeriesCollection(1).DataPoints(-1).Brush.Index _
        = VtBrushPatternBoldDownDiagonal
     MSChart1.Plot.SeriesCollection(1).DataPoints(-1).Brush.FillColor.Set _
        255, 255, 255

     MSChart1.Plot.SeriesCollection(2).DataPoints(-1).Brush.Style _
        = VtBrushStylePattern
     MSChart1.Plot.SeriesCollection(2).DataPoints(-1).Brush.Index _
        = VtBrushPatternBoldHorizontal
     MSChart1.Plot.SeriesCollection(2).DataPoints(-1).Brush.FillColor.Set _
        255, 255, 255
     End Sub


Tue, 03 Apr 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. problem using component with asp page -- result of function not returned, instead original value returned

2. mschart changing column color & font

3. comparing MSChart populated data with original data in variant form

4. Resetting original system colors on quitting application

5. MSChart: how to set color of bar graphs

6. Changing Column Color in MSChart

7. MSChart: how to change colors of plot lines?

8. MSChart: how to change colors of plot lines?

9. Controlling the colors in the MSChart Control

10. Setting Color of MSChart element

11. Help: MSChart, howto set colors on bars?

12. MSChart Column Color


Powered by phpBB® Forum Software