Add user defined custom javascript used for custom event handling.
Parameters |
Description |
js |
user defined javascript |
addorder |
three options available:
add custom javascript before or after the jqplot object, or outside the jquery. "before" is the default value. |
None
Use this method to add user defined javascript to phpChart. By default, the custom javascript is added before the jqplot object was generated. User can specify the add order in the function second parameter. You can use custom javascript to create interactive charts such as displaying additional data when mouse over a series data.
In most cases, the custom javascript function can be simply defined between <script> tag outside the phpChart code without using this method, which is the same as using "outside_jquery" as addorder parameter. Depending on the user custom javascript scope required, different addorder value may be needed.
What do you think about this topic? Send feedback!
|
Copyright (c) 2011. All rights reserved.
|