Info: Open Flash Chart 2 is out. Version 1.x and these pages will
never disappear and the charts will continue working forever, but further
development on 1.x has stopped. Take a look at version 2 here
Open Flash Chart 2.
Gallery - Line - On Click Events
Add click events to the data points
Method: set_links( array $links )
You can use either javascript code or normal URLs as a link.
Points that have an onclick event (they have a link set) will turn the mouse to a hand pointer
and will pulse to indecate something will happen if you click on them.
for( $i=0; $i<12; $i++ ) { $tmp = rand(14,19); // <-- we need to remember this value for the onClick $line_1->add_link( $tmp, 'javascript:alert("Downloads, '. $x_labels[$i] .' = '. $tmp .'")' );