Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Bar chart with cylinder style

  1. #1
    Join Date
    Feb 2013
    Posts
    2

    Default Bar chart with cylinder style

    Hi,

    Anyone knows how to create a bar chart with cylinder style using CDE tool?

    Thank's!

  2. #2
    Join Date
    Mar 2012
    Posts
    645

    Default

    The only way I can think of is using gradients in the fill style:

    bar_fillStyle = 'linear-gradient(to right, green, blue 50%, green 90%)'

    or some variation of this.
    Use "to up" if the chart orientation is horizontal.

    If you want different colors for different series, you can specify a function to the bar_fillStyle, and return a different base color each time. Something like:

    bar_fillStyle: function(){
    var color = this.delegate(); // default series color
    var rgbColor = pv.color(color).rgb();
    return 'linear-gradient(to right, green, #rgba(' + [rgbColor.r, rgbColor.g, rgbColor.b, rgbColor.a].join(',') + ') 50%, green 90%)';
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.