diff --git a/lib/zin/wg/tablechart/v1.php b/lib/zin/wg/tablechart/v1.php index 538a4710a2..81b1c39060 100644 --- a/lib/zin/wg/tablechart/v1.php +++ b/lib/zin/wg/tablechart/v1.php @@ -66,7 +66,7 @@ class tableChart extends wg if(!next($colorList)) reset($colorList); } - $tableWdith = $this->prop('tableWidth', '50%'); + $tableWidth = $this->prop('tableWidth', '50%'); $chartHeight = $this->prop('chartHeight', 300); $overflow = $this->prop('overflow', true); return div @@ -75,6 +75,7 @@ class tableChart extends wg cell ( set::id($item), + setKey('chart'), setClass('border-r chart flex-auto'), div(set::className('center text-base font-bold py-2'), $title), echarts @@ -107,7 +108,8 @@ class tableChart extends wg ), cell ( - set::width($tableWdith), + setKey('table'), + set::width($tableWidth), div ( setClass('overflow-y-auto'), @@ -119,7 +121,8 @@ class tableChart extends wg $tableTR ) ) - ) + ), + set($this->getRestProps()) ); } } diff --git a/module/story/ui/report.html.php b/module/story/ui/report.html.php index fb424b73fc..573f70868f 100644 --- a/module/story/ui/report.html.php +++ b/module/story/ui/report.html.php @@ -39,6 +39,7 @@ function getEcharts($charts, $datas, $chartType) $chartData = $datas[$type]; $echarts[] = tableChart ( + setKey($type), set::item('chart-' . $type), set::type($chartType), set::title($lang->story->report->charts[$type]),