You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by 薛松松 <75...@qq.com> on 2020/02/07 08:34:20 UTC
echart您好,提一个问题,当滚动条滚动的时候就不显示markArea,option在正文
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
smooth: true,
markArea: {
data: [
[{
xAxis: 'Mon',
yAxis: 0,
itemStyle:{
color:'red'
},
label: {
show: true,
position: ['50%', '50%'],
color: 'black',
fontStyle: 'oblique',
fontSize: 20,
rotate: 90,
formatter: "wwww"
}
}, {
xAxis: 'Sun',
yAxis: '900',
itemStyle:{
color:''
}
}]
],
}
}],
dataZoom:[{
type:'slider',
start:'0',
end:'50'
}]
};
Re: echart您好,提一个问题,当滚动条滚动的时候就不显示markArea,option在正文
Posted by Ovilia <ov...@gmail.com>.
Hi,
Please use English in the mailing list for others to understand.
Please save your demo with https://gallery.echartsjs.com/editor.html or
https://jsfiddle.net/ovilia/n6xc4df3/ .
Thanks
Wenli
On Fri, Feb 7, 2020 at 10:24 PM 薛松松 <75...@qq.com> wrote:
> option = {
> xAxis: {
> type: 'category',
> data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri',
> 'Sat', 'Sun']
> },
> yAxis: {
> type: 'value'
> },
> series: [{
> data: [820, 932, 901, 934, 1290, 1330, 1320],
> type: 'line',
> smooth: true,
> markArea: {
> data: [
> [{
>
> xAxis: 'Mon',
>
> yAxis: 0,
>
> itemStyle:{
>
> color:'red'
>
>
> },
>
> label: {
>
> show: true,
>
> position: ['50%', '50%'],
>
> color: 'black',
>
> fontStyle: 'oblique',
>
> fontSize: 20,
>
> rotate: 90,
>
> formatter: "wwww"
> }
>
> }, {
>
> xAxis: 'Sun',
>
> yAxis: '900',
>
> itemStyle:{
>
> color:''
>
>
> }
>
> }]
> ],
>
>
> }
> }],
> dataZoom:[{
> type:'slider',
> start:'0',
> end:'50'
> }]
> };