提交 e1c6530a 编写于 作者: I iotjin

update eChart

上级 b4c3812d
......@@ -2,7 +2,7 @@
小程序 - Jh_weapp
<img src="https://gitee.com/iotjh/Picture/raw/master/weapp/JhDropDownMenu.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/%E5%88%86%E9%A1%B5%E5%8A%A0%E8%BD%BD.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/tab%E5%88%86%E9%A1%B5.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/JhTimePicker.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/search.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/GroupCell.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/customNav.jpg" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/JhYMDTimePicker.gif" width="208" height="404">
<img src="https://gitee.com/iotjh/Picture/raw/master/weapp/JhDropDownMenu.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/%E5%88%86%E9%A1%B5%E5%8A%A0%E8%BD%BD.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/tab%E5%88%86%E9%A1%B5.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/JhTimePicker.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/search.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/GroupCell.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/customNav.jpg" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/JhYMDTimePicker.gif" width="208" height="404"><img src="https://gitee.com/iotjh/Picture/raw/master/weapp/eChart.jpg" width="208" height="404">
......
......@@ -86,7 +86,7 @@ Page({
},
grid: {
left: '3%',
right: '4%',
right: '2%',
containLabel: true
},
//坐标轴触发,。 'item' , 'axis' ,'none'
......@@ -98,7 +98,10 @@ Page({
data: chartData.legendData
},
xAxis: [{
data: chartData.xData
data: chartData.xData,
"axisLabel": {
interval: 0
}
}],
yAxis: {},
series: chartData.seriesData
......@@ -239,6 +242,9 @@ Page({
label: {
show: true, //开启显示
position: 'top', //在上方显示
distance: i == 0 ? 5 : 10,
// rotate: 15,
// offset: [20, 0],
formatter: function (val) {
if (val.value !== 0) {
return val.value;
......
......@@ -14,10 +14,10 @@
#mychart1 {
width: 90%;
width: 100%;
height: 500rpx;
margin: 20px 15%;
border: 1px solid red;
/* margin: 20px 15%;
border: 1px solid red; */
}
#mychart2 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册