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'
    }]
}
```


[ Full content available at: 
https://github.com/apache/incubator-echarts/issues/9077 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to