flash chart
$g = new graph(); 建立一个对象
$g->title( 'Spoon sales '. date("Y"), '{font-size: 26px;}' );
$g->set_data( $data ); 设置每个点的数
$g->line_hollow( 2, 4, '0x80a033', 'Spoon sales', 10 );
其中第一个参数是设置线条的粗线,第一个参数是设置圆点的大小,第三个是参数是颜色值,第四个是参签名称,第五个是字体的大小
$g->set_x_labels( array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec' ) ); 设置X的坐标值
$g->set_y_max( 60 ); 设置Y轴的最大值,
// label every 20 (0,20,40,60)
$g->y_label_steps( 6 );将Y轴安最大值分成多少个步长
<?php
include_once( 'ofc-library/open-flash-chart.php' );
$bar = new bar_sketch( 50, 6, '#99FF00', '#7030A0' ); 画柱状图
$bar->key( '% Complete', 10 );设置标题标签
$data = array();
$labels = array();
$bar->data[] = 50;
$labels[] = 'Mon';
$bar->data[] = 65;
$labels[] = 'Tue';
$bar->data[] = 70;
$labels[] = 'Wed';
$bar->data[] = 75;
$labels[] = 'Thu';
$bar->data[] = 80;
$labels[] = 'Fri';
$bar->data[] = 89;
$labels[] = 'Sat';
$bar->data[] = 100;
$labels[] = 'Sun';
//
// ----
//
$g = new graph();
$g->title( 'Paper Mario, % complete', '{font-size: 18px; color: #A0A0A0;}' );
$g->set_tool_tip( 'Progress, #val#%' );//鼠标点到柱状图上所显示的内容
//
//
// set the X axis labels
$g->set_x_labels( $labels );
//$g->set_data( $data );
//$g->bar_sketch( 50, 6, '#99FF00', '#7030A0', '% Complete', 10 );
//
// add the bar object to the graph
//
$g->data_sets[] = $bar;
$g->set_x_label_style( 10,
相关文档:
这几天,都在无所事事,唯一寄托就是在这里记录一下自己研究出来的东西。趁现在有点时间,就把最近看过的一种常用的flash特效记录一下,flash 做特效不是为做特效而做,在make thing move 书里讲了许多的数学和物理原理,通过这些原理,我发现做特效就需要懂原理。懂了这些原理后,特效就会变得轻松容易。
现 ......
ROM、RAM、DRAM、SRAM、FLASH的区别?
ROM和RAM指的都是半导体存储器,ROM是Read Only Memory的缩写,RAM是Random Access Memory的缩写。
ROM在系统停止供电的时候仍然可以保持数据,而RAM通常都是在掉电之后就丢失数据,典型的RAM就是计算机的内存。
RAM有两大类:一种称为静态RAM(Static RAM/SRAM),SRAM速度非常快, ......
HTML clipboardThese days a
16GB USB thumb drive
is as necessary as your house keys. Whether you are
taking large work files back and forth from the office or are sharing pictures,
videos, and music with friends, nothing beats the convenience of a USB storage
drive. Well, why not make sure t ......
/etc/fonts/conf.d/
编辑的文件为
sudo gedit ./49-sansserif.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
If the font still has no generic name, add sans-serif
-->
<match target="p ......
之前在Windows下用过Firefox的64位版本-Shiretoko,但是由于64位的flash player plugin一直安装不上,导致很多应用都用不了,据说可以使用NSPlugin Wrapper包和32位的类库来使用32位的flash player,我没有尝试。最近安装了64位的Gentoo,opera和shiretoko还是无法自动安装64位的flash player plugin。 ......