superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccwilli...@apache.org
Subject [incubator-superset] branch master updated: Create chart plugins and metadata (#6072)
Date Fri, 12 Oct 2018 03:55:46 GMT
This is an automated email from the ASF dual-hosted git repository.

ccwilliams pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 5282f39  Create chart plugins and metadata (#6072)
5282f39 is described below

commit 5282f39026be01f5f40b3aea8c51cbcc3b254895
Author: Krist Wongsuphasawat <krist.wongz@gmail.com>
AuthorDate: Thu Oct 11 20:55:40 2018 -0700

    Create chart plugins and metadata (#6072)
    
    * add credit field
    
    * change image size limit for url-loader
    
    * create chord ChartPlugin
    
    * Update config to include original file name in the output
    
    * add calendar
    
    * add country map
    
    * add eventflow
    
    * add thumbnails
    
    * add eventflow, filterbox, force-directed and heatmap
    
    * Add histogram, horizon, mapbox, paired t-test, parallel coordinates
    
    * Create plugins for the rest one-off charts
    
    * ignore chartplugin files from istanbul
---
 superset/assets/.istanbul.yml                      |   1 +
 .../visualizations/Calendar/CalendarChartPlugin.js |  21 +++++++++++++++++++++
 .../visualizations/Calendar/images/thumbnail.png   | Bin 0 -> 11238 bytes
 .../Calendar/images/thumbnailLarge.png             | Bin 0 -> 31627 bytes
 .../src/visualizations/Chord/ChordChartPlugin.js   |  21 +++++++++++++++++++++
 .../src/visualizations/Chord/images/thumbnail.png  | Bin 0 -> 39273 bytes
 .../visualizations/Chord/images/thumbnailLarge.png | Bin 0 -> 407616 bytes
 .../CountryMap/CountryMapChartPlugin.js            |  21 +++++++++++++++++++++
 .../visualizations/CountryMap/images/thumbnail.png | Bin 0 -> 41210 bytes
 .../CountryMap/images/thumbnailLarge.png           | Bin 0 -> 303004 bytes
 .../EventFlow/EventFlowChartPlugin.js              |  20 ++++++++++++++++++++
 .../visualizations/EventFlow/images/thumbnail.png  | Bin 0 -> 17191 bytes
 .../EventFlow/images/thumbnailLarge.png            | Bin 0 -> 108626 bytes
 .../FilterBox/FilterBoxChartPlugin.js              |  20 ++++++++++++++++++++
 .../visualizations/FilterBox/images/thumbnail.png  | Bin 0 -> 8550 bytes
 .../FilterBox/images/thumbnailLarge.png            | Bin 0 -> 49653 bytes
 .../ForceDirected/ForceDirectedChartPlugin.js      |  21 +++++++++++++++++++++
 .../ForceDirected/images/thumbnail.png             | Bin 0 -> 42753 bytes
 .../ForceDirected/images/thumbnailLarge.png        | Bin 0 -> 247382 bytes
 .../visualizations/Heatmap/HeatmapChartPlugin.js   |  21 +++++++++++++++++++++
 .../visualizations/Heatmap/images/thumbnail.png    | Bin 0 -> 39866 bytes
 .../Heatmap/images/thumbnailLarge.png              | Bin 0 -> 435496 bytes
 .../Histogram/HistogramChartPlugin.js              |  20 ++++++++++++++++++++
 .../visualizations/Histogram/images/thumbnail.png  | Bin 0 -> 9717 bytes
 .../Histogram/images/thumbnailLarge.png            | Bin 0 -> 64899 bytes
 .../visualizations/Horizon/HorizonChartPlugin.js   |  21 +++++++++++++++++++++
 .../visualizations/Horizon/images/thumbnail.png    | Bin 0 -> 24924 bytes
 .../Horizon/images/thumbnailLarge.png              | Bin 0 -> 165253 bytes
 .../src/visualizations/MapBox/MapBoxChartPlugin.js |  20 ++++++++++++++++++++
 .../src/visualizations/MapBox/images/thumbnail.png | Bin 0 -> 85714 bytes
 .../MapBox/images/thumbnailLarge.png               | Bin 0 -> 225567 bytes
 .../PairedTTest/PairedTTestChartPlugin.js          |  20 ++++++++++++++++++++
 .../PairedTTest/images/thumbnail.png               | Bin 0 -> 23323 bytes
 .../PairedTTest/images/thumbnailLarge.png          | Bin 0 -> 236049 bytes
 .../ParallelCoordinatesChartPlugin.js              |  21 +++++++++++++++++++++
 .../ParallelCoordinates/images/thumbnail.png       | Bin 0 -> 52039 bytes
 .../ParallelCoordinates/images/thumbnailLarge.png  | Bin 0 -> 471027 bytes
 .../Partition/PartitionChartPlugin.js              |  20 ++++++++++++++++++++
 .../visualizations/Partition/images/thumbnail.png  | Bin 0 -> 11364 bytes
 .../Partition/images/thumbnailLarge.png            | Bin 0 -> 198125 bytes
 .../PivotTable/PivotTableChartPlugin.js            |  20 ++++++++++++++++++++
 .../visualizations/PivotTable/images/thumbnail.png | Bin 0 -> 54527 bytes
 .../PivotTable/images/thumbnailLarge.png           | Bin 0 -> 276020 bytes
 .../src/visualizations/Rose/RoseChartPlugin.js     |  20 ++++++++++++++++++++
 .../src/visualizations/Rose/images/thumbnail.png   | Bin 0 -> 37386 bytes
 .../visualizations/Rose/images/thumbnailLarge.png  | Bin 0 -> 506254 bytes
 .../src/visualizations/Sankey/SankeyChartPlugin.js |  21 +++++++++++++++++++++
 .../src/visualizations/Sankey/images/thumbnail.png | Bin 0 -> 43735 bytes
 .../Sankey/images/thumbnailLarge.png               | Bin 0 -> 205313 bytes
 .../visualizations/Sunburst/SunburstChartPlugin.js |  21 +++++++++++++++++++++
 .../visualizations/Sunburst/images/thumbnail.png   | Bin 0 -> 26030 bytes
 .../Sunburst/images/thumbnailLarge.png             | Bin 0 -> 173806 bytes
 .../src/visualizations/Table/TableChartPlugin.js   |  20 ++++++++++++++++++++
 .../src/visualizations/Table/images/thumbnail.png  | Bin 0 -> 22572 bytes
 .../visualizations/Table/images/thumbnailLarge.png | Bin 0 -> 109326 bytes
 .../TimeTable/TimeTableChartPlugin.js              |  20 ++++++++++++++++++++
 .../visualizations/TimeTable/images/thumbnail.png  | Bin 0 -> 17464 bytes
 .../TimeTable/images/thumbnailLarge.png            | Bin 0 -> 65153 bytes
 .../visualizations/Treemap/TreemapChartPlugin.js   |  21 +++++++++++++++++++++
 .../visualizations/Treemap/images/thumbnail.png    | Bin 0 -> 16623 bytes
 .../Treemap/images/thumbnailLarge.png              | Bin 0 -> 96420 bytes
 .../visualizations/WorldMap/WorldMapChartPlugin.js |  21 +++++++++++++++++++++
 .../visualizations/WorldMap/images/thumbnail.png   | Bin 0 -> 28598 bytes
 .../WorldMap/images/thumbnailLarge.png             | Bin 0 -> 136501 bytes
 .../visualizations/core/models/ChartMetadata.js    |   2 ++
 .../wordcloud/WordCloudChartPlugin.js              |  21 +++++++++++++++++++++
 .../visualizations/wordcloud/images/thumbnail.png  | Bin 0 -> 24048 bytes
 .../wordcloud/images/thumbnailLarge.png            | Bin 0 -> 117846 bytes
 superset/assets/webpack.config.js                  |  15 +++++++++------
 69 files changed, 464 insertions(+), 6 deletions(-)

diff --git a/superset/assets/.istanbul.yml b/superset/assets/.istanbul.yml
index bb5c652..6f381f7 100644
--- a/superset/assets/.istanbul.yml
+++ b/superset/assets/.istanbul.yml
@@ -5,6 +5,7 @@ instrumentation:
     excludes: [
         'dist/**',
         'visualizations/index.js',
+        'visualizations/**/*ChartPlugin.js',
     ]
     embed-source: false
     variable: __coverage__
diff --git a/superset/assets/src/visualizations/Calendar/CalendarChartPlugin.js b/superset/assets/src/visualizations/Calendar/CalendarChartPlugin.js
new file mode 100644
index 0000000..643f107
--- /dev/null
+++ b/superset/assets/src/visualizations/Calendar/CalendarChartPlugin.js
@@ -0,0 +1,21 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Calendar Heatmap',
+  description: '',
+  credits: ['https://github.com/wa0x6e/cal-heatmap'],
+  thumbnail,
+});
+
+export default class ChordChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactCalendar.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/Calendar/images/thumbnail.png b/superset/assets/src/visualizations/Calendar/images/thumbnail.png
new file mode 100644
index 0000000..c83db08
Binary files /dev/null and b/superset/assets/src/visualizations/Calendar/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/Calendar/images/thumbnailLarge.png b/superset/assets/src/visualizations/Calendar/images/thumbnailLarge.png
new file mode 100644
index 0000000..bf79a9e
Binary files /dev/null and b/superset/assets/src/visualizations/Calendar/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/Chord/ChordChartPlugin.js b/superset/assets/src/visualizations/Chord/ChordChartPlugin.js
new file mode 100644
index 0000000..4ec6bc7
--- /dev/null
+++ b/superset/assets/src/visualizations/Chord/ChordChartPlugin.js
@@ -0,0 +1,21 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Chord Diagram',
+  description: '',
+  credits: ['https://github.com/d3/d3-chord'],
+  thumbnail,
+});
+
+export default class ChordChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactChord.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/Chord/images/thumbnail.png b/superset/assets/src/visualizations/Chord/images/thumbnail.png
new file mode 100644
index 0000000..18df6a7
Binary files /dev/null and b/superset/assets/src/visualizations/Chord/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/Chord/images/thumbnailLarge.png b/superset/assets/src/visualizations/Chord/images/thumbnailLarge.png
new file mode 100644
index 0000000..a4a30b6
Binary files /dev/null and b/superset/assets/src/visualizations/Chord/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/CountryMap/CountryMapChartPlugin.js b/superset/assets/src/visualizations/CountryMap/CountryMapChartPlugin.js
new file mode 100644
index 0000000..396bef2
--- /dev/null
+++ b/superset/assets/src/visualizations/CountryMap/CountryMapChartPlugin.js
@@ -0,0 +1,21 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Country Map',
+  description: '',
+  credits: ['https://bl.ocks.org/john-guerra'],
+  thumbnail,
+});
+
+export default class CountryMapChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactCountryMap.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/CountryMap/images/thumbnail.png b/superset/assets/src/visualizations/CountryMap/images/thumbnail.png
new file mode 100644
index 0000000..52acbfa
Binary files /dev/null and b/superset/assets/src/visualizations/CountryMap/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/CountryMap/images/thumbnailLarge.png b/superset/assets/src/visualizations/CountryMap/images/thumbnailLarge.png
new file mode 100644
index 0000000..896fd6b
Binary files /dev/null and b/superset/assets/src/visualizations/CountryMap/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/EventFlow/EventFlowChartPlugin.js b/superset/assets/src/visualizations/EventFlow/EventFlowChartPlugin.js
new file mode 100644
index 0000000..a8f5570
--- /dev/null
+++ b/superset/assets/src/visualizations/EventFlow/EventFlowChartPlugin.js
@@ -0,0 +1,20 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Event Flow',
+  description: '',
+  credits: ['https://github.com/williaster/data-ui'],
+  thumbnail,
+});
+
+export default class EventFlowChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      loadTransformProps: () => import('./transformProps.js'),
+      loadChart: () => import('./EventFlow.jsx'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/EventFlow/images/thumbnail.png b/superset/assets/src/visualizations/EventFlow/images/thumbnail.png
new file mode 100644
index 0000000..a24c1c5
Binary files /dev/null and b/superset/assets/src/visualizations/EventFlow/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/EventFlow/images/thumbnailLarge.png b/superset/assets/src/visualizations/EventFlow/images/thumbnailLarge.png
new file mode 100644
index 0000000..4576529
Binary files /dev/null and b/superset/assets/src/visualizations/EventFlow/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/FilterBox/FilterBoxChartPlugin.js b/superset/assets/src/visualizations/FilterBox/FilterBoxChartPlugin.js
new file mode 100644
index 0000000..11fd4a4
--- /dev/null
+++ b/superset/assets/src/visualizations/FilterBox/FilterBoxChartPlugin.js
@@ -0,0 +1,20 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Filter Box',
+  description: 'A multi filter, multi-choice filter box to make dashboards interactive',
+  thumbnail,
+});
+
+export default class FilterBoxChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./FilterBox.jsx'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/FilterBox/images/thumbnail.png b/superset/assets/src/visualizations/FilterBox/images/thumbnail.png
new file mode 100644
index 0000000..be08f68
Binary files /dev/null and b/superset/assets/src/visualizations/FilterBox/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/FilterBox/images/thumbnailLarge.png b/superset/assets/src/visualizations/FilterBox/images/thumbnailLarge.png
new file mode 100644
index 0000000..209259c
Binary files /dev/null and b/superset/assets/src/visualizations/FilterBox/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/ForceDirected/ForceDirectedChartPlugin.js
b/superset/assets/src/visualizations/ForceDirected/ForceDirectedChartPlugin.js
new file mode 100644
index 0000000..4cbf301
--- /dev/null
+++ b/superset/assets/src/visualizations/ForceDirected/ForceDirectedChartPlugin.js
@@ -0,0 +1,21 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Force-directed Graph',
+  description: '',
+  credits: ['http://bl.ocks.org/d3noob/5141278'],
+  thumbnail,
+});
+
+export default class ForceDirectedChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactForceDirected.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/ForceDirected/images/thumbnail.png b/superset/assets/src/visualizations/ForceDirected/images/thumbnail.png
new file mode 100644
index 0000000..15e0edb
Binary files /dev/null and b/superset/assets/src/visualizations/ForceDirected/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/ForceDirected/images/thumbnailLarge.png b/superset/assets/src/visualizations/ForceDirected/images/thumbnailLarge.png
new file mode 100644
index 0000000..1cc7ce9
Binary files /dev/null and b/superset/assets/src/visualizations/ForceDirected/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/Heatmap/HeatmapChartPlugin.js b/superset/assets/src/visualizations/Heatmap/HeatmapChartPlugin.js
new file mode 100644
index 0000000..e25e21e
--- /dev/null
+++ b/superset/assets/src/visualizations/Heatmap/HeatmapChartPlugin.js
@@ -0,0 +1,21 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Heatmap',
+  description: '',
+  credits: ['http://bl.ocks.org/mbostock/3074470'],
+  thumbnail,
+});
+
+export default class HeatmapChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactHeatmap.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/Heatmap/images/thumbnail.png b/superset/assets/src/visualizations/Heatmap/images/thumbnail.png
new file mode 100644
index 0000000..8d5f8da
Binary files /dev/null and b/superset/assets/src/visualizations/Heatmap/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/Heatmap/images/thumbnailLarge.png b/superset/assets/src/visualizations/Heatmap/images/thumbnailLarge.png
new file mode 100644
index 0000000..ac81a45
Binary files /dev/null and b/superset/assets/src/visualizations/Heatmap/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/Histogram/HistogramChartPlugin.js b/superset/assets/src/visualizations/Histogram/HistogramChartPlugin.js
new file mode 100644
index 0000000..f933bf7
--- /dev/null
+++ b/superset/assets/src/visualizations/Histogram/HistogramChartPlugin.js
@@ -0,0 +1,20 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Histogram',
+  description: '',
+  thumbnail,
+});
+
+export default class HistogramChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./Histogram.jsx'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/Histogram/images/thumbnail.png b/superset/assets/src/visualizations/Histogram/images/thumbnail.png
new file mode 100644
index 0000000..c6f8fdc
Binary files /dev/null and b/superset/assets/src/visualizations/Histogram/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/Histogram/images/thumbnailLarge.png b/superset/assets/src/visualizations/Histogram/images/thumbnailLarge.png
new file mode 100644
index 0000000..f7bbe62
Binary files /dev/null and b/superset/assets/src/visualizations/Histogram/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/Horizon/HorizonChartPlugin.js b/superset/assets/src/visualizations/Horizon/HorizonChartPlugin.js
new file mode 100644
index 0000000..e87ed2b
--- /dev/null
+++ b/superset/assets/src/visualizations/Horizon/HorizonChartPlugin.js
@@ -0,0 +1,21 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Horizon Chart',
+  description: '',
+  credits: ['http://kmandov.github.io/d3-horizon-chart/'],
+  thumbnail,
+});
+
+export default class HorizonChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./HorizonChart.jsx'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/Horizon/images/thumbnail.png b/superset/assets/src/visualizations/Horizon/images/thumbnail.png
new file mode 100644
index 0000000..f927b76
Binary files /dev/null and b/superset/assets/src/visualizations/Horizon/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/Horizon/images/thumbnailLarge.png b/superset/assets/src/visualizations/Horizon/images/thumbnailLarge.png
new file mode 100644
index 0000000..a5d4bf3
Binary files /dev/null and b/superset/assets/src/visualizations/Horizon/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/MapBox/MapBoxChartPlugin.js b/superset/assets/src/visualizations/MapBox/MapBoxChartPlugin.js
new file mode 100644
index 0000000..3d34088
--- /dev/null
+++ b/superset/assets/src/visualizations/MapBox/MapBoxChartPlugin.js
@@ -0,0 +1,20 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'MapBox',
+  description: '',
+  credits: ['https://www.mapbox.com/mapbox-gl-js/api/'],
+  thumbnail,
+});
+
+export default class MapBoxChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      loadTransformProps: () => import('./transformProps.js'),
+      loadChart: () => import('./MapBox.jsx'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/MapBox/images/thumbnail.png b/superset/assets/src/visualizations/MapBox/images/thumbnail.png
new file mode 100644
index 0000000..2132df5
Binary files /dev/null and b/superset/assets/src/visualizations/MapBox/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/MapBox/images/thumbnailLarge.png b/superset/assets/src/visualizations/MapBox/images/thumbnailLarge.png
new file mode 100644
index 0000000..662c163
Binary files /dev/null and b/superset/assets/src/visualizations/MapBox/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/PairedTTest/PairedTTestChartPlugin.js b/superset/assets/src/visualizations/PairedTTest/PairedTTestChartPlugin.js
new file mode 100644
index 0000000..664d5f8
--- /dev/null
+++ b/superset/assets/src/visualizations/PairedTTest/PairedTTestChartPlugin.js
@@ -0,0 +1,20 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Paired t-test Table',
+  description: '',
+  thumbnail,
+});
+
+export default class PairedTTestChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./PairedTTest.jsx'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/PairedTTest/images/thumbnail.png b/superset/assets/src/visualizations/PairedTTest/images/thumbnail.png
new file mode 100644
index 0000000..4a3b225
Binary files /dev/null and b/superset/assets/src/visualizations/PairedTTest/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/PairedTTest/images/thumbnailLarge.png b/superset/assets/src/visualizations/PairedTTest/images/thumbnailLarge.png
new file mode 100644
index 0000000..4f8ad71
Binary files /dev/null and b/superset/assets/src/visualizations/PairedTTest/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/ParallelCoordinates/ParallelCoordinatesChartPlugin.js
b/superset/assets/src/visualizations/ParallelCoordinates/ParallelCoordinatesChartPlugin.js
new file mode 100644
index 0000000..50072c5
--- /dev/null
+++ b/superset/assets/src/visualizations/ParallelCoordinates/ParallelCoordinatesChartPlugin.js
@@ -0,0 +1,21 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Parallel Coordinates',
+  description: '',
+  credits: ['https://syntagmatic.github.io/parallel-coordinates'],
+  thumbnail,
+});
+
+export default class ParallelCoordinatesChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactParallelCoordinates.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/ParallelCoordinates/images/thumbnail.png b/superset/assets/src/visualizations/ParallelCoordinates/images/thumbnail.png
new file mode 100644
index 0000000..5401034
Binary files /dev/null and b/superset/assets/src/visualizations/ParallelCoordinates/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/ParallelCoordinates/images/thumbnailLarge.png
b/superset/assets/src/visualizations/ParallelCoordinates/images/thumbnailLarge.png
new file mode 100644
index 0000000..fc1a157
Binary files /dev/null and b/superset/assets/src/visualizations/ParallelCoordinates/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/Partition/PartitionChartPlugin.js b/superset/assets/src/visualizations/Partition/PartitionChartPlugin.js
new file mode 100644
index 0000000..b711a89
--- /dev/null
+++ b/superset/assets/src/visualizations/Partition/PartitionChartPlugin.js
@@ -0,0 +1,20 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Partition Chart',
+  description: '',
+  thumbnail,
+});
+
+export default class PartitionChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactPartition.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/Partition/images/thumbnail.png b/superset/assets/src/visualizations/Partition/images/thumbnail.png
new file mode 100644
index 0000000..f49ee88
Binary files /dev/null and b/superset/assets/src/visualizations/Partition/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/Partition/images/thumbnailLarge.png b/superset/assets/src/visualizations/Partition/images/thumbnailLarge.png
new file mode 100644
index 0000000..7cf6e13
Binary files /dev/null and b/superset/assets/src/visualizations/Partition/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/PivotTable/PivotTableChartPlugin.js b/superset/assets/src/visualizations/PivotTable/PivotTableChartPlugin.js
new file mode 100644
index 0000000..8d8598d
--- /dev/null
+++ b/superset/assets/src/visualizations/PivotTable/PivotTableChartPlugin.js
@@ -0,0 +1,20 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Pivot Table',
+  description: '',
+  thumbnail,
+});
+
+export default class PivotTableChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactPivotTable.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/PivotTable/images/thumbnail.png b/superset/assets/src/visualizations/PivotTable/images/thumbnail.png
new file mode 100644
index 0000000..a22794b
Binary files /dev/null and b/superset/assets/src/visualizations/PivotTable/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/PivotTable/images/thumbnailLarge.png b/superset/assets/src/visualizations/PivotTable/images/thumbnailLarge.png
new file mode 100644
index 0000000..37f86af
Binary files /dev/null and b/superset/assets/src/visualizations/PivotTable/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/Rose/RoseChartPlugin.js b/superset/assets/src/visualizations/Rose/RoseChartPlugin.js
new file mode 100644
index 0000000..71808bd
--- /dev/null
+++ b/superset/assets/src/visualizations/Rose/RoseChartPlugin.js
@@ -0,0 +1,20 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Nightingale Rose Chart',
+  description: '',
+  thumbnail,
+});
+
+export default class RoseChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactRose.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/Rose/images/thumbnail.png b/superset/assets/src/visualizations/Rose/images/thumbnail.png
new file mode 100644
index 0000000..2006746
Binary files /dev/null and b/superset/assets/src/visualizations/Rose/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/Rose/images/thumbnailLarge.png b/superset/assets/src/visualizations/Rose/images/thumbnailLarge.png
new file mode 100644
index 0000000..763fa2b
Binary files /dev/null and b/superset/assets/src/visualizations/Rose/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/Sankey/SankeyChartPlugin.js b/superset/assets/src/visualizations/Sankey/SankeyChartPlugin.js
new file mode 100644
index 0000000..c49a77e
--- /dev/null
+++ b/superset/assets/src/visualizations/Sankey/SankeyChartPlugin.js
@@ -0,0 +1,21 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Sankey Diagram',
+  description: '',
+  credits: ['https://github.com/d3/d3-sankey'],
+  thumbnail,
+});
+
+export default class SankeyChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactSankey.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/Sankey/images/thumbnail.png b/superset/assets/src/visualizations/Sankey/images/thumbnail.png
new file mode 100644
index 0000000..93d73f6
Binary files /dev/null and b/superset/assets/src/visualizations/Sankey/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/Sankey/images/thumbnailLarge.png b/superset/assets/src/visualizations/Sankey/images/thumbnailLarge.png
new file mode 100644
index 0000000..981cdba
Binary files /dev/null and b/superset/assets/src/visualizations/Sankey/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/Sunburst/SunburstChartPlugin.js b/superset/assets/src/visualizations/Sunburst/SunburstChartPlugin.js
new file mode 100644
index 0000000..35c0d6f
--- /dev/null
+++ b/superset/assets/src/visualizations/Sunburst/SunburstChartPlugin.js
@@ -0,0 +1,21 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Sunburst Chart',
+  description: '',
+  credits: ['https://bl.ocks.org/kerryrodden/7090426'],
+  thumbnail,
+});
+
+export default class SunburstChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactSunburst.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/Sunburst/images/thumbnail.png b/superset/assets/src/visualizations/Sunburst/images/thumbnail.png
new file mode 100644
index 0000000..ec6b607
Binary files /dev/null and b/superset/assets/src/visualizations/Sunburst/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/Sunburst/images/thumbnailLarge.png b/superset/assets/src/visualizations/Sunburst/images/thumbnailLarge.png
new file mode 100644
index 0000000..f155363
Binary files /dev/null and b/superset/assets/src/visualizations/Sunburst/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/Table/TableChartPlugin.js b/superset/assets/src/visualizations/Table/TableChartPlugin.js
new file mode 100644
index 0000000..2b76f9b
--- /dev/null
+++ b/superset/assets/src/visualizations/Table/TableChartPlugin.js
@@ -0,0 +1,20 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Table',
+  description: '',
+  thumbnail,
+});
+
+export default class TableChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactTable.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/Table/images/thumbnail.png b/superset/assets/src/visualizations/Table/images/thumbnail.png
new file mode 100644
index 0000000..0561210
Binary files /dev/null and b/superset/assets/src/visualizations/Table/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/Table/images/thumbnailLarge.png b/superset/assets/src/visualizations/Table/images/thumbnailLarge.png
new file mode 100644
index 0000000..a3dd1be
Binary files /dev/null and b/superset/assets/src/visualizations/Table/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/TimeTable/TimeTableChartPlugin.js b/superset/assets/src/visualizations/TimeTable/TimeTableChartPlugin.js
new file mode 100644
index 0000000..aa29520
--- /dev/null
+++ b/superset/assets/src/visualizations/TimeTable/TimeTableChartPlugin.js
@@ -0,0 +1,20 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Time-series Table',
+  description: '',
+  thumbnail,
+});
+
+export default class TimeTableChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./TimeTable.jsx'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/TimeTable/images/thumbnail.png b/superset/assets/src/visualizations/TimeTable/images/thumbnail.png
new file mode 100644
index 0000000..fe11d8ed
Binary files /dev/null and b/superset/assets/src/visualizations/TimeTable/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/TimeTable/images/thumbnailLarge.png b/superset/assets/src/visualizations/TimeTable/images/thumbnailLarge.png
new file mode 100644
index 0000000..5eba0c2
Binary files /dev/null and b/superset/assets/src/visualizations/TimeTable/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/Treemap/TreemapChartPlugin.js b/superset/assets/src/visualizations/Treemap/TreemapChartPlugin.js
new file mode 100644
index 0000000..078fe38
--- /dev/null
+++ b/superset/assets/src/visualizations/Treemap/TreemapChartPlugin.js
@@ -0,0 +1,21 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Treemap',
+  description: '',
+  credits: ['https://d3js.org'],
+  thumbnail,
+});
+
+export default class TreemapChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactTreemap.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/Treemap/images/thumbnail.png b/superset/assets/src/visualizations/Treemap/images/thumbnail.png
new file mode 100644
index 0000000..27c6c5c
Binary files /dev/null and b/superset/assets/src/visualizations/Treemap/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/Treemap/images/thumbnailLarge.png b/superset/assets/src/visualizations/Treemap/images/thumbnailLarge.png
new file mode 100644
index 0000000..0aec60c
Binary files /dev/null and b/superset/assets/src/visualizations/Treemap/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/WorldMap/WorldMapChartPlugin.js b/superset/assets/src/visualizations/WorldMap/WorldMapChartPlugin.js
new file mode 100644
index 0000000..c0dadfb
--- /dev/null
+++ b/superset/assets/src/visualizations/WorldMap/WorldMapChartPlugin.js
@@ -0,0 +1,21 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Word Cloud',
+  description: '',
+  credits: ['http://datamaps.github.io/'],
+  thumbnail,
+});
+
+export default class WorldMapChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactWorldMap.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/WorldMap/images/thumbnail.png b/superset/assets/src/visualizations/WorldMap/images/thumbnail.png
new file mode 100644
index 0000000..4b3fe0b
Binary files /dev/null and b/superset/assets/src/visualizations/WorldMap/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/WorldMap/images/thumbnailLarge.png b/superset/assets/src/visualizations/WorldMap/images/thumbnailLarge.png
new file mode 100644
index 0000000..82e8ad2
Binary files /dev/null and b/superset/assets/src/visualizations/WorldMap/images/thumbnailLarge.png
differ
diff --git a/superset/assets/src/visualizations/core/models/ChartMetadata.js b/superset/assets/src/visualizations/core/models/ChartMetadata.js
index 3d528b8..653ebc6 100644
--- a/superset/assets/src/visualizations/core/models/ChartMetadata.js
+++ b/superset/assets/src/visualizations/core/models/ChartMetadata.js
@@ -1,11 +1,13 @@
 export default class ChartMetadata {
   constructor({
     name,
+    credits = [],
     description,
     thumbnail,
     show = true,
   }) {
     this.name = name;
+    this.credits = credits;
     this.description = description;
     this.thumbnail = thumbnail;
     this.show = show;
diff --git a/superset/assets/src/visualizations/wordcloud/WordCloudChartPlugin.js b/superset/assets/src/visualizations/wordcloud/WordCloudChartPlugin.js
new file mode 100644
index 0000000..d0e3ca2
--- /dev/null
+++ b/superset/assets/src/visualizations/wordcloud/WordCloudChartPlugin.js
@@ -0,0 +1,21 @@
+import ChartPlugin from '../core/models/ChartPlugin';
+import ChartMetadata from '../core/models/ChartMetadata';
+import transformProps from './transformProps';
+import thumbnail from './images/thumbnail.png';
+
+const metadata = new ChartMetadata({
+  name: 'Word Cloud',
+  description: '',
+  credits: ['https://github.com/jasondavies/d3-cloud'],
+  thumbnail,
+});
+
+export default class WordCloudChartPlugin extends ChartPlugin {
+  constructor() {
+    super({
+      metadata,
+      transformProps,
+      loadChart: () => import('./ReactWordCloud.js'),
+    });
+  }
+}
diff --git a/superset/assets/src/visualizations/wordcloud/images/thumbnail.png b/superset/assets/src/visualizations/wordcloud/images/thumbnail.png
new file mode 100644
index 0000000..1829a2f
Binary files /dev/null and b/superset/assets/src/visualizations/wordcloud/images/thumbnail.png
differ
diff --git a/superset/assets/src/visualizations/wordcloud/images/thumbnailLarge.png b/superset/assets/src/visualizations/wordcloud/images/thumbnailLarge.png
new file mode 100644
index 0000000..03936e1
Binary files /dev/null and b/superset/assets/src/visualizations/wordcloud/images/thumbnailLarge.png
differ
diff --git a/superset/assets/webpack.config.js b/superset/assets/webpack.config.js
index 2dbb997..671d199 100644
--- a/superset/assets/webpack.config.js
+++ b/superset/assets/webpack.config.js
@@ -138,15 +138,18 @@ const config = {
       /* for css linking images */
       {
         test: /\.png$/,
-        loader: 'url-loader?limit=100000',
-      },
-      {
-        test: /\.jpg$/,
-        loader: 'file-loader',
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: '[name].[hash:8].[ext]',
+        },
       },
       {
-        test: /\.gif$/,
+        test: /\.(jpg|gif)$/,
         loader: 'file-loader',
+        options: {
+          name: '[name].[hash:8].[ext]',
+        },
       },
       /* for font-awesome */
       {


Mime
View raw message