|
在网上查了些资料,说在graph_api.php中每个“$graph->title->Set后加下面代码:
对于柱图和线图,要设置图形标题和x、y轴标题、节点标题:
//Set the title and axis font if the default_language is set to chinese if (config_get(’default_language’) == ’chinese_simplified’){ $graph->title->SetFont(FF_SIMSUN,FS_NORMAL); $graph->xaxis->title->SetFont(FF_SIMSUN,FS_NORMAL); $graph->yaxis->title->SetFont(FF_SIMSUN,FS_NORMAL); $graph->xaxis->SetFont(FF_SIMSUN,FS_NORMAL); $graph->yaxis->SetFont(FF_SIMSUN,FS_NORMAL); } else if (config_get(’default_language’) == ’chinese_traditional’){ $graph->title->SetFont(FF_CHINESE,FS_NORMAL); $graph->yaxis->title->SetFont(FF_CHINESE,FS_NORMAL); $graph->xaxis->title->SetFont(FF_CHINESE,FS_NORMAL); $graph->xaxis->SetFont(FF_CHINESE,FS_NORMAL); $graph->yaxis->SetFont(FF_CHINESE,FS_NORMAL); };
这个具体是加在哪呢?我加了几个位置,图反而显示不出来了 |
|