data overflow fix
This commit is contained in:
@@ -35,7 +35,7 @@ function PMA_chart_status($data)
|
|||||||
//$chart = new PMA_OFC_Pie(__('Query type'), $chartData, $options);
|
//$chart = new PMA_OFC_Pie(__('Query type'), $chartData, $options);
|
||||||
$chart = new PMA_pChart_Pie(
|
$chart = new PMA_pChart_Pie(
|
||||||
__('Query statistics'),
|
__('Query statistics'),
|
||||||
array_slice($chartData, 0, 20, true));
|
array_slice($chartData, 0, 18, true));
|
||||||
$chartCode = $chart->toString();
|
$chartCode = $chart->toString();
|
||||||
PMA_handle_chart_err($chart->getErrors());
|
PMA_handle_chart_err($chart->getErrors());
|
||||||
echo $chartCode;
|
echo $chartCode;
|
||||||
@@ -55,7 +55,7 @@ function PMA_chart_profiling($data)
|
|||||||
|
|
||||||
$chart = new PMA_pChart_Pie(
|
$chart = new PMA_pChart_Pie(
|
||||||
__('Query execution time comparison (in microseconds)'),
|
__('Query execution time comparison (in microseconds)'),
|
||||||
$chartData);
|
array_slice($chartData, 0, 18, true));
|
||||||
$chartCode = $chart->toString();
|
$chartCode = $chart->toString();
|
||||||
PMA_handle_chart_err($chart->getErrors());
|
PMA_handle_chart_err($chart->getErrors());
|
||||||
echo $chartCode;
|
echo $chartCode;
|
||||||
|
@@ -36,7 +36,6 @@ class PMA_Chart
|
|||||||
'#825119',
|
'#825119',
|
||||||
'#238C74',
|
'#238C74',
|
||||||
'#4C489B',
|
'#4C489B',
|
||||||
'#1D674A',
|
|
||||||
'#87C9BF',
|
'#87C9BF',
|
||||||
),
|
),
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user