moshe-intel commented on issue #18432:
URL: https://github.com/apache/echarts/issues/18432#issuecomment-1488047407

   > Jitter is data transformation that can be done before the plot. Consider 
adding `Math.random() * jitterWidth` to data values. See also 
[this](http://www.java2s.com/ref/javascript/javascript-number-jitter-amount.html).
   
   i cant do that when i use a categorical variable in one of axes like this 
example:
   
   ```typescript
   option = {
     xAxis: { type: 'category' },
     yAxis: {},
     series: {
       data: [
         ['a', 8.04],
         ['a', 6.95],
         ['b', 7.58],
         ['b', 8.21],
         ['c', 8.33],
         ['c', 9.12]
       ],
       type: 'scatter'
     }
   };
   ``` 
   
   or using singleAxis like:
   
   ```typescript
   option = {
     singleAxis: {},
     series: {
       data: [[8.04], [6.95], [7.58], [8.21], [8.33], [9.12]],
       type: 'scatter',
       coordinateSystem: 'singleAxis'
     }
   };
   
   ``` 


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to