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
Problem ColorGrid with a double value
some more information
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)
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)
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
It's works perfect Now !!
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
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