How to use AddArrayXYZ method in color grid

TeeChart for ActiveX, COM and ASP
Post Reply
zrandlbs
Newbie
Newbie
Posts: 37
Joined: Thu Dec 05, 2013 12:00 am

How to use AddArrayXYZ method in color grid

Post by zrandlbs » Fri Dec 20, 2013 11:19 pm

Hi,
I am using colorgrid for mapping with C#. xCoordinate, yCoordinate are coordinate array ,zValue is the value of x-y, c is different colors , programme is :

TChart2.Series(0).asColorGrid.IrregularGrid = true
for (int i = 0; i < MyDb.zValue.Length; i++)
{
UInt32 c = MyDb.allocate(MyDb.zValue);
TChart2.Series(0).asColorGrid.AddXYZ(xCoordinate, zValue, yCoordinate, "", c);
}
sometimes I can work out images,but sometimes I cannot, see attached. I checked the original data of black color in images, the color should not be black.I wonder if data are large(about 50000 records)
Now if I use addarrayXYZ(x,z,y) to replace addxyz to finish the same task. z represents color, how I define z in c#?

thanks,
Attachments
p1.jpg
failed image
p1.jpg (101.39 KiB) Viewed 16672 times

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

Re: How to use AddArrayXYZ method in color grid

Post by Yeray » Mon Dec 23, 2013 10:27 am

Hello,

You may be interested in reading the explanation here about how to populate this type of series.

If you still find problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.

Thanks in advance.
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

zrandlbs
Newbie
Newbie
Posts: 37
Joined: Thu Dec 05, 2013 12:00 am

Re: How to use AddArrayXYZ method in color grid

Post by zrandlbs » Mon Dec 23, 2013 2:56 pm

Yeray,
Thank you for your answer instantly. I find I cannot show the color rightly. I mark two points that show color incorrectly(see my images).
I give you a simple programme, Please help me to check it. I hope there were no black(or blue) bars in it.
I appreciate your great help.
thanks,
robinson.
Attachments
question.jpg
wrong image
question.jpg (317.65 KiB) Viewed 16563 times

zrandlbs
Newbie
Newbie
Posts: 37
Joined: Thu Dec 05, 2013 12:00 am

Re: How to use AddArrayXYZ method in color grid

Post by zrandlbs » Mon Dec 23, 2013 2:59 pm

Yeray,
Here is my programme. The colors on my image at my marked points should be the colors I marked. I donot know if I attached my programme successfully.
Merry Christmas,
Robinson

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

Re: How to use AddArrayXYZ method in color grid

Post by Yeray » Tue Dec 24, 2013 12:04 pm

Hi Robinson,

I can't see the attachment. Don't you get an error message indicating what's wrong?
If you still find problems with it, you can post your files at our upload page or directly send them to us at "info at steema dot com" by mail.
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

zrandlbs
Newbie
Newbie
Posts: 37
Joined: Thu Dec 05, 2013 12:00 am

Re: How to use AddArrayXYZ method in color grid

Post by zrandlbs » Tue Dec 24, 2013 10:05 pm

Yeray,
I have send email to you.
Cheers,
Robinson

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

Re: How to use AddArrayXYZ method in color grid

Post by Yeray » Thu Jan 02, 2014 11:56 am

Hi Robinson,

We've checked the mail account but haven't found your mail. Could you please send it again at "info at steema dot com" or "sales at steema dot com"?
Thanks in advance.
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

zrandlbs
Newbie
Newbie
Posts: 37
Joined: Thu Dec 05, 2013 12:00 am

Re: How to use AddArrayXYZ method in color grid

Post by zrandlbs » Fri Jan 03, 2014 4:56 am

Hi,Yeray,
I have emailed you again.
Thanks,
Robinson

Post Reply