‘壹’ 怎么用open-flash-chart.php为图表填充颜色,要设置什么参数,图一为原图,图二为想要的效果图
现在还有人用这个图表插件?以前我专门研究过,自己也写过不少教程不过已经删掉了:记得是在JSON格式里的“elements”:[ { "colour": "#9933CC",}] 中的color来设置背景色,你试试,不行再M我
‘贰’ 用javascript插入swf问题
答案已发到你的QQ邮件了
‘叁’ Open Flash Chart IO ERROR Loading test data Error #2032。
我没这么写过 。。。。。
<script type="text/javascript">
swfobject.embedSWF("open-flash-chart-SimplifiedChinese.swf", "my_chart", "550", "300",
"9.0.0", "expressInstall.swf",
{"data-file":"datafile/ChineseCharacter.aspx"}
);
</script>
‘肆’ 在php中应用open flash chart,加载json时出错,json parse error [syntax error at character 0.......
怀疑是传递变量时用双引号圈起来的问题,比如="{"id":"1"}",外面的双引号与json里面的双引号冲突,这种情况的话,把外面的双引号改成单引号,或者去掉双引号就可一了
‘伍’ open-flash-chart 火狐下不能显示 同样的代码在谷歌和IE都没有问题
您好,感谢您对火狐的支持
为您提供一个示例:
swfobject.embedSWF(
"open-flash-chart.swf", "my_chart",
"600", "350", "9.0.0", "expressInstall.swf",
{"data-file":"data.php","loading":"正在加载数据,请稍候..."});
您可以在火狐官方网站下载火狐浏览器,在火狐社区了解更多内容。希望我的回答对您有所帮助,如有疑问,欢迎继续在本平台咨询。
‘陆’ 我想用openflashchar做个饼状图 求大神指点 有图
<?php
include_once 'ofc-library/open_flash_chart_object.php';
open_flash_chart_object( 300, 300, 'http://'. $_SERVER['SERVER_NAME'] .'/open-flash-chart/gallery-data-39.php' );
?>
<?php
// generate some random data
srand((double)microtime()*1000000);
$data = array();
$links = array();
for( $i=0; $i<5; $i++ )
{
$val = rand(5,15);
$data[] = $val;
$links[] = "javascript:alert('$val')";
}
include_once( 'ofc-library/open-flash-chart.php' );
$g = new graph();
$g->bg = '#E4F0DB';
$g->pie(60,'#E4F0DB','{display:none;}',false,1);
//
// pass in two arrays, one of data, the other data labels
//
$g->pie_values( $data, array('IE','Firefox','Opera','Wii','Other','Slashdot'), $links );
//
// Colours for each slice, in this case some of the colours
// will be re-used (3 colurs for 5 slices means the last two
// slices will have colours colour[0] and colour[1]):
//
$g->pie_slice_colours( array('#d01f3c','#356aa0','#C79810') );
$g->set_tool_tip( 'Label: #x_label#<br>Value: #val#%&' );
$g->title( 'Pie Chart', '{font-size:18px; color: #d01f3c}' );
echo $g->render();
?>
有解释,翻译下直接套就行。。
有困难找浩哥啊
‘柒’ Java里Eclipse用的Dorado里的openFlashChart能否去掉Tip
可以去掉的
‘捌’ PHP 按月分写入数组 提供给OPEN FLASH CHART使用
function get_month_result($row)
{
$array=new array();
$year=date("Y");
for($i=1;$i<13;$i++)
{
$this_month=($i>9)?$year."-".$i:$year."-0".$i;
for($j=0;$j<count($row);$j++)
{
if($row[$j][0]==$this_month)$array[$i-1]=$row[$j][1];
}
$array[$i-1]=(!$array[$i-1])?0:$array[$i-1];
}
return $array;
}
‘玖’ openflashchart的C#案例!
public Graph Graph_Pie()
{ //饼图
Graph graph = new Graph();
graph.Title = new Title("XX统计表", "font-size:18px; color: #d01f3c");
graph.Pie = new OpenFlashChart.Charts.Pie(60, "#505050", "font-size: 12px; color: #404040");
OpenFlashChart.Charts.Pie.Piece ls;
ls = new OpenFlashChart.Charts.Pie.Piece(6, "X1", "#d01f3c");
graph.Pie.Data.Add(ls);
ls = new OpenFlashChart.Charts.Pie.Piece(9, "X2", "#356aa0");
graph.Pie.Data.Add(ls);
ls = new OpenFlashChart.Charts.Pie.Piece(13, "X3", "#C79810");
graph.Pie.Data.Add(ls);
ls = new OpenFlashChart.Charts.Pie.Piece(8, "X4", "#d01f3c");
graph.Pie.Data.Add(ls);
return graph;
}
这个是饼图的方法,调用下就好,(没连数据库的)