CT.5.3 Bind Chart to Query or Worksheet (Report Only)
Use the report 'query' property only in onLoad script.
To bind data to a chart from an arbitrary query or Data Worksheet in a report onLoad script, use the chart's query property.
Chart1.query = 'sales by state';
Chart1.bindingInfo.xFields = [["State",Chart.STRING]];
Chart1.bindingInfo.yFields = [["Sales",Chart.NUMBER]];
You can see an example of this approach in Modifying a Chart Data Binding.
To read Viewsheet data, use the Viewsheet's Data property.
| << CT.5.2 Bind Chart to Query or Worksheet (Report/Viewsheet) | © 1996-2013 InetSoft Technology Corporation (v11.5) | CT.5.4 Bind Chart to Data Block (Viewsheet Only) >> |