[]
Ƭ ColorScheme: (ColorRule | string[])[]
property 0 - 颜色规则
property {string[]} 1 - 颜色列表
▸ getColor(colorScheme, index, count?): string
根据 colorScheme 和 index 获取指定颜色。
example
GC.Spread.Sheets.Charts.getColor([GC.Spread.Sheets.Charts.ColorRule.acrossLinear, ['Accent 1', 'Accent 4']], 6, 10); // return 'Accent 1 23'
| Name | Type | Description |
|---|---|---|
colorScheme |
ColorScheme |
颜色方案。 |
index |
number |
指定索引。 |
count? |
number |
- |
string
返回指定颜色。