-
Notifications
You must be signed in to change notification settings - Fork 5
/
areamissing.php
57 lines (51 loc) · 1.34 KB
/
areamissing.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* Copyright (C) 2013 HiGrid Inc.
* higrid嗨网 中文PHP表格, http://higrid.net
*
* Released on 2013-03-27 13:16 V2.2
*/
defined('HIPATH') || define('HIPATH', dirname(__FILE__).'/');//绝对路径
require_once(HIPATH.'config.php');//数据库连接设置,修改本目录下config.php相关参数
$chart = new higridCharts();
$chart->HCsCO(array(
"defaultSeriesType"=>"area",
"spacingBottom"=>30
))
->HCsT(array('text'=>'Fruit consumption *'))
->HCsST(array(
"text"=>'* Jane\'s banana consumption is unknown',
"floating"=> true,
"align"=>"right",
"verticalAlign"=> 'bottom',
"y"=>15
))
->HCsL(array(
"layout"=> 'vertical',
"align"=> 'left',
"verticalAlign"=> 'top',
"x"=> 150,
"y"=> 100,
"floating"=> true,
"borderWidth"=> 1,
"backgroundColor"=> '#FFFFFF'
))
->HCsX(array(
"categories"=> array('Apples', 'Pears', 'Oranges', 'Bananas', 'Grapes', 'Plums', 'Strawberries', 'Raspberries')
))
->HCsY(array(
"title"=>array("text"=> 'Y-Axis'),
"labels"=>array("formatter"=>"js:function(){return this.value;}")
))
->HCsTT(array(
"formatter"=>"function(){return '<b>'+ this.series.name +'</b><br/>'+this.x +': '+ this.y;}"
))
->HCsPO(array(
"area"=>array(
"fillOpacity"=> 0.5
)
))
->HCaS('Jhon', array(0, 1, 4, 4, 5, 2, 3, 7))
->HCaS('Jane', array(1, 0, 3, null, 3, 1, 2, 1));
echo $chart->HCoP('', true, 700, 350);
?>