Any way to highlight current date on a line chart?
Ideally, I'd like to have a vertical line to highlight the current date on a line chart that includes past and future dates.
Alternatively, a symbol/arrow/circle on the line highlighting the current date would work.
I've tried Trellis Categories with no luck. I also don't seem to have the Properties > General > Current Date option that others have mentioned in their charts.
Is there any way to highlight the current date on a line chart? (similar to my poorly drawn green line :)
Thank you so much in advance! New to Domo. This is my first forum post.
Best Answers
-
Domo doesn't have a way to display a vertical line as you're wanting.
You could utilize a beast mode to check to see if it's today, if it is return the value.
CASE WHEN `dt` = CURDATE() THEN `random_number` END
You can utilize a symbol line to display your values and then have Today being displayed on top of it like this:
Make sure you have your Today beast mode listed first so it will display on top.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**2 -
If you have data for every day of the year, you could utilize the data label settings and the tooltip to make a label appear on the current date.
First, create a beast mode that looks like this:
CASE WHEN datefield = CURRENT_DATE() THEN datefield END
Drag this beast mode into the Tooltip Field 1.
In the Chart Properties, go to Data Label Settings and in the Text, add Tooltip Field 1.
The result will look something like this as long as you have data for the current date. (I didn't have the right dataset to work with, so I made it show 10/1/2023).
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.2
Answers
-
Domo doesn't have a way to display a vertical line as you're wanting.
You could utilize a beast mode to check to see if it's today, if it is return the value.
CASE WHEN `dt` = CURDATE() THEN `random_number` END
You can utilize a symbol line to display your values and then have Today being displayed on top of it like this:
Make sure you have your Today beast mode listed first so it will display on top.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**2 -
If you have data for every day of the year, you could utilize the data label settings and the tooltip to make a label appear on the current date.
First, create a beast mode that looks like this:
CASE WHEN datefield = CURRENT_DATE() THEN datefield END
Drag this beast mode into the Tooltip Field 1.
In the Chart Properties, go to Data Label Settings and in the Text, add Tooltip Field 1.
The result will look something like this as long as you have data for the current date. (I didn't have the right dataset to work with, so I made it show 10/1/2023).
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.2 -
Another option is to make it look like the line changes color when it goes past the current date by creating two lines. I have outlined how to do it in this video. You can ignore the part about rolling averages and just focus on how I develop two lines.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
@GrantSmith Thank you for taking the time to reply to my first forum entry!!! It was very encouraging to hear back from the community and learn from your experience! This is a great solution using the symbol line chart that I hadn't thought of! Thank you!
Btw, I'm a minimalist to a fault. Do you happen to know if there's a way to hide all symbols other than the circle representing "today" in your mockup example?
0 -
@MarkSnodgrass Wanted to say thank you personally for taking the time to help me learn and get ramped up on Domo. I've never used the ToolTips feature before, and this is a CLEVER way to highlight the current date! I love this!
Thank you for being active in the community. It's really encouraging to us new to Domo!
0 -
Currently there isn't an option to hide the others. As you can see there's a lot of great ideas coming from the community and more than one way to do something within Domo. Welcome to the forums!
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
@GrantSmith Thank you again! I'm enjoying the learning process, and I'm especially encouraged by this active Domo community!!
1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive