A container for an HTML5-enabled chart element in a report. ClientChart provides functions to operate on a ClientChart element on the client side only, such as retrieving the chart size or setting the title and series values for the currently displayed chart.Table 4-30 lists actuate.report.HTML5Chart.ClientChart functions.
getCore( ) redraw( ) Changes the minimum and maximum of the X-axis and zooms in on the new data range Changes the minimum and maximum of the Y-axis and zooms in on the new data rangemyClientChart.addSeries('monthly revenue', [1,5.5, 2,4.5, 3,7.8, 4,7.7, 5,1.2, 6,8.5 7,1.9, 8,4.5, 9,12, 10,9.1, 11,4, 12,6.6]);actuate.report.HTML5Chart.ClientChart.getCategoryCountalert("This HTML5 client chart has" + myClientChart.getCategoryCount( ) + "categories.");actuate.report.HTML5Chart.ClientChart.getChartHeightactuate.report.HTML5Chart.ClientChart.getChartWidthactuate.report.HTML5Chart.ClientChart.getClientOptionsactuate.report.HTML5Chart.ClientOption ClientChart.getClientOptions( )actuate.report.HTML5Chart.ClientOption object. The client options.This example retrieves the client options for myClientChart and stores them in the myClientOptions variable:actuate.report.HTML5Chart.Highcharts ClientChart.getCore( )actuate.report.HTML5Chart.Highcharts object. A highchart.This example retrieves the Highcharts object from myClientChart and stores it in the myHighchart variable:actuate.report.HTML5Chart.ClientChart.getSeriesCountReturns the maximum value of the series associated with the X-axis in this ClientChart.This example displays the maximum value of the series associated with the X-axis in myClientChart as an alert:Returns the minimum value of the series associated with the X-axis in this ClientChart.This example displays the minimum value of the series associated with the X-axis in myClientChart as an alert:float ClientChart.getYAxisMax( integer axisIndex)Returns the maximum value of a series associated with the Y-axis in this ClientChart.Integer. Optional. Axis index. The minimum value is 0, which is the default value, indicating the first Axis.This example displays the maximum value of the series associated with the Y-axis in myClientChart as an alert:float ClientChart.getYAxisMin( integer axisIndex)Returns the minimum value of a series associated with the Y-axis in this ClientChart.Integer. Optional. Axis index. The minimum value is 0, which is the default value, indicating the first Axis.This example displays the minimum value of the series associated with the Y-axis in myClientChart as an alert:actuate.report.HTML5Chart.ClientChart.isChartWithAxesactuate.report.HTML5Chart.ClientOption object. Optional. The chart options.This example removes the series monthly revenue from myClientChart and redraws the chart:actuate.report.HTML5Chart.ClientChart.setSeriesVisiblevoid ClientChart.setValues(string seriesName, float[ ] values, boolean redraw)myClientChart.setValues('monthly revenue', [1,5.5, 2,4.5, 3,7.8, 4,7.7, 5,1.2, 6,8.5 7,1.9, 8,4.5, 9,12, 10,9.1, 11,4, 12,6.6]);actuate.report.HTML5Chart.ClientChart.setXAxisRangeactuate.report.HTML5Chart.ClientChart.setYAxisRangeInteger. Optional. Axis index. The minimum value is 0, which is the default value, indicating the first Axis.This example sets the Y-axis range to 0 through 15 and redraws the chart:
|
|
Copyright Actuate Corporation 2012 |