echarts图表样式修改

master
qsj 2 years ago
parent 9c38818d91
commit c341252195

@ -79,8 +79,8 @@ const seriesData = [
const option: EChartOption ={
grid: {
// 让图表占满容器
top: "0rpx",
left: "28rpx",
top: "10rpx",
left: "35rpx",
right: "28rpx",
bottom: "17rpx",
},
@ -353,7 +353,16 @@ const seriesData = [
let arr =[2,3,4,5,6,7]
return (
<Block>
<View className="box">
<Echarts
echarts={echarts}
option={option}
ref={echartsRef}
// isPage={false}
// style自定义设置echarts宽高
style={{ width: "100%", height: "100%" }}
/>
{/* <View className="box">
<Echarts
echarts={echarts}
option={option}
@ -363,7 +372,7 @@ const seriesData = [
style={{ width: "630rpx", height: "240rpx" }}
/>
</View>
</View> */}
</Block>

Loading…
Cancel
Save