DataSourceSource property



The name of the data item that provides access to the dataset for the whole chart.

Syntax

Set:     Chart.setDataSourceSource(strSource)
Get: strSource = Chart.getDataSourceSource()

Applies to

Chart object.

Data type

string. The name of a data item that provides access to the data for the whole chart.

Usage

After setting DataSourceSource, call refreshData() to update the data source for the chart.
Use DataSourceSource in applications where multiple data sources are available and you want to dynamically switch the chart display from one data source to another.
// when page is loaded, set chart to get name of its data source
// from data item named 'MySourceName'
function doLoad(n)
{
	var aChart = document.ChartSet.getChart();
	aChart.setDataSourceSource( "MySourceName" );
	refreshData();

	// publish the starting source name
	document.IBBridge.PublishToBus( "MySourceName", "Q1_Source" );
}

// switch the chart to a new source
function switchChartSource( src )
{
	document.IBBridge.PublishToBus( "MySourceName", src );
}

See also
DataSource property
dataSource PARAM tag