Problem ColorGrid with a double value

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
IPHC
Newbie
Newbie
Posts: 3
Joined: Fri Apr 20, 2007 12:00 am
Contact:

Problem ColorGrid with a double value

Post by IPHC » Thu Jul 10, 2008 1:33 pm

I have a big trouble when i try to setting a double value with a ColorGrid.
I set successfully with a indice table of value if work very fine
but when i try to set a double value is not work !!
exemple:
tab[0] =1.114; tab1[0] = 55,5;
tab[1] =1.256; tab1[1] = 60,5;
tab[3] = 1.356;
lX = tab[0];
.....
lZ = tab1[0];
.....
fColorGrid.add(lX ,lValue , lZ); // NO WORK
//fColorGrid.add(i, lValue ,j); // WORK FINE

thanks per advance
jerome H

IPHC
Newbie
Newbie
Posts: 3
Joined: Fri Apr 20, 2007 12:00 am
Contact:

some more information

Post by IPHC » Thu Jul 10, 2008 1:45 pm

i have this error
fListPositions size =92
fListAngles size =123
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsEx
ception: -1
at com.steema.teechart.styles.ValueList.getValue(ValueList.java:
430)
at com.steema.teechart.styles.ColorGrid.drawGrid(ColorGrid.java:
162)
at com.steema.teechart.styles.ColorGrid.draw(ColorGrid.java:261)
at com.steema.teechart.styles.Series.drawSeries(Series.java:2222
)
at com.steema.teechart.Chart.internalDraw(Chart.java:670)
at com.steema.teechart.Chart.paint(Chart.java:1807)
at com.steema.teechart.TChart.paintComponent(TChart.java:571)

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jul 10, 2008 2:31 pm

Hi IPHC,

First of all, please notice that you need to populate ColorGrid series as I described on this thread.

If the problem still persists please send us a code snippet or a simple example project we can run "as-is" to reproduce the problem here.

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

IPHC
Newbie
Newbie
Posts: 3
Joined: Fri Apr 20, 2007 12:00 am
Contact:

It's works perfect Now !!

Post by IPHC » Fri Jul 11, 2008 2:23 pm

I just add a test for viewing if my grid is or isn't irregular

if (lXinc != lZinc )
fColorGrid.setIrregularGrid(true);
else
fColorGrid.setIrregularGrid(false);

and after fColorGrid.add(lX,lValue,lZ);

GOOD and thanks all for this help

bye

Post Reply