Skip to content
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] Replace Big Number with Big Card #12516

Closed
kamalkeshavani-aiinside opened this issue Jan 14, 2021 · 10 comments
Closed

[chart] Replace Big Number with Big Card #12516

kamalkeshavani-aiinside opened this issue Jan 14, 2021 · 10 comments
Labels
enhancement:committed Enhancement planned / committed by a contributor need:followup Requires followup

Comments

@kamalkeshavani-aiinside
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I would like to show a single metric/dimension value from db in a report. Currently the only option for that is Big Number chart type, which can work with only Numbers.

Describe the solution you'd like
Instead of Big Number, a new chart type like 'Big Card' or 'Big Value' should allow any data type like datetime, string, %, etc. along with some subheader text as it allows now.
And ofcourse, d3 formatting to set the Big Value formatting style.

Describe alternatives you've considered
An alternative could be supporting SQL query results in Markdown component of dashboard. Users can setup their formatting style in markdown, and get the values from SQL query. But this solution will need extra effort to support filtering effects.

@junlincc junlincc added the enhancement:request Enhancement request submitted by anyone from the community label Jan 14, 2021
@junlincc
Copy link
Member

junlincc commented Feb 1, 2021

@maloun96 🙏

@inesplc
Copy link

inesplc commented Feb 18, 2021

Also could use this feature!
Our current work around is to use a word map chart in a dataset that returns only one series, but obviously this is not its intended use.

Similar issues were raised in #1784, #2919 and #6771 but were never finished.

@junlincc junlincc added enhancement:committed Enhancement planned / committed by a contributor need:followup Requires followup and removed enhancement:request Enhancement request submitted by anyone from the community labels Feb 19, 2021
@junlincc
Copy link
Member

@kamalkeshavani-aiinside @inesplc can you send us the link to the library? thanks!

@kamalkeshavani-aiinside
Copy link
Contributor Author

@junlincc what library are you asking about?

@jdbranham
Copy link
Contributor

Related - apache-superset/superset-ui#1390

@jhult
Copy link
Contributor

jhult commented Nov 11, 2021

Looks like there is some good activity happening on apache-superset/superset-ui#1390. We would love to see this feature.

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Apr 17, 2022
@jhult
Copy link
Contributor

jhult commented Apr 20, 2022

Looks like the new PR (in this repo) is still active: #17903

@stale stale bot removed the inactive Inactive for >= 30 days label Apr 20, 2022
@sfirke
Copy link
Member

sfirke commented Sep 28, 2022

Here's a very minimal example of a Handlebars chart (new in 2.0.0) that makes a chart with a single text value. TotalPropertyValue is a column in my dataset.
image

Data is "Raw Records" with a single row. I wanted the value to look exactly like this and in order to get both the $ prefix and B suffix I had to process the value into a string outside of Superset.

EDIT: I would now suggest for the Handlebars CSS instead of what's in my image above:

.handlebars {
  font-size: 5em;
 }

Changing the font size of a p element may affect Markdown elements on a dashboard.

@kamalkeshavani-aiinside
Copy link
Contributor Author

@sfirke Thank you.
With Handlebars I think we can achieve what is requested in this feature request, so closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement:committed Enhancement planned / committed by a contributor need:followup Requires followup
Projects
None yet
Development

No branches or pull requests

6 participants