(context: SpecContext, fill: string)
| 27 | } |
| 28 | |
| 29 | export function getLegends(context: SpecContext, fill: string) { |
| 30 | const { specColumns, insight } = context; |
| 31 | if (specColumns.color && !insight.hideLegend && !insight.directColor && !specColumns.color.isColorData) { |
| 32 | return [legend(specColumns.color, fill)]; |
| 33 | } |
| 34 | } |