0
点赞
收藏
分享

微信扫一扫

echarts基础配置项

MaxWen 2022-03-22 阅读 62

基础配置属性

title :标题组件

  • show:是否显示主键,默认true

  • text:文本标题,支持\n

  • link:超链接

  • textStyle:标题样式

    • color:设置颜色

    • fontSize:设置字体

    • fontStyle:normal(标准) bold(黑体) bolder(粗体)lighter(更细)

  • subtext:副标题

  • sublink:副标题超链接

  • subtextStyle:副标题样式,可参照textStyle

  • itemGap:主副标题的距离,默认是10

  • left 、top 、right 、bottom :auto

  • borderColor:边框颜色

  • borderRadius:圆角

  • backgroundColor:标题背景

legend:图例组件

xAxis:直角坐标系 grid 中的 x 轴

  • id :主键ID

  • show:是否显示,默认 true

  • gridIndex:x 轴所在的 grid 的索引,默认位于第一个 grid。

  • position:x轴的位置,可选值:'top','bottom'

  • offset:X 轴相对于默认位置的偏移,在相同的 position 上有多个 X 轴的时候有用

series:系列列表

举报

相关推荐

0 条评论