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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...