echarts图表样式修改

master
qsj 2 years ago
parent 9c38818d91
commit c341252195

@ -79,8 +79,8 @@ const seriesData = [
const option: EChartOption ={ const option: EChartOption ={
grid: { grid: {
// 让图表占满容器 // 让图表占满容器
top: "0rpx", top: "10rpx",
left: "28rpx", left: "35rpx",
right: "28rpx", right: "28rpx",
bottom: "17rpx", bottom: "17rpx",
}, },
@ -353,7 +353,16 @@ const seriesData = [
let arr =[2,3,4,5,6,7] let arr =[2,3,4,5,6,7]
return ( return (
<Block> <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={echarts} echarts={echarts}
option={option} option={option}
@ -363,7 +372,7 @@ const seriesData = [
style={{ width: "630rpx", height: "240rpx" }} style={{ width: "630rpx", height: "240rpx" }}
/> />
</View> </View> */}
</Block> </Block>

Loading…
Cancel
Save