Fix gauge default colorscheme
This commit is contained in:
parent
1b8de1edff
commit
2a365e98dc
@ -172,6 +172,7 @@ export default class GaugeChart extends BaseChart {
|
||||
defMetrics (): Metric {
|
||||
return Object.assign({}, {
|
||||
type: ChartType.gauge,
|
||||
fixTooltips: true,
|
||||
startAngle: 200,
|
||||
endAngle: -20,
|
||||
})
|
||||
|
||||
@ -3,7 +3,7 @@ import colorschemes from './colorschemes'
|
||||
|
||||
export const getColorschemeColors = (colorscheme?: string, customColorSchemes?: any[]): string[] => {
|
||||
if (!colorscheme) {
|
||||
return []
|
||||
return ['#37A2DA', '#32C5E9', '#67E0E3', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#E062AE', '#E690D1', '#e7bcf3', '#9d96f5', '#8378EA', '#96BFFF']
|
||||
}
|
||||
|
||||
if (colorscheme.includes('custom') && customColorSchemes) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user