Add data tip in Open Flash Chart
briantes - August 24, 2009 - 11:05
Hello.
I'm using Open Flash Chart API module and it's fantastic, but I have a little problem. I would like to add data tips to use with #tip# token, but I'm not sure how could I do it?.
I use the next code that shows the chart:
.....
$code="#x_label#<br>#key#: #val#<br>#tip#";
$g = new open_flash_chart_api();
$g->set_title( 'Conocimientos', '{font-size: 20px;}' );
$g->set_width(640);
$g->set_height(300);
$g->set_tool_tip($code);
// $data1 has values ...
$g->set_data( $data1 );
// I use a line chart
$g->line( 3, '0x000000', 'Level', 10);
// X:
$g->set_x_labels( $xdata );
$g->set_x_label_style( 10, '#9933CC', 1, 1 );
$g->set_x_axis_steps( 5 );
$g->set_x_legend('Values',10,'#9933CC');
// Y:
$g->set_y_max( 3 );
$g->y_label_steps( 3 );
$g->set_y_legend( 'Levels', 12, '#736AFF' );
$g->set_bg_colour('0xDFFFDF');
echo $g->render();
....