echarts 折线图?

echarts 折线图? 这种中间有虚线的折线图需要设置什么属性


回答:

eries-line.areaStyle 然后使用 纹理填充 应该就可以实现了。

比如说:
echarts 折线图?

const test = new Image()

test.src = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAXR2VuZXJhdGVkIGJ5IFNuaXBhc3Rl/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/8AACwgAZABkAQERAP/EANIAAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKCxAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/9oACAEBAAA/APVNORbi2LTKJW3dZBuPQetV9SdraZUgYxKVzhOPX0qfTVW4t2eZRK27rINx6D1qDUXa2nCwMYlK5wnHc+lWNNVbi3Z5lErbusg3HoPWq+os1tOqwMYlK5wnHc+lWNORbi3ZplErBusg3HoPWoNSdreZUgYxLtziPjufSptNVbiBnnAlYNjLjPYetQakzW84SBjEpXJCcdz6VPpiLcW7PMolbdjMg3HoPWoNSZradVgYxKVzhOO59Ksad++ty8h3tuPLcnoPWq+pM1tOqwMYlK5wnHc+lWNORbi2LzKJW39ZBuPQetV9RZradUgYxKVzhOB1PpU+motxbs0yiVt3WQbj0HrUGpFradVgYxKVzhOO59Kn01FuLdnmUStvxmQbj0HrUGos1tOqwMYlK5wnHc+lT6ai3FuzTKJW3dZBuPQetQ6kzW8ypAxiXbnEfHc+lT6aq3EDPOBKwbGXGew9ar6kzW06rATEpXJCcdz6VPpqLcWzPMol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DUna3uFSFjEuzOIyVHU+lT6ci3FuzzKJW34zINx6D1qDUWa3nVIGMS7c4TgdT6VPpyLcW7PMolbfjMg3HoPWq+pM1vMqQMYl25wnHc+lT6Yi3FuzzAStuxmQbj0HrUGps1vcKkLGJducRkqOp9Kn0xFuLdnmUStuxmQbj0HrUGpFredUgYxKVzhOO59KsabGs9uzzAStuxmQbj0HrVfU3a3uFSFjEpTOIyVHU+lT6d++ty8h3tvIy3J6D1qDUi1vOqQMYlK5wnHc+lWNNjWe3Z5gJW3YzINx6D1qDU2a3nVIWMSlc4jJUdT6VNpqLcW7PMolbfjMg3HoPWodSdreZUgYxLtzhOO59Kn01FuLdnmUStu6yDceg9ag1J2tplSAmJSucJwOp9Kn01FuLdnmUStu6yDceg9ag1J2t7hUhYxLsziMlR1PpU+mqtxbs0yiVg5GZBuPb1qvqRa3nVIGMKlc4TjufSrGmRrPbs8wErbsZcbj0HrUWoDyZwkWI125wowOpqXT1WeAtMolbd1kG49B61W1J2t51SBjEpXOE+Xuan01VngLTKJW3dZBuPQetQak7W86pAxiUrnCfL3NT6cqzwFplErbusg3HoPWodRZreZUgYxKVzhPlHeprBVmty0yiVt3WQbj0HrUOou1vMqQMYlK5xH8o6n0qbTlWeBmmUStu6yDceg9ai1BmhmVYWMS7ekZ2jqfSptPVZoGaZRK248yDce3rVfUWa3nVIGMSlc4j+Xuan0/95blpP3jburcnoK//9k='

option = {

xAxis: {

min: 0,

max: 5,

},

yAxis: {

min: 0,

max: 5,

},

series: [

{

data: [[0,0], [5,5]],

type: 'line',

stack: 'one'

},

{

data: [[0,2], [5,2]],

type: 'line',

stack: 'one',

areaStyle: {

color: {

image: test,

repeat: 'repeat'

}

}

}

]

};

以上是 echarts 折线图? 的全部内容, 来源链接: utcz.com/p/934411.html

回到顶部