All Apps and Add-ons

How to change the default colors of my bar chart

Ashwini008
Builder

Hi,

Below is the defualt color of my bar chart.The color is light so how do i change these default color.

The result of my query is not specific ,the result keeps on changing.

Ashwini008_0-1632238068140.png

Also,Is there way through which i can give a space between the legend values (my right most defined values in the chart) as they are overlapped one on another?

Thank You

Labels (3)
0 Karma

ashvinpandey
Contributor

@Ashwini008 Use the below link for splunk answers, as this solution is already been posted :
https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-colour-of-graphs/td-p/349147 
https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-change-the-colors-in-bar-graph-res... 

Also, If this reply helps you, an upvote would be appreciated.

Ashwini008
Builder

@ashvinpandey Thanks

I want the legend values to be like below with a space between them 

Ashwini008_0-1632291926245.png

but i am getting it overlapped like below 

Ashwini008_1-1632291963751.png

 

P.S for first image the data is pulled from DB and for second image data is fetched from index.But the query logic is same

0 Karma

Ashwini008
Builder

@ITWhisperer Can you please look into this

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You could try some CSS to scale down the legend components

          div[id^="panelid"] g.highcharts-legend-item rect,
          div[id^="panelid"] g.highcharts-legend-item text {
            transform: scale(0.8);
          }
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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