MohammadYounes opened a new issue #11080: Gauge - Anticlockwise
URL: https://github.com/apache/incubator-echarts/issues/11080
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   Create a gauge with the following option
   
   ```js
   option = {
       series: [
           {
               type: 'gauge',
               detail: {formatter:'{value}%'},
               data: [{value: 50}],
               min:0,
               max:100,
               startAngle:0,
               endAngle:180,
               clockwise:false //anitclockwise
           }
        ]
   }
   ```
   
![anticlockwise](https://user-images.githubusercontent.com/4712046/63531965-5523bf00-c512-11e9-87b9-0cd55533e0f7.gif)
   
   However, setting `clockwise` to `true` breaks the axis line.
   
   ```js
   option = {
       series: [
           {
               type: 'gauge',
               detail: {formatter:'{value}%'},
               data: [{value: 50}],
               min:0,
               max:100,
               startAngle:0,
               endAngle:180,
               clockwise:true
           }
        ]
   }
   ```
   
![anti-anticlockwise](https://user-images.githubusercontent.com/4712046/63532553-9a94bc00-c513-11e9-8a26-7cda5de6cd9f.gif)
   
   
   
   ### What is expected?
   The gauge to be created **anticlockwise** along with the pointer animation.
   
   ### What is actually happening?
   Both the gauge and pointer animation are **clockwise**.
   
   ---
   The only way I could make it anticlockwise was by swapping `min`/`max` and 
`startAngle`/`endAngle`. But unfortunately, the pointer animation remained 
clockwise.
   
   ```js
   option = {
       series: [
           {
               type: 'gauge',
               detail: {formatter:'{value}%'},
               data: [{value: 50}],
               min:100,
               max:0,
               startAngle:180,
               endAngle:0,
               clockwise:true
           }
       ]
   }
   ```
   
![clockwise](https://user-images.githubusercontent.com/4712046/63532154-b186de80-c512-11e9-9463-deeb8431fb9f.gif)
   
   <!-- 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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org

Reply via email to