-
Notifications
You must be signed in to change notification settings - Fork 246
Fix Overlapping Detail Text in Gauge Examples #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
132701d to
887d709
Compare
Ovilia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should also run node tool/build-example.js --pattern gauge-speed to generate the thumbnail and commit. Please don't include other thumbnails other than this example.
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "editor.formatOnSave": true, | |||
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert the unrelated changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
| }; | ||
|
|
||
| export {}; | ||
| export {}; No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New Updated Done
d5ed562 to
dcfb73a
Compare
|
Due to commits issues i goona closed this pr and create a new pr |
While reviewing the Speed Gauge
example in the ECharts editor, it was observed that the detail text (value and unit) sometimes overlaps with the pointer or the gauge frame, particularly for larger values.
This reduces readability and affects the overall visual presentation of the gauge.
The same code pattern exists in the Progress Gauge example, meaning the issue could appear there as well.
Steps:
. Analyzed the issue in gauge-speed.ts to identify why the detail text overlaps with the pointer.
. Confirmed that the same code structure exists in progress-gauge.ts, making it susceptible to the same problem.
. Raised an issue #135
to track the problem.
Implemented a step-by-step fix in the TypeScript file:
Before:

=> Detail text (value + unit) overlaps with the pointer or gauge frame.
=> For larger values, the value text appears too close to the pointer, reducing readability.
After:

=> Text is now properly centered and clearly visible.
=> No overlap with the pointer or gauge frame.
Local Testing:
. Tested on local build for the full range of values.
. Confirmed that the fix works consistently across all values in the gauge.
Impact:
. Improves readability and visual clarity in the Progress Gauge example.
. Ensures the official editor is consistent with local builds.
. Prevents confusion caused by overlapping detail text in gauges.