Dashboards & Visualizations

Invalid Value of argument 'display.visualizations.charting.legend.labelStyle.overflowMode'?

HeinzWaescher
Motivator

Hi,

I would like to use this type of configuration in a dashboard:

<option name="charting.legend.labelStyle.overflowMode">ellipsisNone</option>

But after that, it is not possible to do changes like changing the cron schedule because of this error:

In handler 'savedsearch': Value of argument 'display.visualizations.charting.legend.labelStyle.overflowMode' must be either 'ellipsisEnd', 'ellipsisMiddle', or 'ellipsisStart'

BR

Heinz

Tags (1)

ngatchasandra
Builder

Hi Heinz,

The value you provide is invalid as reporting the error. This values must be ellipsisEnd, ellipsisMiddle, or'ellipsisStart .

The value you provide is valid for :

<option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> 

This is an code example who take the options both :

<dashboard>
  <label>Storwize Pool Stats</label>
  <description/>
  <row>
    <panel>
      <chart>
        <title>InternalPool1</title>
        <searchString>source="/opt/splunk/bin/scripts/v37001pools" InternalPool1 | eval usedgb=((used_capacity/1024)/1024/1024) | eval capgb=((capacity/1024)/1024/1024) | timechart max(usedgb) as UsedSpace(GB),max(capgb) as MaxSpace(GB)</searchString>
        <earliestTime>0</earliestTime>
        <latestTime/>
        <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
        <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
        <option name="charting.axisTitleX.visibility">visible</option>
        <option name="charting.axisTitleY.visibility">visible</option>
        <option name="charting.axisTitleY2.visibility">visible</option>
        <option name="charting.axisX.scale">linear</option>
        <option name="charting.axisY.scale">linear</option>
        <option name="charting.axisY2.enabled">false</option>
        <option name="charting.axisY2.scale">inherit</option>
        <option name="charting.chart">line</option>
        <option name="charting.chart.nullValueMode">connect</option>
        <option name="charting.chart.sliceCollapsingThreshold">0.01</option>
        <option name="charting.chart.stackMode">default</option>
        <option name="charting.chart.style">shiny</option>
        <option name="charting.drilldown">none</option>
        <option name="charting.layout.splitSeries">0</option>
        <option name="charting.legend.labelStyle.overflowMode">ellipsisEnd</option>
        <option name="charting.legend.placement">right</option>
        <option name="charting.seriesColors">[0x00CC00,0xFF0000]</option>
        <option name="charting.axisTitleX.text">Date</option>
        <option name="charting.axisTitleY.text">CapacityGB</option>
      </chart>
    </panel>
  </row>
</dashboard>
0 Karma

HeinzWaescher
Motivator

Hm the documentation says it can be user for this property...

http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/ChartConfigurationReference

charting.legend.labelStyle.overflowMode (ellipsisEnd | ellipsisMiddle | ellipsisNone | ellipsisStart) ellipsisMiddle Determines how to display labels that overflow layout bounds by replacing elided text with an ellipsis (...).

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...