Page 1 of 1

Example Scripts Errors/Issues

Posted: Mon Jan 04, 2010 4:25 am
by BillJames
I have been exploring the ChartEngine Examples script and have found a few issues:

1. In the script for button "charts!" of card "barsGrouped chart" in line 26. I believe that "colors" should be "chartcolors".

2. On the "Working with the grid" card. there are two fields with incorrect text. The first is field id 204975 that has text "gridXAltFillColor" that should be "gridXFillAltColor" and field id 205096 that has text "gridYAltFillColor" that should be "gridYFillAltColor".

3. On the linesStacked chart, when I click the "Render chart!" button I get the following error:

error: 454,1309,13,Stacked chart" of stack "/Users/williamjames/Documents/Revolution/chartsEngine_104/chartsEngine Examples.rev"
535,1309,1,Stacked chart" of stack "/Users/williamjames/Documents/Revolution/chartsEngine_104/chartsEngine Examples.rev"
253,1305,1
Hint: chartsLegend

v/r

Bill

Re: Example Scripts Errors/Issues

Posted: Wed Jan 06, 2010 12:04 am
by Mark
Hi Bill,

I used http://runrev.info/error.html to parse the error message and got:
Type: defaultStack (can't find stack)
Object name: script
Line:(row 1309 col 13)
Hint: Stacked chart" of stack "/Users/williamjames/Documents/Revolution/chartsEngine_104/chartsEngine Examples.rev"
It is possible that the problem is not in ChartsEngine but in your script, if your script somehow changes the defaultStack, for example while the lockMessages is true. However, if you didn't use any of your own scripts but instead started a new session with RunRev and opened ChartsEngine Examples.rev right after starting RunRev, there is probably a script error in the example stack.

I assume that Malte can say more about this than me.

Best,

Mark

Re: Example Scripts Errors/Issues

Posted: Wed Jan 06, 2010 3:17 am
by BillJames
Mark,

I was running the examples stack unmodified. The linesStacked chart, "Render chart!" button is where I get the error. Other buttons in the example stack work as expected. Thanks,

Bill

Re: Example Scripts Errors/Issues

Posted: Wed Jan 06, 2010 1:40 pm
by malte
Hey Bill,


please excuse the late reply. I am currently on the road, but will return tonight. I´ll take a look then. Just out of curiosity: Which version are you running? I suspect it is not the most current version that is on RRs server, but I will need to make sure.

All the best,

Malte

Re: Example Scripts Errors/Issues

Posted: Wed Jan 06, 2010 9:53 pm
by malte
Quick update on this. Problem identified, now working on a fix.

Re: Example Scripts Errors/Issues

Posted: Wed Jan 06, 2010 11:14 pm
by malte
Just uploaded 1.0.7: http://derbrill.de/downloads/chartsEngine_107.zip

Might take a while, until this one is on RRs server though.

This should fix the reported issue. The problem was wrong use of offset, when trying to identify the owning stack of the group that contains the chart. It would fail, if the name of the card contained the word "stack". This has been fixed. Also the reported documentation errors have been fixed and wrong labeling on the working with the grid card have been fixed.

all the best,

malte

Re: Example Scripts Errors/Issues

Posted: Fri Jan 08, 2010 3:50 am
by BillJames
Thanks for the quick fixes. I look forward to testing the new version.

Bill