[explore] viz type selector as modal (#2787)

* [explore] viz type selector as modal

* Addressing comments

* Adressing comments
This commit is contained in:
Maxime Beauchemin
2017-05-30 11:05:18 -07:00
committed by GitHub
parent 3a4cd3ae24
commit 66403f1876
8 changed files with 184 additions and 12 deletions

View File

@@ -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',
},

View File

@@ -141,7 +141,7 @@ const visTypes = {
},
dual_line: {
label: 'Time Series - Dual Axis Line Chart',
label: 'Dual Axis Line Chart',
requiresTime: true,
controlPanelSections: [
{