HCE Project DC service web UI
0.2
Hierarchical Cluster Engine DC service web UI
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
example.function_in_options.php
Go to the documentation of this file.
1
<?php
// You can pass functions as options to HighChart
2
$this->widget(
3
'booster.widgets.TbHighCharts'
,
4
array(
5
'options'
=> array(
6
'tooltip'
=> array(
7
'formatter'
=>
new
CJavaScriptExpression(
"
8
function() {
9
return Highcharts.numberFormat(this.y, 0) + ' by ' + this.series.name +'<br/>'+' in '+ this.x;
10
}"
),
11
),
12
'series'
=> array(
13
[
14
'data'
=> [1, 2, 3, 4]
15
]
16
)
17
)
18
)
19
);
app
protected
extensions
booster
userdoc
highcharts
example.function_in_options.php
Generated on Tue Jun 30 2015 20:12:33 for HCE Project DC service web UI by
1.8.1.2