agcOnError
Overview
The agcOnError
directive requires the googleChart directive to be declared on the same element. It allows you to bind an expression to the ChartWrapper
instance's 'error' event. The expression will have some useful local variables available when it is called.
Check out the
Google Charts API Documentation
for more information on the 'error' event.
Code Example
Available Locals
Name | Description |
---|---|
chart
|
The chart instance belonging to the associated googeChart directive. This is the instance of specific chart type (ie. BarChart , LineChart , etc.) This can be used to drop down to the Google Charts API level and program directly against the chart object.
|
chartWrapper
|
The instance of ChartWrapper belonging to the associated googeChart directive. Can be used to drop down to the Google Charts API level and program directly against the ChartWrapper and chart objects.
|
error
|
The return value from the Google Chart's API's error event. Has the properties id and message .
|
err
|
An alias for error .
|
id
|
The id property of error . Available on it's own for convenience.
|
message
|
The message property of error . Available on it's own for convenience. Contains a human-readable description of the error.
|