/* components/bar-chart/index.wxss */ .chart_canvas{ height: 400rpx; width: 100%; position: relative; }