代码demo如下(如何才能让超出范围的圆点显示在最上面或最下面,并且值不是最大或最小值)
option = {
xAxis: {
type: 'value',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
minInterval:1.5,
showMinLabel:true,
},
yAxis: {
type: 'value',
min:150,
max:240,
// showMinLabel:true,
},
tooltip:{
trigger:'item'
},
series: [
{
data: [[1.5,100], [2.5,230], [3.5,224], [4.5,218],[5.5,135] ,[6.5,147] ,[7.5,260] ],
type: 'line',
clip:false,
sampling:'min',
emphasis:{
scale:false,
itemStyle:{
borderWidth:1,
// color:'red'
}
},
tooltip:{
show:true,
formatter(params){
// console.log(params)
return params.value+''
},
// position(point){
// return {left:point[0]-20,top:point[1]-60}
// },
}
},
]
};

echarts 折线图y轴设置最大值和最小值后,超出范围的值显示在最上面或最下面的水平线上,这个怎么设置。
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-