Dashboards & Visualizations

is it possible to set a fix configuration for the canvas size?

spv_ddo_i40
Engager

Hello,
for a dashboard the user want every time when he opens the dashboard that the canvas size is fit to his screen.

How can i define this ?

Labels (1)
0 Karma

datadevops
Path Finder

Hi there,

While there's no direct option for this,
here are effective approaches:

1. Leverage CSS Media Queries:

  • Within your dashboard's CSS file, add media queries that adjust panel sizes and layouts based on different screen widths. Use @media rules to target specific screen sizes or ranges.
  • This approach offers fine-grained control over responsiveness, but requires CSS expertise.

Example CSS:

CSS
@media (max-width: 768px) {
  /* Adjust panel widths, heights, and margins for smaller screens */
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* Adjustments for medium-sized screens */
}

/* Similar rules for larger screens */
Use code with caution. Learn more
content_copy

2. Employ Splunk Dashboard Elements:

  • Utilize elements like "Fit to Width" or "Fit to Height" panels to automatically resize content within specific panels.
  • While not as comprehensive as CSS media queries, this method is easier to implement without coding.

3. Combine Both Approaches:

  • For maximum flexibility, use CSS media queries for overall dashboard layout and Splunk elements for fine-tuning individual panels.

Additional Tips:

  • Set initial dashboard size that works well on most screens.
  • Test your dashboard with different screen sizes and resolutions.
  • Use Splunk's built-in responsive features like panel stacking and collapsible headers.
  • Consider using a flexible CSS framework like Bootstrap or Tailwind CSS to streamline design and responsiveness.

By implementing these strategies, you can create a user-friendly Splunk dashboard that adapts to various screen sizes, enhancing the user experience.

~ If the reply helps, a Karma upvote would be appreciated

Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...