CT.5.4 Bind Chart to Data Block (Viewsheet Only)
To bind data to one of the Data Blocks available to the Viewsheet, use the chart's query property (in element-level or onLoad script).
For example, assume that 'Orders And Returns' is the name of a Data Block.

The following element-level or onLoad script binds this Data Block to the chart.
Chart1.query = "Orders And Returns";
Chart1.bindingInfo.xFields = [["Company",Chart.STRING]];
Chart1.bindingInfo.yFields = [["Total",Chart.NUMBER]];
You can see an example of this approach in Modifying a Chart Data Binding.
| << CT.5.3 Bind Chart to Query or Worksheet (Report Only) | © 1996-2013 InetSoft Technology Corporation (v11.5) | CT.5.5 Bind Chart to JavaScript Array (Report/Viewsheet) >> |