时间:2021-07-01 10:21:17 帮助过:23人阅读
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...