From commits-return-1717-archive-asf-public=cust-asf.ponee.io@superset.incubator.apache.org Fri Oct 19 20:40:30 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 30B03180652 for ; Fri, 19 Oct 2018 20:40:30 +0200 (CEST) Received: (qmail 28189 invoked by uid 500); 19 Oct 2018 18:40:29 -0000 Mailing-List: contact commits-help@superset.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@superset.incubator.apache.org Delivered-To: mailing list commits@superset.incubator.apache.org Received: (qmail 28175 invoked by uid 99); 19 Oct 2018 18:40:29 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2018 18:40:29 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id A681985C05; Fri, 19 Oct 2018 18:40:28 +0000 (UTC) Date: Fri, 19 Oct 2018 18:40:28 +0000 To: "commits@superset.apache.org" Subject: [incubator-superset] branch master updated: Define chart presets (#6144) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <153997442840.22401.7686064277540269913@gitbox.apache.org> From: ccwilliams@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-superset X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: bc3a2efa0e6890b9307253155453b6e9dd3b8bbb X-Git-Newrev: 546d150b91fe2082a2cd63f3be16510930517d7e X-Git-Rev: 546d150b91fe2082a2cd63f3be16510930517d7e X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 546d150 Define chart presets (#6144) 546d150 is described below commit 546d150b91fe2082a2cd63f3be16510930517d7e Author: Krist Wongsuphasawat AuthorDate: Fri Oct 19 11:40:21 2018 -0700 Define chart presets (#6144) * define chart presets * remove dual line --- .../visualizations/presets/CommonChartPreset.js | 41 +++++++++++++++++ .../visualizations/presets/DeckGLChartPreset.js | 29 ++++++++++++ .../visualizations/presets/HierarchyChartPreset.js | 17 ++++++++ .../visualizations/presets/LegacyChartPreset.js | 51 ++++++++++++++++++++++ .../src/visualizations/presets/MapChartPreset.js | 17 ++++++++ 5 files changed, 155 insertions(+) diff --git a/superset/assets/src/visualizations/presets/CommonChartPreset.js b/superset/assets/src/visualizations/presets/CommonChartPreset.js new file mode 100644 index 0000000..2756c3d --- /dev/null +++ b/superset/assets/src/visualizations/presets/CommonChartPreset.js @@ -0,0 +1,41 @@ +import Preset from '../core/models/Preset'; +import AreaChartPlugin from '../nvd3/Area/AreaChartPlugin'; +import BarChartPlugin from '../nvd3/Bar/BarChartPlugin'; +import BigNumberChartPlugin from '../BigNumber/BigNumberChartPlugin'; +import BigNumberTotalChartPlugin from '../BigNumberTotal/BigNumberTotalChartPlugin'; +import BoxPlotChartPlugin from '../nvd3/BoxPlot/BoxPlotChartPlugin'; +import BubbleChartPlugin from '../nvd3/Bubble/BubbleChartPlugin'; +import DistBarChartPlugin from '../nvd3/DistBar/DistBarChartPlugin'; +import FilterBoxChartPlugin from '../FilterBox/FilterBoxChartPlugin'; +import HistogramChartPlugin from '../Histogram/HistogramChartPlugin'; +import LineChartPlugin from '../nvd3/Line/LineChartPlugin'; +import PieChartPlugin from '../nvd3/Pie/PieChartPlugin'; +import PivotTableChartPlugin from '../PivotTable/PivotTableChartPlugin'; +import TableChartPlugin from '../Table/TableChartPlugin'; +import TimeTableChartPlugin from '../TimeTable/TimeTableChartPlugin'; +import WordCloudChartPlugin from '../wordcloud/WordCloudChartPlugin'; + +export default class CommonChartPreset extends Preset { + constructor() { + super({ + name: 'Common charts', + plugins: [ + new AreaChartPlugin().configure({ key: 'area' }), + new BarChartPlugin().configure({ key: 'bar' }), + new BigNumberChartPlugin().configure({ key: 'big_number' }), + new BigNumberTotalChartPlugin().configure({ key: 'big_number_total' }), + new BoxPlotChartPlugin().configure({ key: 'box_plot' }), + new BubbleChartPlugin().configure({ key: 'bubble' }), + new DistBarChartPlugin().configure({ key: 'dist_bar' }), + new FilterBoxChartPlugin().configure({ key: 'filter_box' }), + new HistogramChartPlugin().configure({ key: 'histogram' }), + new LineChartPlugin().configure({ key: 'line' }), + new PieChartPlugin().configure({ key: 'pie' }), + new PivotTableChartPlugin().configure({ key: 'pivot_table' }), + new TableChartPlugin().configure({ key: 'table' }), + new TimeTableChartPlugin().configure({ key: 'time_table' }), + new WordCloudChartPlugin().configure({ key: 'word_cloud' }), + ], + }); + } +} diff --git a/superset/assets/src/visualizations/presets/DeckGLChartPreset.js b/superset/assets/src/visualizations/presets/DeckGLChartPreset.js new file mode 100644 index 0000000..1f55632 --- /dev/null +++ b/superset/assets/src/visualizations/presets/DeckGLChartPreset.js @@ -0,0 +1,29 @@ +import Preset from '../core/models/Preset'; +import ArcChartPlugin from '../deckgl/layers/Arc/ArcChartPlugin'; +import GeoJsonChartPlugin from '../deckgl/layers/Geojson/GeojsonChartPlugin'; +import GridChartPlugin from '../deckgl/layers/Grid/GridChartPlugin'; +import HexChartPlugin from '../deckgl/layers/Hex/HexChartPlugin'; +import MultiChartPlugin from '../deckgl/Multi/MultiChartPlugin'; +import PathChartPlugin from '../deckgl/layers/Path/PathChartPlugin'; +import PolygonChartPlugin from '../deckgl/layers/Polygon/PolygonChartPlugin'; +import ScatterChartPlugin from '../deckgl/layers/Scatter/ScatterChartPlugin'; +import ScreengridChartPlugin from '../deckgl/layers/Screengrid/ScreengridChartPlugin'; + +export default class DeckGLChartPreset extends Preset { + constructor() { + super({ + name: 'deck.gl charts', + plugins: [ + new ArcChartPlugin().configure({ key: 'deck_arc' }), + new GeoJsonChartPlugin().configure({ key: 'deck_geojson' }), + new GridChartPlugin().configure({ key: 'deck_grid' }), + new HexChartPlugin().configure({ key: 'deck_hex' }), + new MultiChartPlugin().configure({ key: 'deck_multi' }), + new PathChartPlugin().configure({ key: 'deck_path' }), + new PolygonChartPlugin().configure({ key: 'deck_polygon' }), + new ScatterChartPlugin().configure({ key: 'deck_scatter' }), + new ScreengridChartPlugin().configure({ key: 'deck_screengrid' }), + ], + }); + } +} diff --git a/superset/assets/src/visualizations/presets/HierarchyChartPreset.js b/superset/assets/src/visualizations/presets/HierarchyChartPreset.js new file mode 100644 index 0000000..b19bb83 --- /dev/null +++ b/superset/assets/src/visualizations/presets/HierarchyChartPreset.js @@ -0,0 +1,17 @@ +import Preset from '../core/models/Preset'; +import PartitionChartPlugin from '../Partition/PartitionChartPlugin'; +import SunburstChartPlugin from '../Sunburst/SunburstChartPlugin'; +import TreemapChartPlugin from '../Treemap/TreemapChartPlugin'; + +export default class HierarchyChartPreset extends Preset { + constructor() { + super({ + name: 'Hierarchy charts', + plugins: [ + new PartitionChartPlugin().configure({ key: 'partition' }), + new SunburstChartPlugin().configure({ key: 'sunburst' }), + new TreemapChartPlugin().configure({ key: 'treemap' }), + ], + }); + } +} diff --git a/superset/assets/src/visualizations/presets/LegacyChartPreset.js b/superset/assets/src/visualizations/presets/LegacyChartPreset.js new file mode 100644 index 0000000..c5c06af --- /dev/null +++ b/superset/assets/src/visualizations/presets/LegacyChartPreset.js @@ -0,0 +1,51 @@ +import Preset from '../core/models/Preset'; +import CommonChartPreset from './CommonChartPreset'; +import DeckGLChartPreset from './DeckGLChartPreset'; +import HierarchyChartPreset from './HierarchyChartPreset'; +import MapChartPreset from './MapChartPreset'; +import BulletChartPlugin from '../nvd3/Bullet/BulletChartPlugin'; +import CalendarChartPlugin from '../Calendar/CalendarChartPlugin'; +import ChordChartPlugin from '../Chord/ChordChartPlugin'; +import CompareChartPlugin from '../nvd3/Compare/CompareChartPlugin'; +import DualLineChartPlugin from '../nvd3/DualLine/DualLineChartPlugin'; +import EventFlowChartPlugin from '../EventFlow/EventFlowChartPlugin'; +import ForceDirectedChartPlugin from '../ForceDirected/ForceDirectedChartPlugin'; +import HeatmapChartPlugin from '../Heatmap/HeatmapChartPlugin'; +import HorizonChartPlugin from '../Horizon/HorizonChartPlugin'; +import LineMultiChartPlugin from '../nvd3/LineMulti/LineMultiChartPlugin'; +import PairedTTestChartPlugin from '../PairedTTest/PairedTTestChartPlugin'; +import ParallelCoordinatesChartPlugin from '../ParallelCoordinates/ParallelCoordinatesChartPlugin'; +import RoseChartPlugin from '../Rose/RoseChartPlugin'; +import SankeyChartPlugin from '../Sankey/SankeyChartPlugin'; +import TimePivotChartPlugin from '../nvd3/TimePivot/TimePivotChartPlugin'; + +export default class LegacyChartPreset extends Preset { + constructor() { + super({ + name: 'Legacy charts', + presets: [ + new CommonChartPreset(), + new DeckGLChartPreset(), + new HierarchyChartPreset(), + new MapChartPreset(), + ], + plugins: [ + new BulletChartPlugin().configure({ key: 'bullet' }), + new CalendarChartPlugin().configure({ key: 'cal_heatmap' }), + new ChordChartPlugin().configure({ key: 'chord' }), + new CompareChartPlugin().configure({ key: 'compare' }), + new DualLineChartPlugin().configure({ key: 'dual_line' }), + new EventFlowChartPlugin().configure({ key: 'event_flow' }), + new ForceDirectedChartPlugin().configure({ key: 'directed_force' }), + new HeatmapChartPlugin().configure({ key: 'heatmap' }), + new HorizonChartPlugin().configure({ key: 'horizon' }), + new LineMultiChartPlugin().configure({ key: 'line_multi' }), + new PairedTTestChartPlugin().configure({ key: 'paired_ttest' }), + new ParallelCoordinatesChartPlugin().configure({ key: 'para' }), + new RoseChartPlugin().configure({ key: 'rose' }), + new SankeyChartPlugin().configure({ key: 'sankey' }), + new TimePivotChartPlugin().configure({ key: 'time_pivot' }), + ], + }); + } +} diff --git a/superset/assets/src/visualizations/presets/MapChartPreset.js b/superset/assets/src/visualizations/presets/MapChartPreset.js new file mode 100644 index 0000000..a45ba5c --- /dev/null +++ b/superset/assets/src/visualizations/presets/MapChartPreset.js @@ -0,0 +1,17 @@ +import Preset from '../core/models/Preset'; +import CountryMapChartPlugin from '../CountryMap/CountryMapChartPlugin'; +import MapBoxChartPlugin from '../MapBox/MapBoxChartPlugin'; +import WorldMapChartPlugin from '../WorldMap/WorldMapChartPlugin'; + +export default class MapChartPreset extends Preset { + constructor() { + super({ + name: 'Maps', + plugins: [ + new CountryMapChartPlugin().configure({ key: 'country_map' }), + new MapBoxChartPlugin().configure({ key: 'mapbox' }), + new WorldMapChartPlugin().configure({ key: 'world_map' }), + ], + }); + } +}