1 標準的chart顯示 set_animate(true); set_title(array('text'=>'標準折線圖')); set_axes(array('xaxis'=> array('min'=>-0.5,'max'=>4))); set_axes(array('yaxis'=> array('min'=>-10,'max'=>15))); dashed:設定線條為虛線,''不設定為實線.也可以為數組,數組中的參數表示將折線按照要求的數字值進行顯示和隱藏,形成規則/不規則的折線 true:設定顯示折點加亮;false:設定節點隱藏. false:設定線條沒有有陰影,true:表示線條有陰影. set_series_default(array('linePattern'=>array(2,2),'showMarker'=>true,'shadow'=>true,'lineWidth'=>3,'rendererOptions'=>array('smooth'=>true))); set_series_default(array('linePattern'=>'','showMarker'=>true,'shadow'=>true,'lineWidth'=>3,'rendererOptions'=>array('smooth'=>false))); add_series(array('label'=>'one','color'=>'red')); add_plugins(array('cursor')); set_cursor(array('showVerticalLine'=>true,'showTooltip'=>true,'followMouse'=>true,'showTooltipDataPosition'=>true,'zoom'=>false,'tooltipFormatString'=>'%s x:%s, y:%s')); draw(800,600);
圖片顯示如下:
例子2:
< < set_title(array('text'=>'Stacked Filled Line Plot with Transparency (transparency not supported in IE6)')); set_stack_series(true); set_grid(array('background'=>'#fefbf3','borderWidth'=>2.5)); set_animate(true); set_series_default(array('fill'=>true,'shadow'=>false,'showMarker'=>false)); set_axes(array( array('pad'=>1.0,'numberTicks'=>5), array('min'=>0,'max'=>12,'numberTicks'=>5) add_series(array('color'=>'rgba(68, 124, 147, 0.7)')); add_series(array('color'=>'rgba(150, 35, 90, 0.7)')); draw(560,400);
顯示圖片如下:
上面的代碼是展示,詳細代碼請下載內容包:http://files.cnblogs.com/IT-Monkey/pietu.rar
http://www.bkjia.com/PHPjc/440215.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/440215.htmlTechArticle1 標準的chart顯示 圖片顯示如下: 例子2: 顯示圖片如下: 上面的代碼是展示,詳細代碼請下載內容包:http://files.cnblogs.com/IT-Monkey/pietu.r...