This feature allows for a gap in lines when there is a null value.
{ "elements": [ { "type": "line", "values": [ 1, 2, 3, null, null, 6, 7, null, 9, 10 ], "null-gap": true }, { "type": "line", "values": [ 10, 9, 8, null, null, 5, 4, 3, 2, 1 ] } ] }
$chart = new open_flash_chart(); $line_dot = new line(); $line_dot->set_values( array(1,2,3,null,null,6,7,null,9,10)); $line_dot->set_null_gap( true ); $chart->add_element( $line_dot ); $line_dot = new line(); $line_dot->set_values( array(10,9,8,null,null,5,4,3,2,1)); $chart->add_element( $line_dot ); echo $chart->toPrettyString();