pissang commented on issue #9077: Echarts x axis and y axis URL: https://github.com/apache/incubator-echarts/issues/9077#issuecomment-421680488 In echarts `encode` is used to determine which dimension of data will be displayed on xAxis or yAxis. For example `{ x: 1, y: 0 }` will do to the flip. More details on this post https://echarts.apache.org/tutorial.html#Dataset If you case is more like the highcharts demo in your link. You can simply swap the `xAxis` and `yAxis` ```js option = { yAxis: { type: 'category', data: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }, xAxis: { type: 'value' }, series: [{ data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], type: 'line' }] } ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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]
