Page 1 of 2

how can i change the color of the bar/series

Posted: Thu Apr 27, 2006 11:23 am
by 6925851
in a bar chart
i want to change the color of the individual bar how can i change

i have seen in property in color each in series -format tab .i have change the color but it is only reflecting the legend for the series but not the bar color ...

how can i change the color ...?
regards
aravind

Posted: Thu Apr 27, 2006 11:26 am
by narcis
Hi Aravind,

It works fine for me here using TeeChart Pro v7.0.0.7 which was released yesterday. Which TeeChart version are you using?

On the other hand, you can also use the run-time property:

Code: Select all

    TChart1.Series(0).ColorEachPoint = True

i am using version 7.0.0.6

Posted: Thu Apr 27, 2006 11:29 am
by 6925851
i am using version 7.0.0.6 ,
could you pls provide me link for latest version 7.0.07

regards
aravind

Posted: Thu Apr 27, 2006 11:32 am
by narcis
Hi Aravind,

You'll find the information at the announcement I posted yesterday.

do i need to upgarde the ocx or is this bug in v 7.0.0.6 and

Posted: Thu Apr 27, 2006 11:43 am
by 6925851
do i need to upgarde the ocx or is this bug in v 7.0.0.6
and when i login using my id and license number i am not able see version 7.0.0.7 link instead i see other links

Customer Number: G875011
License number : 6925851

http://www.steema.com/downloads/dwn_tch_ax.html

content of the page:
Registered version download page. Please select this link

Executable demo to see TeeChart Pro features. The demo is prepared with the VCL version, you can view the same funcionality in Visual Basic by downloading the Evaluation version linked below.
Live TeeChart Pro demos with Internet Explorer.
ASP examples (Server and Client side, SQL-Server, etc).

If you want to receive a free Trial CDRom, click here,
if not, you may download by selecting a link from below:

TeeChart Pro ActiveX version 7 Free download (Fully functional 50 day trial version)
This version of TeeChart is compatible with Microsoft's Visual Studio.NET.
TeeChart7ActivexEval v7 - Dec 2005 ( 13.0MB)

Teechart6.cab v6 - July. 2003. ( 1MB ). Authenticoded cabinet file version of Teechart Pro v6 AX Control evaluation. Mirror.
Teechart7.cab v7 - Aug. 2004. ( 1MB ). Authenticoded cabinet file version of Teechart Pro v7 AX Control evaluation. Mirror.
Translations to several languages available in the registered ActiveX version only.

regards
aravind

i have downloaded version 7.0.0.7 but still i have the same

Posted: Thu Apr 27, 2006 12:08 pm
by 6925851
i have downloaded version 7.0.0.7 but still i have the same issue.

i have drawn a bar graph and after drawing i have enabled color each point for first series.
TChart1.Series(0).ColorEachPoint = True

it was red color bar and leged for it were shown red .

when i click on the teechart editor and went to series format tab and changed to blue color , legend color changes to white when color each is checked . if it is unchecked then color changes at legend value not the corresponding bar ....

when i got data and change the color from there it is changing for the bar....
at runtime wat is the extact property to change the color of the bar
aravind

Posted: Thu Apr 27, 2006 1:52 pm
by narcis
Hi Aravind,

It works fine for me here using v7.0.0.7. Are you sure that this is the version you are really using? If necessary manually unregister v7.0.0.6 and register v7.0.0.7.

For more information and how to register/unregister ActiveX components please read Tutorial 18 - TeeChart runtime installation requirements. You'll find the tutorials at TeeChart's program group.

I HAVE UNREGISTER VERSION AND REGISTERED

Posted: Thu Apr 27, 2006 2:14 pm
by 6925851
I have done unregister and register new version , still it is showing no color change

i dnot know wat to do now , it is very simple code i have added just 2 bar in the series and trying to change the colors at runtime .


aravind

Posted: Thu Apr 27, 2006 2:20 pm
by narcis
Hi Aravind,

It works fine for me using:

Code: Select all

Private Sub Command1_Click()
    TChart1.Series(0).ColorEachPoint = Not TChart1.Series(0).ColorEachPoint
    TChart1.Series(1).ColorEachPoint = Not TChart1.Series(1).ColorEachPoint
End Sub

Private Sub Form_Load()
    Me.TeeCommander1.Chart = Me.TChart1
    
    TChart1.AddSeries scBar
    TChart1.Series(0).FillSampleValues 5
    TChart1.Series(0).ColorEachPoint = True
        
    TChart1.AddSeries scBar
    TChart1.Series(1).FillSampleValues 5
    TChart1.Series(1).ColorEachPoint = True
End Sub
Can you please test if this works at your end and modify it so that we can reproduce the problem here?

BTW: At design-time, can you please right-click on your TeeChart component in a form and click "About TeeChart" to check that you are using v7.0.0.7?

its working for chart now

Posted: Thu Apr 27, 2006 2:24 pm
by 6925851
it is working for the chart now but it is newly drawn chart from v7.0.07 where if i load v7.0.06 chart still colors cannot be changed in the chart and issue continues in it ...

could you tell wat exactly i am making mistake ..? setting up any parameters ...?
aravind

i can send the saved chart which is causing me the problem

Posted: Thu Apr 27, 2006 2:25 pm
by 6925851
how i can upload the tee file here .?
aravind

Posted: Thu Apr 27, 2006 2:42 pm
by narcis
Hi Aravind,

Please post it at news://steema.public.attachments newsgroup. To set up this newsgroup server you just need to add www.steema.net as a news server with the defaul settings in your news reader. You may also run news://www.steema.net to achieve that.

Thanks in advance.

still i have problem with series color change

Posted: Tue May 09, 2006 12:20 pm
by 6925851
i uninstalled all previous versions and when i draw a bar chart with 2 dimensional array , i was not able to change the series color, the example you have given is work ing fine ...


if you want i send you the application where i have this issue , i have checked line by line code , nothing different . but still no luck in series color change ...

advise me
aravind

Posted: Tue May 09, 2006 12:58 pm
by narcis
Hi Aravind,

Yes please, post it to the attachments newsgroup.

enclosed the code

Posted: Tue May 09, 2006 1:48 pm
by 6925851
i have pasted full code which i am not able to set color of each bar

Dim A(2, 2), B(2, 2), C(2)
A(0, 0) = 14
A(1, 0) = 134
A(1, 1) = 23
A(0, 1) = 43
B(0, 0) = 2
B(1, 0) = 23
B(0, 1) = 24
B(1, 1) = 43

C(0) = "s"
C(1) = "sd"
TChart1.AddSeries scBar
TChart1.AddSeries scBar
For i = 0 To 1
For j = 0 To 1
TChart1.series(i).Add A(i, j), B(i, j), TChart1.series(i).Color
Next j
TChart1.series(i).ColorEachPoint = True
Next i

pls check and post me back asap
aravind