You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/11/13 08:07:14 UTC
[GitHub] [incubator-echarts] Ovilia commented on issue #13598: Numeric category values explicitly specified in the axis do not render
Ovilia commented on issue #13598:
URL: https://github.com/apache/incubator-echarts/issues/13598#issuecomment-726591336
`encode: { x: 0, y: 1 }` makes the first value of data to be used as x axis value, but in your code, the xAxis is typed in category, so there is a conflict with `10`, `20`, `15` in your data.
See if this is what you want:
```js
option = {
tooltip: {},
xAxis: { type: 'category', data: ['10','15','20'] },
yAxis: { type: 'value', min: 0, max: 20 },
series: [{
symbolSize: 20,
encode: { x: 0, y: 1 },
data: [
['10',8], ['20',15], ['15',10]
],
type: 'scatter'
}]
};
```
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org