@@ -111,7 +111,7 @@ class BarChart extends React.Component {
{
name: "趋势",
type: "line",
- data: this.props.seriesData.map(item => item == 0 ? 2 : item - 2),
+ data: this.props.seriesData.map(item => item == 0 ? 0 : item - 0.1),
smooth: true, // ✅ 曲线
sampling: "average",// 取平均,减少抖动
symbol: "none",
@@ -39,6 +39,10 @@
.item_img {
width: 129px;
height: 180px;
+ // transform-style: preserve-3d; /* 保留子元素的3D效果 */
+ // animation: spin 1s linear infinite;
+ // border-radius: 12px;
+ // box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* 增加立体感 */
}
.item_value {
@@ -89,3 +93,9 @@
color: #ffffff;
+
+// /* 水平旋转动画 */
+// @keyframes spin {
+// 0% { transform: rotateY(0deg); }
+// 100% { transform: rotateY(360deg); }
+// }