hi have function in javasscript google chart
function drawvisualization() { // create , populate data table. var data = google.visualization.arraytodatatable([ ['name', 'manager', 'tooltip'], ['mike', null, 'the president'], [{v: 'jim', f: 'jim<br/><font color="red"><i>vice president<i></font>'}, 'mike', null], ['alice', 'mike', 'wonderland'], ['bob', 'jim', 'bob sponge'], ['carol', 'bob', null] ]); // create , draw visualization. new google.visualization.orgchart(document.getelementbyid('visualization')). draw(data, {allowhtml: true}); }
i dont understand how fill data array variable, declared in javascript
you need following.
string servervariable = "abc"; string script = string.format("javascript:var j={0};", servervariable); scriptmanager.registerstartupscript(this, this.gettype(), "uniquekey", script, true);
Comments
Post a Comment