Yii Highcharts Extension
Yii Highcharts Extension Repository
Quote
The extension is clean, compact, and supports configuration via either standard PHP arrays or a JSON string. Please let me know if you have any questions, comments, or suggestions.
Posted 07 October 2010 - 09:43 AM
Quote
Posted 07 October 2010 - 11:38 AM
Posted 07 October 2010 - 04:04 PM
m1m1m1, on 07 October 2010 - 11:38 AM, said:
Posted 14 October 2010 - 12:55 PM
Posted 15 October 2010 - 10:36 AM
Posted 15 October 2010 - 11:49 AM
monico, on 15 October 2010 - 10:36 AM, said:
Posted 15 October 2010 - 12:16 PM
Posted 15 October 2010 - 04:36 PM
monico, on 15 October 2010 - 12:16 PM, said:
Posted 18 October 2010 - 08:09 AM
Posted 22 November 2010 - 02:38 AM
Posted 18 December 2010 - 02:19 PM
gauviz, on 22 November 2010 - 02:38 AM, said:
<?php
/*
* To use the needed PHP 5.3 functions in a PHP 5.2 environment
*
*/
// as of PHP 5.3.0 array_replace_recursive() does the work for us
if (function_exists('array_replace_recursive'))
{
return call_user_func_array('array_replace_recursive', func_get_args());
}
if (!function_exists('array_replace_recursive'))
{
function array_replace_recursive($array, $array1)
{
function recurse($array, $array1)
{
foreach ($array1 as $key => $value)
{
// create new key in $array, if it is empty or not an array
if (!isset($array[$key]) || (isset($array[$key]) && !is_array($array[$key])))
{
$array[$key] = array();
}
// overwrite the value in the base array
if (is_array($value))
{
$value = recurse($array[$key], $value);
}
$array[$key] = $value;
}
return $array;
}
// handle the arguments, merge one by one
$args = func_get_args();
$array = $args[0];
if (!is_array($array))
{
return $array;
}
for ($i = 1; $i < count($args); $i++)
{
if (is_array($args[$i]))
{
$array = recurse($array, $args[$i]);
}
}
return $array;
}
}
?>
<?php
// change the following paths if necessary
$yii=dirname(__FILE__).'/../framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
$compfunctions=dirname(__FILE__).'/protected/components/CompatibleFunctions.php';
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($compfunctions);
require_once($yii);
Yii::createWebApplication($config)->run();
Posted 19 December 2010 - 04:23 PM
gauviz, on 22 November 2010 - 02:38 AM, said:
Posted 19 December 2010 - 04:38 PM
mrwallace, on 18 December 2010 - 02:19 PM, said:
Posted 20 December 2010 - 07:11 PM
Posted 22 December 2010 - 07:47 AM
Milo S, on 21 December 2010 - 01:28 PM, said:
chart.jpg (10.4K)
This post has been edited by mrwallace: 23 December 2010 - 09:42 AM
Posted 31 January 2011 - 04:56 PM
mrwallace, on 20 December 2010 - 07:11 PM, said:
$this->Widget('ext.highcharts.HighchartsWidget', array(
'options' => array(
'chart' => array(
'renderTo' => 'myContainer',
'defaultSeriesType' => 'column',
....
),
...
));
echo '<div id="myContainer"></div>';
Posted 12 February 2011 - 12:42 AM
canreo, on 31 January 2011 - 04:56 PM, said:
$this->Widget('ext.highcharts.HighchartsWidget', array(
'options' => array(
'chart' => array(
'renderTo' => 'myContainer',
'defaultSeriesType' => 'column',
....
),
...
));
echo '<div id="myContainer"></div>';
Posted 13 February 2011 - 01:37 PM
sbasuki, on 12 February 2011 - 12:42 AM, said:
$this->widget('ext.highcharts.HighchartsWidget',array(
'options' => array(
'series' => array(array(
'type' => 'pie',
'data' => array(
array('Firefox', 44.2),
array('IE7', 26.6),
array('IE6', 20),
array('Chrome', 3.1),
array('Other', 5.4)
)
))
)
));