phpChart
C_PhpChartX.add_custom_js Method
Example  Send Feedback

Add user defined custom javascript used for custom event handling.

Parameters
Parameters 
Description 
js 
user defined javascript 
addorder 
three options available:
  • "before"
  • "after"
  • "outside_jquery"

add custom javascript before or after the jqplot object, or outside the jquery. "before" is the default value. 
Returns

None

Description

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. 

 

 

Remarks

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.

Example
See Also
What do you think about this topic? Send feedback!
Copyright (c) 2011. All rights reserved.