(c: SandDance.types.Column)
| 19 | } |
| 20 | |
| 21 | export function defaultColorScheme(c: SandDance.types.Column) { |
| 22 | if (c.quantitative) { |
| 23 | return 'redyellowgreen'; |
| 24 | } else if (c.stats.distinctValueCount === 2) { |
| 25 | return 'dual_redgreen'; |
| 26 | } else if (c.stats.distinctValueCount <= 10) { |
| 27 | return 'category10'; |
| 28 | } |
| 29 | return 'category20'; |
| 30 | } |
no outgoing calls
no test coverage detected