US and Worldwide: +1 (866) 660-7555
Results 1 to 3 of 3

Thread: [BarChart]Set a color to a category according to the value

  1. #1

    Default [BarChart]Set a color to a category according to the value

    Hi all,

    I have a one serie bar chart graph and, according to the category's value I'd like to set a different color.

    With Pentaho Report Designer 3.8 and the Chart Post-Processing Script I though I could deal with it but in order to define a new behavior of the getItemPaint I had to create a new Render class that extends from the BarRenderer.

    Problem : it seems that beanshell does not allow extending classes so Im kind of stuck here.

    Any one has an idea on how could I solve this problem ?

  2. #2
    Join Date
    Mar 2003
    Posts
    7,560

    Default

    Create the renderer as class outside of beanshell, drop that JAR into the server and PRD, and then use the post-processing script to instantiate, configure and replace the renderer.

    Oh, and dont forget to write down your requirements into a JIRA case so that at some point in the future you can do that from within the chart expression
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  3. #3

    Default

    Thanks Taqua for your answers today.

    I just opened a JIRA case : #PRD-3358

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •