Updating jquery.flot.d.ts. Fixing type for seriesOptions.color

Flot allows the color to be a number or a string. 

See: https://github.com/flot/flot/blob/master/API.md

------------
> The format of a single series object is as follows:
'''javascript
{
    color: color or number
    // other stuff
}
'''

> If you don't specify color, the series will get a color from the 
> auto-generated colors. The color is either a CSS color 
> specification (like "rgb(255, 100, 123)") or an integer that 
> specifies which of auto-generated colors to select, e.g. 0 will get 
> color no. 0, etc.
This commit is contained in:
Tom von Clef
2013-11-07 13:51:24 -05:00
parent b7849122dd
commit 81666ce70c
+1 -1
View File
@@ -72,7 +72,7 @@ declare module jquery.flot {
}
interface seriesOptions {
color?: number;
color?: any; // color or number
label?: string;
lines?: linesOptions;
bars?: barsOptions;