Hi list

i've followed the fantastic webinar on chartEngine
Very interesting
I'm now playing with the Engine

I have two questions :

Here is my script which creates my chart :

on mouseUp
   local tChart
   chartsCreatechart "MyGraph"
   put the result into tChart
   put fld "Data1" into tdata
   set the charts["data"] of tChart to tdata
   set the charts["chartStyle"] of tChart to "lines"
   chartsRefresh tChart
end mouseUp

It works correct

Now I want two manipulations of the chart and don't find the way :

1) I'd like to add somme data to the existent data and update the chart

  put the charts["data"] of group "MyGraph"  into tdata
  put cr&"18,5" after tdata
   set the charts["data"] of group "MyGraph"  to tdata
   chartsRefresh group "MyGraph"

it doesn't work ...

2) I have a second btn to completely change the graph

   put fld "Data2" into tdata
   set the charts["data"] of group "MyGraph" to tdata
   chartsRefresh group "MyGraph"

it doesn't work ...


How can I proceed with those 2 scripts ???

Thanks


Greetings.

Yves COPPE
[email protected]

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to