Class actuate.report.ChartProvides functions to operate on a chart element, such as changing its format or retrieving data from specific elements.The actuate.report.Chart object is created when actuate.viewer.PageContent.getChartByBookmark( ) is called.Table 4-26 lists actuate.report.Chart functions.
Table 4-26 getType( ) hide( ) setSize( ) show( ) submit( ) Submits all the asynchronous operations that the user has requested on this report and renders the chart component on the pageThis example clears existing filters from the PRODUCTLINE column of a chart and changes the chart title:actuate.report.HTML5Chart.ClientChart Chart.getClientChart( )Returns the HTML5 Chart instance if this chart has an HTML5 Chart output format, otherwise returns null.actuate.report.HTML5Chart.ClientChart. The HTML5 formatted chart or null.String. This method returns the string "Chart" when the type is actuate.report.Chart.CHART and the string "Flash Chart" when the type is actuate.report.Chart.FLASH_CHART.bchart.hide( );Sets the number of dimensions for the chart element. The chart dimension only works if supported by the chart’s type. A 3D chart does not support multiple value axes. Remove all of the y-axes after the first before converting a chart to 3D.actuate.report.Chart. The number of dimensions in which to display the chart element. Supported values are 2D and 2D with depth. The constants defined for this argument are:bchart.setChartTitle(bchart.getBookmark( ) + ": 2D with Depth");Applies filters to this chart element. To apply more than one filter to a chart element, call this function multiple times, once for each filter object.To set the chart bchart to be 600 pixels wide by 800 pixels high, use code similar to the following:alert("Resizing " + bchart.getBookmark( ) + " to 600x800");Sets a subtype for this chart element. When the report calls submit( ), the report redraws the chart element as the requested type.String. The format in which to redraw the chart element. The constants that define the chart subtypes are:bchart.show( );Submits all the asynchronous operations for this chart. The submit( ) function triggers an AJAX request for all asynchronous operations. When the server finishes the processing, it returns a response and the results are rendered on the page in the chart container.Function. Optional. A function to execute after the asynchronous call processing is done. Submit passes the current actuate.viewer object to the callback as an input parameter.This example sets the chart’s title to the bookmark name and pops up an alert box after calling submit( ):
|
|
Copyright Actuate Corporation 2012 |