Upload
berkin-albert-antony-w
View
6
Download
2
Embed Size (px)
DESCRIPTION
Chane bar color based on condtion in pentaho cde
Citation preview
function changeBars(scene){var cccOptions = this.chartDefinition;
// For changing extension points, a little more work is required:var eps = Dashboards.propertiesArrayToObject(cccOptions.extensionPoints);
// add extension points:eps.bar_fillStyle = function getColor(){var val = this.scene.vars.value.value;
if(val >= 0){return 'green';}else if(val