mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
[explore] viz type selector as modal (#2787)
* [explore] viz type selector as modal * Addressing comments * Adressing comments
This commit is contained in:
committed by
GitHub
parent
3a4cd3ae24
commit
66403f1876
@@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
import { formatSelectOptionsForRange, formatSelectOptions } from '../../modules/utils';
|
||||
import visTypes from './visTypes';
|
||||
import * as v from '../validators';
|
||||
|
||||
const D3_FORMAT_DOCS = 'D3 format syntax: https://github.com/d3/d3-format';
|
||||
@@ -48,15 +47,9 @@ export const controls = {
|
||||
},
|
||||
|
||||
viz_type: {
|
||||
type: 'SelectControl',
|
||||
type: 'VizTypeControl',
|
||||
label: 'Visualization Type',
|
||||
clearable: false,
|
||||
default: 'table',
|
||||
choices: Object.keys(visTypes).map(vt => [
|
||||
vt,
|
||||
visTypes[vt].label,
|
||||
`/static/assets/images/viz_thumbnails/${vt}.png`,
|
||||
]),
|
||||
description: 'The type of visualization to display',
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user