question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gauge - Anticlockwise

See original GitHub issue

Version

4.2.1

Steps to reproduce

Create a gauge with the following option

option = {
    series: [
        {
            type: 'gauge',
            detail: {formatter:'{value}%'},
            data: [{value: 50}],
            min:0,
            max:100,
            startAngle:0,
            endAngle:180,
            clockwise:false //anitclockwise
        }
     ]
}

anticlockwise

However, setting clockwise to true breaks the axis line.

option = {
    series: [
        {
            type: 'gauge',
            detail: {formatter:'{value}%'},
            data: [{value: 50}],
            min:0,
            max:100,
            startAngle:0,
            endAngle:180,
            clockwise:true
        }
     ]
}

anti-anticlockwise

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.

option = {
    series: [
        {
            type: 'gauge',
            detail: {formatter:'{value}%'},
            data: [{value: 50}],
            min:100,
            max:0,
            startAngle:180,
            endAngle:0,
            clockwise:true
        }
    ]
}

clockwise

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
yufeng04commented, Aug 28, 2019

clockwise represents the growth direction of scale values on the gauge

1reaction
javio2commented, Sep 4, 2020

Hi, I’ve found a related issue. The pointer points the proper value but it maintains the clockwise color. gauge-clock-anticlock I also toggled min/max and startAngle/endAngle values

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dial Gauges, Counter-Clockwise Rotation
These counter-clockwise dial gauges are built to American Gauge Design Specifications for accuracy and are used in field and laboratory testing ...
Read more >
Kafer Dial Gauge M 2/30 T anticlockwise dial | Dial Gauges ...
Dial Gauge M 2/30 T anticlockwise dial ; Reading, 0.01 mm ; Range per revolution, 1 mm ; Range, 30 mm ; Bezel-Ø,...
Read more >
Massey Ferguson Tractor Gauge Kit + Tachometer Anti ...
Massey Ferguson Tractor Gauge Kit + Tachometer Anti Clockwise-35, 133, 135, 140 ; FREE delivery January 17 - 27. Details ; Qty:1 ;...
Read more >
Massey Ferguson Tractor Gauge Tachometer Anti ... - eBay
Massey Ferguson Gauges. ... Massey Ferguson Tractor Gauge Kit Tachometer Anti Clockwise-35 , 133, 135, 140. $34.12. $68.42. + $5.00 shipping.
Read more >
Gauge - Anticlockwise · Issue #11080 · apache/echarts - GitHub
Both the gauge and pointer animation are clockwise. The only way I could make it anticlockwise was by swapping min / max and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found