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/10 22:16:14 UTC

[GitHub] [incubator-echarts] dirslashls opened a new issue #13598: Numeric category values explicitly specified in the axis do not render

dirslashls opened a new issue #13598:
URL: https://github.com/apache/incubator-echarts/issues/13598


   ### Version
   5.0.0-beta.2
   
   ### Steps to reproduce
   Use the following in the editor
   
   ```
   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'
       }]
   };
   ```
   
   ### What is expected?
   Scatter plot should render.
   
   ### What is actually happening?
   It doesn't show the data.
   
   ---
   If I remove "data" in the xAxis options or if I use index into this data array as the x value in the series data it renders. Note that if I remove the data in the xAxis, then I can't control the order in which the xAxis labels are rendered.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
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


[GitHub] [incubator-echarts] dirslashls closed issue #13598: Numeric category values explicitly specified in the axis do not render

Posted by GitBox <gi...@apache.org>.
dirslashls closed issue #13598:
URL: https://github.com/apache/incubator-echarts/issues/13598


   


----------------------------------------------------------------
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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #13598: Numeric category values explicitly specified in the axis do not render

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13598:
URL: https://github.com/apache/incubator-echarts/issues/13598#issuecomment-725000326


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
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


[GitHub] [incubator-echarts] Ovilia commented on issue #13598: Numeric category values explicitly specified in the axis do not render

Posted by GitBox <gi...@apache.org>.
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


[GitHub] [incubator-echarts] dirslashls commented on issue #13598: Numeric category values explicitly specified in the axis do not render

Posted by GitBox <gi...@apache.org>.
dirslashls commented on issue #13598:
URL: https://github.com/apache/incubator-echarts/issues/13598#issuecomment-727015593


   I was hoping to use numeric values for category axis but seems like it's not supported. Note that, this type of requirement comes for discrete numeric values that are just a handful. Like the number of Cylinders in the cars data set.


----------------------------------------------------------------
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