Sets the y-axis to use a logarithmic scale
{ "elements": [ { "type": "line", "values": [ 1, 10, 100, 1000, 10000, 100000 ], "axis": "right" } ], "y_axis_right": { "min": 0, "max": 200000, "steps": 10000, "log-scale": true } }
$chart = new open_flash_chart(); $line_dot = new line(); $line_dot->set_values( array(1,10,100,1000,10000,100000) ); $line_dot->attach_to_right_y_axis(); $chart->add_element( $line_dot ); $y = new y_axis_right(); // grid steps: $y->set_range( 0, 200000, 10000); $y->set_logScale( true ); // // Add the Y Axis object to the chart: // $chart->set_y_axis_right( $y ); echo $chart->toPrettyString();