Column chart - colors for each bar

Hi,

We recently upgraded our WebI reports from 3.1 to 4.0 and upon upgrade, we noticed that colors in bar chart have changed. In 3.1, we had different colors for each metrics, but in 4.0 everything is same.

Please suggest how to apply different colors to each of the bar’s in the chart? Should I change the config.file as mentioned below


Open C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\images\VisualizationConfig.template.xml
Save the file as VisualizationConfig.xml
Edit the colours as you please.
Save the file.
Restart Tomcat.



selvaips (BOB member since 2005-05-03)

I think 4.1 may deliver a bit more flexibility around graph palettes. I would check, though, that the ‘type’ of the graph is the same as it was in 3.1. It may look the same as 3.1 did, apart from the colours, but make sure it is the sort of graph which, were it in 3.1 would use multiple colours. I hope that makes sense.


Nick Daniels :uk: (BOB member since 2002-08-15)

Hi Nick,

Thank you for the reply. It is column chart in 4.0.5 and I don’t see any option to change the colors in color pallette.

Attached is the screenshot from Webi 4.0 (I’m on SP5).

I have multiple measures which I want to put in and apply different color for each.
WebI 4.0 Image.jpg


selvaips (BOB member since 2005-05-03)

You can’t be on 4.1 as it hasn’t been released yet.


Nick Daniels :uk: (BOB member since 2002-08-15)

Sorry about that. It’s a typo error. It’s 4.0.5. This is one of the hot requirement that I have from customer, and wondering how I can implement this.

And to highlight, I have a 100% Stacked bar chart in which conditional formatting was applied in 3.1 (I see Red and Green in there), and this is working fine without any issues in 4.0.5. If I edit the color palettle, I’m not able to bring back to Red, and Green (I’m not going to edit and change the color but mentioning here to say that this cahrt is working when migrating from 3.1 to 4.0).


selvaips (BOB member since 2005-05-03)

I was able to bring diff. colors to each of the bar but not custom coloring as it is in 3.1.

This particular chart only has measure values and no dimension objects in it. So when generating chart like this, we get same colors for all the bars. However, I made an workaround Yesterday to get different colors for each bar.

Thank you.


selvaips (BOB member since 2005-05-03)

We are having a similar experience. We have migrated from 3.1 sp 5 to 4.0 sp 6. In many cases, our charts are as you described - they had several colors in 3.1, but only 1 color in 4.0. Also, we are often missing the legend. In some reports, the entire chart is gone and we cannot determine why this is.

Any suggestions would be appreciated.


ljvaldivia :us: (BOB member since 2008-10-15)

Say I have a chart with 2 measures without having any dimension in the chart. When this generated in 4.0 using bar chart, both bars shall be displayed in the same color.

Yo might have selected two meausres in value axis, and "all measure names’ in category axis ('All measure names would be available when you generate the chart).

To show the different color, i did created couple of variables to have the measure names. Ex:
Var 1: NameOf([Measure 1])
Var 2: NameOf([Measure 2])

I applied these two variables in category axis by removing the ‘All measure names’ and thus bring the diff.color for each graph. But what is not possible here is that custom color palette which exist in 3.1.

Hope this helps and let me know if you have any questions please


selvaips (BOB member since 2005-05-03)

Hi,
Have you tried KoolChart’s charting tools which provide different type of tools like pie chart, bar chart and many more. It gives you the flexibility to work in 3D with support of HTML5. I am sure it will help you out.


ThompsonJames (BOB member since 2013-11-05)

If anyone were to recommend to me to use a charting tool because it provides pie charts and 3D effects, I would recommend that they read the teachings of Stephen Few and Edward Tufte! :wink:

Pie charts? No!

3D? No!


Darth Services :uk: (BOB member since 2007-11-20)

Selva, you can change the color of bars when you have multiple measures in column chart.
Just select the bar in your graph and go to Formatting -> background color and select the color you want and repeat the same steps for other bars (measures).


Prashu :india: (BOB member since 2005-08-17)

Can you please advise how to create a bar chart with only measures. One bar for each mesaure. I have around 10 measures.


BOuser2015 (BOB member since 2006-04-10)

Thanks. This worked +1


jemstar :ireland: (BOB member since 2006-03-30)