Splunk Search

Increase chart image size

bsteelz93
Path Finder

I have the following pie chart. It's working fine but the chart is really small and the writing gets bunched together. I tried to increase the image by using the height and width option but that did not work. Is there an option that would increase the size of the chart?

<?xml version='1.0' encoding='utf-8'?>
<dashboard>
  <label>my dashboard</label>
  <row>
    <chart>
      <searchName>test_search</searchName>
       <option name="charting.chart">pie</option>
       <option name="height">500px</option>
       <option name="width">500px</option>
       <title>my chart</title>
    </chart>
  </row>
</dashboard>
1 Solution

fox
Path Finder

here's some advanced xml that works well for sizing, you could also try specifying 100% rather than pxs

      <param name="savedSearch">20.2 Farm errors by asset</param>

      <module name="TimeRangePicker">

          <param name="searchWhenChanged">True</param>

          <param name="default">Last 24 hours</param>

          <module name="HiddenChartFormatter">

              <param name="charting.chart">pie</param>
              <module name="EnablePreview">

                  <param name="enable">True</param>

                  <param name="display">False</param>

                  <module name="JobStatus" />

                      <module name="FlashChart">

                          <param name="width">100%</param>

                          <param name="height">400px</param>

                      </module>
                      <module name="ViewRedirectorLink">

                          <param name="viewTarget">flashtimeline</param>

                          <param name="popup">True</param>      

                      </module> 
              </module>

          </module>

      </module>

  </module>

View solution in original post

fox
Path Finder

here's some advanced xml that works well for sizing, you could also try specifying 100% rather than pxs

      <param name="savedSearch">20.2 Farm errors by asset</param>

      <module name="TimeRangePicker">

          <param name="searchWhenChanged">True</param>

          <param name="default">Last 24 hours</param>

          <module name="HiddenChartFormatter">

              <param name="charting.chart">pie</param>
              <module name="EnablePreview">

                  <param name="enable">True</param>

                  <param name="display">False</param>

                  <module name="JobStatus" />

                      <module name="FlashChart">

                          <param name="width">100%</param>

                          <param name="height">400px</param>

                      </module>
                      <module name="ViewRedirectorLink">

                          <param name="viewTarget">flashtimeline</param>

                          <param name="popup">True</param>      

                      </module> 
              </module>

          </module>

      </module>

  </module>
Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...