学习目标:
学习内容:
Echars 重要属性标签:
1、标题属性: title:{}
2、图列组件: legend:{}
3、坐标轴设置: xAxis:{} yAxis:{}
4、
标题属性title:{}:
标题属性: title:{}
title:{
show: true / false 是否显示标题
text : " 标题名称" 标题名称
subtext : "副标题名称" 副标题
target: self(默认) / blank 显示方式 self(当前页面 / blank(新页面显示)
textstyle.color : "rgb" 文本颜色
textstyle.font : "字体" 文本字体
textstyle.fontwight : "size" 文本粗细
textstyle.fontsize: "size" 文本大小
textstyle.width/hight : "size" 文本宽度/高度
top/left/right/bottom: "百分比或者值" 标题位置
}
图列属性:legend:{} :
标题属性: title:{}
legend:{
show: true / false 是否显示图列
top/left/right/bottom: "百分比或者值" 图列位置
textstyle.width/hight : "size" 文本宽度/高度
align : "auto" 图列和文本的对齐
padding : "px" 图列内边距(遵循html规则)
itemGap : "size" 各图列的间距
symbolKeepAspect : "true/false" 是否在缩放时保持该图形的长宽比
legend.fontwight : "size" 文本粗细
legend.fontsize: "size" 文本大小
}