SpreadJS Documentation
getMaximumColor Method
Gets the maximum color scale.
Syntax
var instance = new GcSpread.Sheets.TwoScaleRule(minType, minValue, minColor, maxType, maxValue, maxColor);
var value; // Type: string
value = instance.getMaximumColor();
function getMaximumColor() : string;

Return Value

The maximum color scale.
Example
This example uses the getMaximumColor method.
var scale = new GcSpread.Sheets.TwoScaleRule();
scale.setMaximumColor("blue");
scale.setMaximumType(2);
scale.setMaximumValue(100);
scale.setMinimumColor("yellow");
scale.setMinimumType(1);
scale.setMinimumValue(10);
scale.ranges = [new GcSpread.Sheets.Range(0, 0, 10, 3)];
activeSheet.getConditionalFormats().addRule(scale);
activeSheet.setValue(0,0, 1,3);
activeSheet.setValue(1,0, 50,3);
activeSheet.setValue(2,0, 100,3);
alert("Color: " + scale.getMaximumColor() + " Type: " + scale.getMaximumType() + " Value: " + scale.getMaximumValue());
Remarks
The default value is rgba(255, 99, 190, 123).
See Also

Reference

TwoScaleRule class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.