-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Explore Vis]Feat/add bar gauge #10697
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Qxisylolo <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #10697 +/- ##
==========================================
+ Coverage 60.18% 60.20% +0.01%
==========================================
Files 4428 4449 +21
Lines 118504 119063 +559
Branches 19456 19621 +165
==========================================
+ Hits 71320 71677 +357
- Misses 42265 42437 +172
- Partials 4919 4949 +30
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
data: { values: transformedData }, | ||
layer: layers, | ||
// Add legend configuration if needed, or explicitly set to null if disabled | ||
legend: styles.addLegend |
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.
Q: why this is removed?
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.
This is just cleaning, legend should be controlled by encoding.color, I cleaned some when I was doing global thresholds, I missed to clean this one.
encoding: { | ||
[`${symbolOpposite(styleOptions.exclusive.orientation, 'y')}`]: { | ||
type: 'quantitative', | ||
field: 'maxVal', |
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.
maxVal
of unfilled bar should take styleOptions.max
into consider
|
||
export const DEFAULT_GREY = '#d3d3d3'; | ||
|
||
export const getUnfilledArea = () => { |
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.
Move this function to /bar_gauge
because it's bar gauge specific
return '#f1f1f1ff'; | ||
}; | ||
|
||
export const darkenColor = (hex: string, degree = 1) => { |
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.
This function doesn't seem belong to theme folder, consider to move it to /utils
Description
this pr adds bar gauge
Screenshot
2025-10-09.16.27.59.mov
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration