Change current thumbnails to smaller ones. (#4430)
* Change current thumbnails to smaller ones. * More density in the VizTypesControl modal
|
|
@ -3,6 +3,7 @@ recursive-include superset/migrations *
|
||||||
recursive-include superset/static *
|
recursive-include superset/static *
|
||||||
recursive-exclude superset/static/docs *
|
recursive-exclude superset/static/docs *
|
||||||
recursive-exclude superset/static/spec *
|
recursive-exclude superset/static/spec *
|
||||||
|
recursive-exclude superset/static/images/viz_thumbnails_large *
|
||||||
recursive-exclude superset/static/assets/node_modules *
|
recursive-exclude superset/static/assets/node_modules *
|
||||||
recursive-include superset/templates *
|
recursive-include superset/templates *
|
||||||
recursive-include superset/translations *
|
recursive-include superset/translations *
|
||||||
|
|
|
||||||
|
|
@ -2,88 +2,88 @@ Gallery
|
||||||
=======
|
=======
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/line.png
|
.. image:: _static/img/viz_thumbnails/line.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/bubble.png
|
.. image:: _static/img/viz_thumbnails/bubble.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/table.png
|
.. image:: _static/img/viz_thumbnails/table.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/pie.png
|
.. image:: _static/img/viz_thumbnails/pie.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/bar.png
|
.. image:: _static/img/viz_thumbnails/bar.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/world_map.png
|
.. image:: _static/img/viz_thumbnails/world_map.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/sankey.png
|
.. image:: _static/img/viz_thumbnails/sankey.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/word_cloud.png
|
.. image:: _static/img/viz_thumbnails/word_cloud.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/filter_box.png
|
.. image:: _static/img/viz_thumbnails/filter_box.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/pivot_table.png
|
.. image:: _static/img/viz_thumbnails/pivot_table.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/directed_force.png
|
.. image:: _static/img/viz_thumbnails/directed_force.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/compare.png
|
.. image:: _static/img/viz_thumbnails/compare.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/sunburst.png
|
.. image:: _static/img/viz_thumbnails/sunburst.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/area.png
|
.. image:: _static/img/viz_thumbnails/area.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/big_number.png
|
.. image:: _static/img/viz_thumbnails/big_number.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/big_number_total.png
|
.. image:: _static/img/viz_thumbnails/big_number_total.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/bullet.png
|
.. image:: _static/img/viz_thumbnails/bullet.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/dist_bar.png
|
.. image:: _static/img/viz_thumbnails/dist_bar.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/heatmap.png
|
.. image:: _static/img/viz_thumbnails/heatmap.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/markup.png
|
.. image:: _static/img/viz_thumbnails/markup.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/para.png
|
.. image:: _static/img/viz_thumbnails/para.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/iframe.png
|
.. image:: _static/img/viz_thumbnails/iframe.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/box_plot.png
|
.. image:: _static/img/viz_thumbnails/box_plot.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/treemap.png
|
.. image:: _static/img/viz_thumbnails/treemap.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/cal_heatmap.png
|
.. image:: _static/img/viz_thumbnails/cal_heatmap.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/horizon.png
|
.. image:: _static/img/viz_thumbnails/horizon.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/mapbox.png
|
.. image:: _static/img/viz_thumbnails/mapbox.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/separator.png
|
.. image:: _static/img/viz_thumbnails/separator.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
||||||
.. image:: _static/img/viz_thumbnails/histogram.png
|
.. image:: _static/img/viz_thumbnails/histogram.png
|
||||||
:scale: 25 %
|
:scale: 50 %
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 398 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 253 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 296 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 225 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 177 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 140 KiB |
|
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 968 KiB After Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 511 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 433 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 777 KiB After Width: | Height: | Size: 117 KiB |
|
Before Width: | Height: | Size: 578 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 242 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 162 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 425 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 161 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 738 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 314 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 220 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 222 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 743 KiB After Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 230 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 460 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 270 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 494 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 200 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 398 KiB |
|
After Width: | Height: | Size: 253 KiB |
|
After Width: | Height: | Size: 296 KiB |
|
After Width: | Height: | Size: 225 KiB |
|
After Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 968 KiB |
|
After Width: | Height: | Size: 511 KiB |
|
After Width: | Height: | Size: 433 KiB |
|
After Width: | Height: | Size: 777 KiB |
|
After Width: | Height: | Size: 578 KiB |
|
After Width: | Height: | Size: 242 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 162 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 425 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 161 KiB |
|
After Width: | Height: | Size: 738 KiB |
|
After Width: | Height: | Size: 314 KiB |
|
After Width: | Height: | Size: 220 KiB |
|
After Width: | Height: | Size: 222 KiB |
|
After Width: | Height: | Size: 743 KiB |
|
After Width: | Height: | Size: 230 KiB |
|
After Width: | Height: | Size: 460 KiB |
|
After Width: | Height: | Size: 194 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 270 KiB |
|
After Width: | Height: | Size: 494 KiB |
|
After Width: | Height: | Size: 200 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 170 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 115 KiB |
|
After Width: | Height: | Size: 133 KiB |
|
|
@ -63,7 +63,7 @@ export default class VizTypeControl extends React.PureComponent {
|
||||||
src={`/static/assets/images/viz_thumbnails/${vt}.png`}
|
src={`/static/assets/images/viz_thumbnails/${vt}.png`}
|
||||||
/>
|
/>
|
||||||
<div className="viztype-label">
|
<div className="viztype-label">
|
||||||
<strong>{visTypes[vt].label}</strong>
|
{visTypes[vt].label}
|
||||||
</div>
|
</div>
|
||||||
</div>);
|
</div>);
|
||||||
}
|
}
|
||||||
|
|
@ -72,13 +72,13 @@ export default class VizTypeControl extends React.PureComponent {
|
||||||
const filteredVizTypes = Object.keys(visTypes)
|
const filteredVizTypes = Object.keys(visTypes)
|
||||||
.filter(vt => filter.length === 0 || visTypes[vt].label.toLowerCase().includes(filter));
|
.filter(vt => filter.length === 0 || visTypes[vt].label.toLowerCase().includes(filter));
|
||||||
|
|
||||||
const imgPerRow = 4;
|
const imgPerRow = 6;
|
||||||
const rows = [];
|
const rows = [];
|
||||||
for (let i = 0; i <= filteredVizTypes.length; i += imgPerRow) {
|
for (let i = 0; i <= filteredVizTypes.length; i += imgPerRow) {
|
||||||
rows.push(
|
rows.push(
|
||||||
<Row key={`row-${i}`}>
|
<Row key={`row-${i}`}>
|
||||||
{filteredVizTypes.slice(i, i + imgPerRow).map(vt => (
|
{filteredVizTypes.slice(i, i + imgPerRow).map(vt => (
|
||||||
<Col md={3} key={`grid-col-${vt}`}>
|
<Col md={12 / imgPerRow} key={`grid-col-${vt}`}>
|
||||||
{this.renderVizType(vt)}
|
{this.renderVizType(vt)}
|
||||||
</Col>
|
</Col>
|
||||||
))}
|
))}
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@
|
||||||
|
|
||||||
.viztype-label {
|
.viztype-label {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viztype-selector-container {
|
.viztype-selector-container {
|
||||||
|
|
|
||||||