(c: SandDance.types.Column)
| 13 | } |
| 14 | |
| 15 | function defaultColorScheme(c: SandDance.types.Column) { |
| 16 | if (c.quantitative) { |
| 17 | return 'redyellowgreen'; |
| 18 | } else if (c.stats.distinctValueCount === 2) { |
| 19 | return 'dual_redgreen'; |
| 20 | } else if (c.stats.distinctValueCount <= 10) { |
| 21 | return 'category10'; |
| 22 | } |
| 23 | return 'category20'; |
| 24 | } |