Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Urgent - Define colors for Stacked Bar Chart

  1. #1
    Join Date
    Aug 2012
    Posts
    2

    Default Urgent - Define colors for Stacked Bar Chart

    I am working on defining the colors for stacked bar chart as per the series not categories. Color definition is working in the case of pie-Chart using categories.

    I am using Protovis in CDE under post-execution block to define the colors for earch stack of bar.

    but it is not working and it shows only single color for each bar.

    function() {
    var bar= this.chart.barChartPanel.pvBar;

    var series = this.chart.dataEngine.getVisibleSeries();

    var ColorMap = [["Yes", "red"], ["No", "green"], ["Unknown", "orange"], ["No Data", "blue"]];

    bar.fillStyle(function() {
    .....
    });
    bar.root.render();

    }

    But this code, define the color of category OR bar of the chart - not individual slices of the bar.

    Please let me know if it is possible through Protovis. it is urgent issue and we need to deliver it by tomorrow.

    Thanks,
    Sandeep

  2. #2
    Join Date
    Aug 2012
    Posts
    2

    Default

    Please help me on this, it is very important to fix this issue to get out the release of the dashboard.

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.