HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 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 );