SnailSword commented on issue #11910: Line增加数据类型 URL: https://github.com/apache/incubator-echarts/issues/11910#issuecomment-569061047 比如你的Y数据是``` [2, 4, 5, 6, 8, 9, 10, 14, 17, 23, 30]``` 就可以写成: ```javascript let yData = [2, 4, 5, 6, 8, 9, 10, 14, 17, 23, 30]; let startvalue = 1; let interval = 2; let data = yData.map((v, i) => [startvalue + i * interval, v]) option = { xAxis: { }, yAxis: { type: 'value' }, series: [{ data: data, type: 'line' }] }; ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
