Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: X-Y Graphs with GUI Composer

$
0
0

Hi Myriam,

To workaround the UI limitation, you can create two GUI Vars and have them bind to your target arrays. In the onPropertyChanged handler of the two GUI Vars, add these two javascript calls to update the graph.

Note that _setSeriesN is an internal function and can change for future version of the GC library.

function onArray3_xPropertyChanged( propertyName, newValue, oldValue) {
dijit.byId('SP_Widget')._setSeriesN(newValue, 2, true);
}

function onArray3_yPropertyChanged( propertyName, newValue, oldValue) {
dijit.byId('SP_Widget')._setSeriesN(newValue, 2, false);
}

SP_Widget is the ID of your graph widget. The last argument (true/false) is to specify the x array and y array.

Regards,
Patrick


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>