Jump to content
Changes to the Jaspersoft community edition download ×

Changing the default colors in Ad Hoc Charts Jaspersoft 6.0.1


lpruthveraaj
Go to solution Solved by vitaly.makhaev,

Recommended Posts

Hi , 


I am using Jaspersoft 6.1.0 I am unable to change the colors for the Ad Hoc view charts. I added colors in defaultPalette.js but, I see the changes reflected on the report charts. But changes are not refelecting on the Ad Hoc View.


Could you please suggest I want to add custom colors to Ad Hoc View charts too.


 


Thanks & Regards,


Pruthvi  


Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

For 6.0.1 you need to follow the same instrucctions as for 5.x versions check this article http://community.jaspersoft.com/wiki/how-modify-jasperreports-server-561-default-html5-color-palette Remembet that this will affect all Adhoc Charts since it is a server level setting.

Starting in 6.2 Jaspersfot added the posibility to change/control those color at the AdHoc level per chart, so upgrading will probably be best :) You can find more info about this in the 6.2 Documentation and also in the What's New in Jaspersoft 6.2 Page. Take a look at this video for a demo

Link to comment
Share on other sites

I tried changing the JS files as you specified. Still I am unable to see the defined colors on Ad hoc view charts. But, I can see those colors only on report Charts.

Could you please suggest me anyother option  to see the colors on Ad Hoc Veiw charts also?

 

Thanks & regards,

Pruthvi 

 

Link to comment
Share on other sites

  • Solution

Hi Pruthvi. 

I know the method, it must work for 6.2.0, and not checked for 6.0.1. (Be ready for making revert) 

You should export Current theme, and make updates for Colors or Styles in templates. 

Then you import the Theme back, and new colorsstyles will appear. 

Step1. Export Themes and unzip archive export.zip. 

Screenshot1-export.jpg.d3c766ab9f9c1fcc3aa6506ed83a16d4.jpg

 

Step 2. Find the files *.jrxml.data and update styles as you like. 

Move files back to archive export.zip. 

Step 3. Import export.zip and check how it looks now. 

Picture for step 2: 

Screenshot2-Styles.thumb.jpg.a226758809efdabd028786e8fadb0bfd.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...