<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to display text message in the center of a dashboard panel? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-text-message-in-the-center-of-a-dashboard-panel/m-p/338587#M21989</link>
    <description>&lt;P&gt;You can use inline CSS on the  &lt;CODE&gt;html&lt;/CODE&gt; element that displays your message.&lt;/P&gt;

&lt;P&gt;For example, here is something I do. As long as the token &lt;CODE&gt;$no_data_chart_msg$&lt;/CODE&gt; is defined, it will appear in place of the chart, and it is moved down using the  &lt;CODE&gt;margin&lt;/CODE&gt; setting.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;...&amp;lt;/title&amp;gt;
  &amp;lt;html depends="$no_data_chart_msg$"&amp;gt;
    &amp;lt;h3 style="margin: 100px 0 0 10px !important;"&amp;gt;$no_data_chart_msg$&amp;lt;/h3&amp;gt;
  &amp;lt;/html&amp;gt;
  &amp;lt;chart rejects="$no_data_chart_msg$"&amp;gt;
      ....
  &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to center the message in the horizontal middle of the panel, you will probably have to get creative with the CSS using &lt;CODE&gt;auto&lt;/CODE&gt; on the margin-left and margin-right settings.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 14:40:01 GMT</pubDate>
    <dc:creator>rjthibod</dc:creator>
    <dc:date>2017-04-19T14:40:01Z</dc:date>
    <item>
      <title>How to display text message in the center of a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-text-message-in-the-center-of-a-dashboard-panel/m-p/338585#M21987</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;I am displaying a custom message in my dashboard panel whenever the search returns nothing. Currently this text message is displaying at the top of the panel, but I want the message to be displayed at the center of the panel.&lt;/P&gt;

&lt;P&gt;Can anyone help me with this?&lt;/P&gt;

&lt;P&gt;Many Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-text-message-in-the-center-of-a-dashboard-panel/m-p/338585#M21987</guid>
      <dc:creator>Chinmai</dc:creator>
      <dc:date>2017-04-19T12:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to display text message in the center of a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-text-message-in-the-center-of-a-dashboard-panel/m-p/338586#M21988</link>
      <description>&lt;P&gt;What type of panel is this? Statistics table? HTML? Bar Chart? Single Value?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-text-message-in-the-center-of-a-dashboard-panel/m-p/338586#M21988</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-04-19T14:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to display text message in the center of a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-text-message-in-the-center-of-a-dashboard-panel/m-p/338587#M21989</link>
      <description>&lt;P&gt;You can use inline CSS on the  &lt;CODE&gt;html&lt;/CODE&gt; element that displays your message.&lt;/P&gt;

&lt;P&gt;For example, here is something I do. As long as the token &lt;CODE&gt;$no_data_chart_msg$&lt;/CODE&gt; is defined, it will appear in place of the chart, and it is moved down using the  &lt;CODE&gt;margin&lt;/CODE&gt; setting.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;...&amp;lt;/title&amp;gt;
  &amp;lt;html depends="$no_data_chart_msg$"&amp;gt;
    &amp;lt;h3 style="margin: 100px 0 0 10px !important;"&amp;gt;$no_data_chart_msg$&amp;lt;/h3&amp;gt;
  &amp;lt;/html&amp;gt;
  &amp;lt;chart rejects="$no_data_chart_msg$"&amp;gt;
      ....
  &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to center the message in the horizontal middle of the panel, you will probably have to get creative with the CSS using &lt;CODE&gt;auto&lt;/CODE&gt; on the margin-left and margin-right settings.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:40:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-text-message-in-the-center-of-a-dashboard-panel/m-p/338587#M21989</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-04-19T14:40:01Z</dc:date>
    </item>
  </channel>
</rss>

