-
Notifications
You must be signed in to change notification settings - Fork 12.9k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
[Chart]Gauge chart enhancement request and bug fix #14209
Comments
@krsnik93 @EBoisseauSierra |
@junlincc what do you think about moving the detail (value + text in the center) into the legend? With enough rows/series, there will always be overlap... |
@krsnik93 you are right! I think changing the default scale to START 180 and END 0 angle could help. |
We probably want to keep the legend simple.I wonder if we can show the labels dynamically?
|
@junlincc should this PR be merged first: apache-superset/superset-ui#1056 ? |
added in apache-superset/superset-ui@62be208
All the other charts seem to use the entire time section, should we try to stay consistent?
Due to the way echarts overlaps multiple series:
I have made it so that both min and max are now dynamically determined. Max on the axis becomes 2 * max data value, min on the axis is smaller of 0 and 2 * min data value (this is useful for negatives). It's still possible for the user to pass these two explicitly, but they are now optional control panel args.
This depends on the font size. By reducing it to the smallest value on the slider, I was able to display 7 data points. One way would be to decrease space between two different titles/values, but I don't think it should be decreased further. If you look at the image the spacing is already quite compact:
I don't understand this argument completely. I actually don't like this control and think it should be replaced, perhaps with separate prefix and suffix fields, just to avoid having this template value in the input field. Maybe even dropped completely as manipulating the query can be used to achieve similar results and the other charts don't have this type of formatter. What do you think?
Currently all changes need to trigger, otherwise it's not possible to have a separate CUSTOMIZE tab and everything gets moved back to DATA tab:
Those 2 should not be related. Control
Isn't this constant for all chart types?
Regarding labels, this is fixed in apache-superset/superset-ui#1056 as well. Regarding values in the middle, I don't know if anything can be done besides reducing the font size and perhaps utilizing row limit and adhoc filters. Giving the chart more space on the dashboard might help as well. |
@junlincc wdyt? |
@junlincc I have read in #14472 that the bullet graph will be replaced by the gauge one. Will it be possible to define a query value for the MIN/MAX value and the intervalbounds (or one datapoint as marker on the gauge)? In the current design you have to use fixed values which limits the possibilities of this chart. |
@PowerPlop hi! yes, bullet will soon be replaced but we do wanna make sure gauge offer more not less. i do believe you can set the min/max in gauge, i'm thinking adding % too... |
@junlincc With 'smaller' I would mean, a straight line instead of the curved gauge which takes up quite some space, only to mimic a speedometer design (which imo is not an ideal visualisation) https://www.tableau.com/about/blog/2015/2/bullet-graphs-beat-gauge-charts You can indeed set a min and max value, but the value cannot be linked to a query, which limits its use. |
#16433 |
@kamalkeshavani-aiinside make sense! it does take up too much unnecessary real estate. @stephenLYZ we can slowly get down to these.
agreed. what about there are multiple metrics? i have a hard time visualizing having different dynamic min/max on same scale. please advise 🙏 |
@junlincc I don't know if the gauge chart will be used with different metrics that have a different scale. If you would do this, I would expect you convert them to ratios so you can compare them and then 1 min/max can be used. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
We recently added new Gauge chart(Echarts) to our library, which is great as MVP. Thanks to @krsnik93
Here are some enhancement requests to make the chart more robust. we can either make the improvement in Superset or Echarts.
Request
![Screen Shot 2021-04-16 at 6 39 50 PM](https://user-images.githubusercontent.com/67837651/115098136-29253080-9ee3-11eb-84b0-a67fe905e462.png)
5. Allow user to adjust label position 5. Click event and X-filtering supportBug
Cosmetic issue
Overlapping here and there
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: