GcSpread.Sheets Namespace > ConditionalFormats type : addDataBarRule Method |
var instance = new GcSpread.Sheets.ConditionalFormats(worksheet); var value; // Type: object value = instance.addDataBarRule(minType, minValue, maxType, maxValue, color, ranges);
function addDataBarRule( minType : ScaleValueType, minValue : object, maxType : ScaleValueType, maxValue : object, color : string, ranges : Array ) : object;
activeSheet.setValue(0,0,1,3); activeSheet.setValue(1,0,15,3); activeSheet.setValue(2,0,25,3); activeSheet.setValue(3,0,-1,3); activeSheet.getConditionalFormats().addDataBarRule(GcSpread.Sheets.ScaleValueType.Number, -1, GcSpread.Sheets.ScaleValueType.Number, 40, "orange", [new GcSpread.Sheets.Range(0,0,4,1)]);