* Fix waterpolo echart show bug.;
This commit is contained in:
@@ -208,6 +208,7 @@ class chartModel extends model
|
||||
if($type == 'line') return $this->genLineChart($chart->fieldSettings, $settings, $chart->sql, $filterFormat, $chart->langs);
|
||||
if($type == 'cluBarX' || $type == 'cluBarY') return $this->genCluBar($chart->fieldSettings, $settings, $chart->sql, $filterFormat, '', $chart->langs);
|
||||
if($type == 'stackedBar' || $type == 'stackedBarY') return $this->genCluBar($chart->fieldSettings, $settings, $chart->sql, $filterFormat, 'total', $chart->langs);
|
||||
if($type == 'waterpolo') return $this->bi->genWaterpolo($chart->fieldSettings, $settings, $chart->sql, $filterFormat);
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
@@ -62,7 +62,11 @@ $generateCharts = function() use($charts, $lang)
|
||||
div
|
||||
(
|
||||
setID('chart_' . $chartID),
|
||||
echarts(set($chartOptions))->size('100%', 400)
|
||||
echarts
|
||||
(
|
||||
set($chartOptions),
|
||||
$chart->type == 'waterpolo' ? set::exts('liquidfill') : null,
|
||||
)->size('100%', 400)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user