06 May 2025 08:12 PM
I have developed a Custom App to have the visualization of all Davis problems . It has a datatable with Event Category,Priority and a sparkline column to display the count of problems over a period of time ( as a timeseries data). Although the sparkline comes as expected, I could not find a way to show the date/time in the X axis which will make it more meaningful..From the sparkline column view, its not possible to understand where and at what time/date the spike happened. Could anyone help here. Below is the Datatable configuration I have as of now.
Solved! Go to Solution.
09 May 2025 01:27 PM
Can somebody reply to this post pls
09 May 2025 01:38 PM
Hi AjithaN,
considering that Sparkline
is a compact and simple visualization that consists of a single line or area graph, without axes or labels, that represents the variation of data points over time, I would say it's not most suitable for your use case.
I would use a combination of sparkline, so you can monitor the trend, and timeseries for a more detailed overview of the period, so you can view specific details of the spike. I'm referring to this timeseries chart: https://developer.dynatrace.com/design/components-preview/charts/TimeseriesChart/
Have you already considered using timeseries here?
09 May 2025 02:48 PM
Thanks much for the response. I tried using an intend next to the sparkline so that it can be redirected to a notebook for a detailed view of the sparkline trend , but seems the data loaded doesn't match because the timeframe selected and filter selected doesn't seem to get saved while fetching the data again. Is there any chance I can display the same sparkline with details (axis,spike points etc) on the same screen without using intends. Something like when we click on the present sparkline in the datatable, it pops up and shows detailed graph. Your response would be greatly helpful for me at this stage.
13 May 2025 12:28 PM
Hi AjithaN,
Currently the Sparkline inside a DataTable Cell does not support the showTicks option that allows you to see the X axis. You can achieve that by using the Sparkline visualization directly in your custom app.
One solution could be using DataTable.CellActions to display your independent and detailed Sparkline when the user clicks on the Sparkline cell
Another solution is the one you commented with an intent that allows you to open the Sparkline directly on Notebooks. You can pop up that intent as well with DataTable.CellActions .
The problem you had with the timeframe can be solved by providing the current timeframe configuration of your custom app in the intent so Notebooks knows what timeframe needs to render
{
"dt.timeframe": {
"from": "now()-7d",
"to": "now()"
},
}