option = {
xAxis: {
type: 'category',
// position:'top',//坐标轴的位置
data: [{value:'1',textStyle:{
color:'#ff0033',
}}, '2/7', '3', '4', '5', '6', '7']//每一项也可以是具体的配置项,此时取配置项中的 `value` 为类目名
},
yAxis: {
type: 'value',
name:'每日交易量',//坐标轴名称
nameLocation:'middle',//坐标轴的位置
nameTextStyle:{
color:'#ff0033',
//align:'left',
},
nameGap:50,//坐标轴名称与轴线之间的距离
nameRotate:90,//坐标轴名字旋转角度值,
axisLine:{
lineStyle:{
color:'#ff0000'
},
symbol:['none', 'arrow'],//轴线两边的箭头
symbolSize:[8, 12]
},
axisTick:{
inside:false,//标轴刻度是否朝内,默认朝外
},
axisLabel:{
show:true,
inside:false,
formatter: '{value} kg'
},
splitArea:{
show:true,
color:['rgba(250,250,250,0.3)','rgba(200,200,200,0.3)'],
}
},
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'bar'
}]
};
Echarts参数属性学习xAxis与yAxis演示案例
原创
©著作权归作者所有:来自51CTO博客作者漏刻有时的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Echarts数据可视化grid直角坐标系(xAxis、yAxis),开发全解+完美注释
mytextStyle={ color:"#333",//文字颜色 fontStyle:"normal",//italic斜体 oblique倾斜
数据可视化 Echarts grid xAxis yAxis -
Echarts属性基础学习
ECharts
数据 初始化 异步加载 宽高 .net -
Pytest常用参数剖析 | 案例演示
上一期基于环境的配置做了简单的介绍,针对Pytest灵活的单元测试框架,它的优点就在于内置方法巧妙之处一、上期
python 编程语言 java linux selenium -
#yyds干货盘点#echarts中xAxis显示不全配置
echarts xAxis显示不全配置
echarts xAixs 数据过多隐藏 -
echarts图表演示图表演示
比如说,公司现在接一个项目,这个中信银行,针对之前所有的贷款、大 小客户,要做出来图表系统(演示和查看)、报表系统(用来打印)。系统。官网:源于百度。
echarts javascript ecmascript html List -
【Echarts】散点图常见的option属性参数
<!DOCTYPE html><html lang="en" style="height:100%"><head
eahcrts 数据 html javascript