Extend Table Card Functionality (Graphics)
It would be nice if you could input little graphs into a table such that you can see a bar graph, line graph, etc in a cell which adds a little more meaning to the data it's representing.
It would be VERY cool if you could include some dynamic info based on if the cell is aggregated or not.
Ex.
Maybe the ability to set a value or use the largest value available to show what 100% is and fill the cell with color a % representation of the total/100% value
Ex. (Mockup so % bars not necessarilly accurate)
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**
Comments
-
Thank you for submitting this @guitarhero23. I am assigning to our product manager @Gavatar to review and comment.
0 -
We are working at ways to make this easier but for now there is a "beast mode" way to create a small bar chart in your table. The key is to generate HTML "div" statements in your table with width and fills. Here is an example table I created:
This is the beast mode I use:
CONCAT('<div style="height:170px;width:100%;">
<div style="box-shadow:5px 5px 10px gray;border-radius:0px 5px 5px 0px;font-weight:bold;background-color:#74B0D7;
border-radius:0px 5px 5px 0px;height:30px;color:#333333;padding:5px;width:',
CASE WHEN
SUM(CASE WHEN YEAR(`Ad Start Date`) = 2015 THEN `Sales` ELSE 0 END) = 0
THEN 0
ELSE ROUND(((SUM(CASE WHEN YEAR(`Ad Start Date`) = 2015 THEN `Sales` ELSE 0 END)/SUM(`Sales`))*100),0)
END,
'%;">2015 <div style="color:green;background-color:white;border-radius:10px;
text-align:center;width:60px;padding:2px;">$',
CASE WHEN
SUM(CASE WHEN YEAR(`Ad Start Date`) = 2015 THEN `Sales` ELSE 0 END) = 0
THEN 0
ELSE ROUND((SUM(CASE WHEN YEAR(`Ad Start Date`) = 2015 THEN `Sales` ELSE 0 END)/1000000)*100,1) END,
'M</div></div><br/>',
'<div style="box-shadow:5px 5px 10px gray;border-radius:0px 5px 5px 0px;font-weight:bold;background-color:#BBE491;
border-radius:0px 5px 5px 0px;height:30px;color:#333333;padding:5px;width:',
CASE WHEN
SUM(CASE WHEN YEAR(`Ad Start Date`) = 2016 THEN `Sales` ELSE 0 END) = 0
THEN 0
ELSE ROUND(((SUM(CASE WHEN YEAR(`Ad Start Date`) = 2016 THEN `Sales` ELSE 0 END)/SUM(`Sales`))*100),0)
END,
'%;">2016 <div style="color:green;background-color:white;border-radius:10px;
text-align:center;width:60px;padding:2px;">$',
CASE WHEN
SUM(CASE WHEN YEAR(`Ad Start Date`) = 2016 THEN `Sales` ELSE 0 END) = 0
THEN 0
ELSE ROUND((SUM(CASE WHEN YEAR(`Ad Start Date`) = 2016 THEN `Sales` ELSE 0 END)/1000000)*100,1) END,
'M</div></div><br/>',
'<div style="box-shadow:5px 5px 10px gray;border-radius:0px 5px 5px 0px;font-weight:bold;background-color:#FB8D35;
border-radius:0px 5px 5px 0px;height:30px;color:#333333;padding:5px;width:',
CASE WHEN
SUM(CASE WHEN YEAR(`Ad Start Date`) = 2017 THEN `Sales` ELSE 0 END) = 0
THEN 0
ELSE ROUND(((SUM(CASE WHEN YEAR(`Ad Start Date`) = 2017 THEN `Sales` ELSE 0 END)/SUM(`Sales`))*100),0)
END,
'%;">2017 <div style="color:green;background-color:white;border-radius:10px;
text-align:center;width:60px;padding:2px;">$',
CASE WHEN
SUM(CASE WHEN YEAR(`Ad Start Date`) = 2017 THEN `Sales` ELSE 0 END) = 0
THEN 0
ELSE ROUND((SUM(CASE WHEN YEAR(`Ad Start Date`) = 2017 THEN `Sales` ELSE 0 END)/1000000)*100,1) END,
'M</div></div>'
,'</div>')0 -
0
-
Here is a simpler example of just the single bar:
CONCAT('<div style="background-color:#74B0D7;border-radius:10px;height:20px;
padding:2px;width:',
sum(`Sales`)/100000,
'%',
'">',
'</div>'
)0 -
Thanks Gavatar for some workarounds. That is quite the beastmode.
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**0 -
Second example is easier
0 -
0
-
This is exactly what we needed! @Gavatar, great example and what a beastmode! Is there any workaround to generate sparklines as I asked in this post?
I tried to use arrows to present the individual trend & connect them together, but without the reference of value, they don't look like a trend line. If you can suggest some ideas/workaround, that will be much appreciated.
Now seeing the status as "Approved", I will look forward to the feature being released.
0
Categories
- 10.6K All Categories
- 1 APAC User Group
- 12 Welcome
- 36 Domo News
- 9.6K Using Domo
- 1.9K Dataflows
- 2.4K Card Building
- 2.2K Ideas Exchange
- 1.2K Connectors
- 339 Workbench
- 252 Domo Best Practices
- 11 Domo Certification
- 461 Domo Developer
- 47 Domo Everywhere
- 100 Apps
- 703 New to Domo
- 84 Dojo
- Domopalooza
- 1.1K 日本支部
- 4 道場-日本支部へようこそ
- 22 お知らせ
- 63 Kowaza
- 296 仲間に相談
- 649 ひらめき共有