欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 汽车 > 新车 > echarts开发记录

echarts开发记录

2025/2/22 2:13:32 来源:https://blog.csdn.net/qq_39460057/article/details/144671621  浏览:    关键词:echarts开发记录

1. xAxis

  1. 饼图没有xAxis和yAxis
  2. xAxis.boundaryGap: 类目起始和结束两端空白,默认为true留空,false则顶头

2. yAxis

  1. yAxis.minInterval: y轴最小间距

3. series

  1. series[index].type: line是折线,bar是柱状,pie是饼图
  2. series[index].barWidth:柱状图专用,柱宽度
  3. series[index].yAxisIndex:用于双坐标,0表示左边,1表示右边

4. title

title:{text:"",标题subtext:"",副标题,link:””,主标题文本超链接target:””,blank默认,selfsublink:””, 副标题文本超链接subtarget:””, blank默认,selfitemGap:20 ,主副标题之间的间距x:"",有center,left,right,即左中右,y:"",有top,center,bottom,即上中下textStyle:{color:"#fff",标题颜色fontStyle:"",字体风格,normal,italic,obliquefontWeight:"",字体粗细,bold,fontFamily:"",字体系列fontSize:22,字体大小align:"center",}, //主标题样式subtextStyle:{}//副标题样式,同textStyle
}

5. legend

legend:{icon:"", circle圆,rect矩形,roundRect有圆角的矩形,triangle三角形,diamond菱系列形,	pin针形,arrow箭形,none没有图标width:"",height:"",//图例组件的宽和高orient:"",horizontal,vertical,默认horizontal,itemGap:"", 图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。itemWidth,itemHeight:"", 每个图例图形的宽度/高度。bottom:"",number,和底部的距离,left:"",和左边的距离data:["已开展自查","未开展自查"]
}

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词