setExternalWorkbook

setExternalWorkbook(String workbookPath) function

Sets external workbook as a data source for the chart. Chart data will be updated from the target workbook.

Parameters

NameTypeDescription
workbookPathStringPath to the target workbook

Error

ErrorCondition
InvalidOperationExceptionExternal workbook is not available or can’t be loaded.

setExternalWorkbook(String workbookPath, boolean updateChartData) function

Sets external workbook as a data source for the chart.

Parameters

NameTypeDescription
workbookPathStringPath to the target workbook
updateChartDatabooleanIf value is false only workbook path will be updated. Chart data won’t be loaded and updated from the target workbook. Can be used when target workbook doesn’t exist or it’s not available. If value is true chart data will be updated from the target workbook.

Error

ErrorCondition
InvalidOperationExceptionExternal workbook is not available or can’t be loaded.