Dashboards & Visualizations

HiddenChartFormatter seriesColors: values being passed to child?

helenashton
Path Finder

Hi,

I have two charts which gather data (using PostProcess) from the same main search. In each I specify 3 seriesColor values using the HiddenChartFormatter module.
However, I may have 1, 2 or 3 series depending on the data - the color values seems to pass down from one chart to the next.

Consider both charts having colors, red, green and blue specified (in that order), and my charts only has data for 2 series. The first chart will show red and green, then the 2nd chart will show blue and red, almost as if the blue color has come from the previous chart.

My current solution is to specify all possible series names and colors using the charting/legends.labels with the charting.seriesColors, however this shows the series in the legend even if there is no data, so this is not great.

Has anyone seen this before?

Example XML structure:

<module name="Search">
<param name="search">some search</param>

<module name="PostProcess">
    <param name="search"> some sub search</param>
    <module name="HiddenChartFormatter">
        <param name="charting.seriesColors">[0xFFF0000, 0x00FF00, 0x0000FF]</param>
        <module name="FlashChart"></module>                            
    </module>
</module> <!-- PostProcess --> 
<module name="PostProcess">
    <param name="search">  some other sub search</param>            
    <module name="HiddenChartFormatter">
        <param name="charting.seriesColors">[0xFFF0000, 0x00FF00, 0x0000FF]</param>
        <module name="FlashChart"></module>                            
    </module>
    </module> <!-- PostProcess --> 

</module> <!-- Search --> 
1 Solution

somesoni2
Revered Legend

Can you try with following instead of charting.seriesColors...

<param name="charting.fieldColors">{"nameofSeries1":0xFFF0000,"nameofSeries2":0x00FF00,"nameofSeries3":0x0000FF}</param> 

View solution in original post

somesoni2
Revered Legend

Can you try with following instead of charting.seriesColors...

<param name="charting.fieldColors">{"nameofSeries1":0xFFF0000,"nameofSeries2":0x00FF00,"nameofSeries3":0x0000FF}</param> 

helenashton
Path Finder

Perfect - thanks!

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...