Coloring of Color Grid series.

TeeChart for ActiveX, COM and ASP
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Coloring of Color Grid series.

Post by amol » Thu Apr 30, 2020 3:03 pm

Hi,

We are currently using Tee-Chart Active X 2018.0. We are facing a problem related to Color Grid series. We have plotted the data through the Color Grid series w.r.t. its coloring. When we open the T-Chart editor and select the Grid 3D tab, three tabs i.e. "Single" tab or "Range" tab or "Palette" tab appear.

Here when we change the colors either through the "Single" tab or "Range" tab or "Palette" tab, the grid plotted do not update with the color changes. But if I go to "Single" tab and click on button "Remove custom colors", the color grid also gets colored and now all the color changes done either through the "Single" tab or "Range" tab or "Palette" tab do affect the color grid plotted on T-Chart.

I wanted to handle the "Remove custom colors" option at code level, but was not able to find the same. Please suggest.

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Coloring of Color Grid series.

Post by Yeray » Fri May 08, 2020 7:43 am

Hello,

The "Remove Custom Colors" button loops the PointColor array and resets it as follows:

Code: Select all

    Dim i As Integer
    For i = 0 To TChart1.Series(0).Count - 1
      TChart1.Series(0).PointColor(i) = clTeeColor
    Next i
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply