mirror of
https://github.com/apache/superset.git
synced 2026-04-23 10:04:45 +00:00
feat(plugin): add plugin-chart-cartodiagram (#25869)
Co-authored-by: Jakob Miksch <jakob@meggsimum.de>
This commit is contained in:
@@ -49,6 +49,7 @@ import {
|
||||
TimePivotChartPlugin,
|
||||
} from '@superset-ui/legacy-preset-chart-nvd3';
|
||||
import { DeckGLChartPreset } from '@superset-ui/legacy-preset-chart-deckgl';
|
||||
import { CartodiagramPlugin } from '@superset-ui/plugin-chart-cartodiagram';
|
||||
import {
|
||||
BigNumberChartPlugin,
|
||||
BigNumberTotalChartPlugin,
|
||||
@@ -186,6 +187,19 @@ export default class MainPreset extends Preset {
|
||||
new EchartsSunburstChartPlugin().configure({ key: VizType.Sunburst }),
|
||||
new HandlebarsChartPlugin().configure({ key: VizType.Handlebars }),
|
||||
new EchartsBubbleChartPlugin().configure({ key: VizType.Bubble }),
|
||||
new CartodiagramPlugin({
|
||||
defaultLayers: [
|
||||
{
|
||||
type: 'WMS',
|
||||
version: '1.3.0',
|
||||
url: 'https://ows.terrestris.de/osm-gray/service',
|
||||
layersParam: 'OSM-WMS',
|
||||
title: 'OpenStreetMap',
|
||||
attribution:
|
||||
'© Map data from <a href="openstreetmap.org/copyright">OpenStreetMap</a>. Service provided by <a href="https://www.terrestris.de">terrestris GmbH & Co. KG</a>',
|
||||
},
|
||||
],
|
||||
}).configure({ key: VizType.Cartodiagram }),
|
||||
...experimentalPlugins,
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user