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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...