+ [task#132561 doing 0.4h 7h] add the buildEcharts function for thinkappeals widget.

This commit is contained in:
wangzemei
2024-11-22 13:52:29 +08:00
committed by 孙浩
parent 24b4608d73
commit 8a45fcd631
+20
View File
@@ -28,4 +28,24 @@ class thinkAppeals extends thinkModel
}
return $indicator;
}
protected function buildEcharts(): node
{
$blocks = $this->prop('blocks');
return echarts
(
set::width('100%'),
set::height('900px'),
set::color(array('#29AA93', '#FF9F46')),
set::legend(array(array(
'data' => $blocks['legend'],
'icon' => 'circle',
'itemGap' => 90,
'itemWidth' => 14,
'itemHeight' => 14,
'bottom' => 40,
'textStyle' => array('color' => '#64758B', 'padding' => array(0, 0, 0, 16))
))),
);
}
}