Graph Legend on sub stacks

Get help and support using chartsEngine for LiveCode.

Moderators: heatherlaine, BvG

Post Reply
andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Graph Legend on sub stacks

Post by andyh1234 » Sun Feb 22, 2009 12:58 pm

Hi Malte,

Great work on the new control, definitely something that was missing from RunRev!

I bought a copy a few days ago, and there just seems to be one bug (or maybe just user error!!). Im sure its just a tiny issue!

The problem is with the showLegends on sub-stacks. They work fine if im on the main stack, but not on substacks.

To replicate the problem if you simply create a new stack file, and a substack and put a button on each with the following script...

Code: Select all

on mouseUp

  local tChart

-- Clear the old charts
  repeat for each line myGroup in groupnames
     if myGroup contains "tNewChart"  then
        delete group myGroup
     end if
  end repeat
	
  if "chartsEngine" is not among the lines of the stacksinuse then
     start using stack "chartsEngine"
  end if

  -- Check the chart doesnt already exist,  and if not create it
  if "tNewChart" is not among the lines of groupnames then
     chartsCreateChart "tNewChart", 0,0,the right of me, the bottom of me - 35
     put the result into tChart
  else
     put the long id of group "tNewChart" into tChart
  end if

  set the charts["data"] of tChart to "1,2,3"&cr&"3,2,4"
  set the charts["showLegend"] of tChart to true
  -- Load the chart
  chartsRefresh tChart

end mouseUp
If you then run this, on the main stack the graph and the legend will draw correctly, but on the substack only the graph draws.

Any ideas?

Thanks

Andy

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Post by malte » Mon Feb 23, 2009 1:15 pm

Hi Andy,
will be fixed for 1.1. Thanks for the report.

Cheers,

Malte

andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Post by andyh1234 » Mon Mar 09, 2009 9:42 pm

Hi Malte,

Any news on an update for this, we would like to get the software containing the new charts out but they need the legends to be working.

Thanks

Andy

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Post by malte » Mon Mar 09, 2009 10:02 pm

Hi Andy,

1.1 is not complete yet, but I am sure I can fix it before that update rolls out. I will upload a version for you to test before the end of the week.

Cheers,

Malte

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Post by malte » Mon Mar 09, 2009 11:05 pm

Hi andy,

I think I found the problem. Would you be willing to test a testbuild. If so, please drop me a mail.

Cheers,

Malte

( info@derbrill.de )

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Post by malte » Tue Mar 10, 2009 1:22 am

Ok. Seems fixed. It should now also be possible to send chartsCreateChart as a message to other stacks. If you would like to try it before I release this ito the wild please let me know.

Cheers,

Malte

andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Post by andyh1234 » Tue Mar 10, 2009 12:45 pm

Thanks Malte, an email is on its way.

Andy

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Post by malte » Tue Mar 10, 2009 1:39 pm

Sent you a .zip with a version to try out. I tag that one "unstable" though I do not expect any major issues. Could be I forgot a debug flag or 2, as I branched this out of the 1.1 update. Please let me know if that one works for you.

Cheers,

Malte

andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Post by andyh1234 » Tue Mar 10, 2009 3:46 pm

Thanks Malte

So far its working perfectly, just swapped in the new rev file and the legends appeared on the sub stacks. Just checking for any oddities, but nothing so far, seems to work perfectly.

Ill let you know if I find anything else.

Thanks

Andy

Curlypaws
Posts: 1
Joined: Sat Apr 08, 2006 10:03 pm
Location: Scotland

Post by Curlypaws » Sat Apr 11, 2009 1:13 pm

Hi Malte,

Do you have any date for a release that will fix the problem with legends on sub stacks?

Thanks,

Karen

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Post by malte » Sat Apr 11, 2009 5:12 pm

Hi Karen,

the issue is fixed and tested. Please drop me a mail and I send it along. I might as well just upload it, but have quite a few nice things added. If you need it now I send it, or I'll upload an interims version to my site (which might be a good idea at any rate)

All the best,

Malte

Post Reply

Return to “chartsEngine”