Page 1 of 1

How to use AddArrayXYZ method in color grid

Posted: Fri Dec 20, 2013 11:19 pm
by 16667970
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,

Re: How to use AddArrayXYZ method in color grid

Posted: Mon Dec 23, 2013 10:27 am
by yeray
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.

Re: How to use AddArrayXYZ method in color grid

Posted: Mon Dec 23, 2013 2:56 pm
by 16667970
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.

Re: How to use AddArrayXYZ method in color grid

Posted: Mon Dec 23, 2013 2:59 pm
by 16667970
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

Re: How to use AddArrayXYZ method in color grid

Posted: Tue Dec 24, 2013 12:04 pm
by yeray
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.

Re: How to use AddArrayXYZ method in color grid

Posted: Tue Dec 24, 2013 10:05 pm
by 16667970
Yeray,
I have send email to you.
Cheers,
Robinson

Re: How to use AddArrayXYZ method in color grid

Posted: Thu Jan 02, 2014 11:56 am
by yeray
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.

Re: How to use AddArrayXYZ method in color grid

Posted: Fri Jan 03, 2014 4:56 am
by 16667970
Hi,Yeray,
I have emailed you again.
Thanks,
Robinson