forked from apache-superset/superset-ui-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add scatter plot (apache-superset#90)
* feat: bubble in progress * feat: working scatter plot with basic and bubble demo * feat: add legacy shim * feat: support group as separate channel * fix: box plot formatting * fix: lint * fix: remove/clarify comments
- Loading branch information
Showing
26 changed files
with
1,187 additions
and
41 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...kages/superset-ui-plugins-demo/storybook/stories/preset-chart-xy/ScatterPlot/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const SCATTER_PLOT_PLUGIN_TYPE = 'v2-scatter-plot'; | ||
export const SCATTER_PLOT_PLUGIN_LEGACY_TYPE = 'v2-scatter-plot/legacy'; |
178 changes: 178 additions & 0 deletions
178
...kages/superset-ui-plugins-demo/storybook/stories/preset-chart-xy/ScatterPlot/data/data.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
/* eslint-disable sort-keys, no-magic-numbers */ | ||
export default [ | ||
{ | ||
country_name: 'China', | ||
region: 'East Asia & Pacific', | ||
sum__SP_POP_TOTL: 1344130000, | ||
sum__SP_RUR_TOTL_ZS: 49.427, | ||
sum__SP_DYN_LE00_IN: 75.042, | ||
}, | ||
{ | ||
country_name: 'Indonesia', | ||
region: 'East Asia & Pacific', | ||
sum__SP_POP_TOTL: 244808254, | ||
sum__SP_RUR_TOTL_ZS: 49.288, | ||
sum__SP_DYN_LE00_IN: 70.3915609756, | ||
}, | ||
{ | ||
country_name: 'Japan', | ||
region: 'East Asia & Pacific', | ||
sum__SP_POP_TOTL: 127817277, | ||
sum__SP_RUR_TOTL_ZS: 8.752, | ||
sum__SP_DYN_LE00_IN: 82.5912195122, | ||
}, | ||
{ | ||
country_name: 'Philippines', | ||
region: 'East Asia & Pacific', | ||
sum__SP_POP_TOTL: 94501233, | ||
sum__SP_RUR_TOTL_ZS: 54.983, | ||
sum__SP_DYN_LE00_IN: 68.3914878049, | ||
}, | ||
{ | ||
country_name: 'Vietnam', | ||
region: 'East Asia & Pacific', | ||
sum__SP_POP_TOTL: 87840000, | ||
sum__SP_RUR_TOTL_ZS: 68.971, | ||
sum__SP_DYN_LE00_IN: 75.457902439, | ||
}, | ||
{ | ||
country_name: 'Thailand', | ||
region: 'East Asia & Pacific', | ||
sum__SP_POP_TOTL: 66902958, | ||
sum__SP_RUR_TOTL_ZS: 54.606, | ||
sum__SP_DYN_LE00_IN: 74.008902439, | ||
}, | ||
{ | ||
country_name: 'Myanmar', | ||
region: 'East Asia & Pacific', | ||
sum__SP_POP_TOTL: 52125411, | ||
sum__SP_RUR_TOTL_ZS: 68.065, | ||
sum__SP_DYN_LE00_IN: 64.7612439024, | ||
}, | ||
{ | ||
country_name: 'India', | ||
region: 'South Asia', | ||
sum__SP_POP_TOTL: 1247446011, | ||
sum__SP_RUR_TOTL_ZS: 68.724, | ||
sum__SP_DYN_LE00_IN: 65.9584878049, | ||
}, | ||
{ | ||
country_name: 'Pakistan', | ||
region: 'South Asia', | ||
sum__SP_POP_TOTL: 173669648, | ||
sum__SP_RUR_TOTL_ZS: 62.993, | ||
sum__SP_DYN_LE00_IN: 66.2838780488, | ||
}, | ||
{ | ||
country_name: 'Bangladesh', | ||
region: 'South Asia', | ||
sum__SP_POP_TOTL: 153405612, | ||
sum__SP_RUR_TOTL_ZS: 68.775, | ||
sum__SP_DYN_LE00_IN: 69.891804878, | ||
}, | ||
{ | ||
country_name: 'United States', | ||
region: 'North America', | ||
sum__SP_POP_TOTL: 311721632, | ||
sum__SP_RUR_TOTL_ZS: 19.06, | ||
sum__SP_DYN_LE00_IN: 78.6414634146, | ||
}, | ||
{ | ||
country_name: 'Brazil', | ||
region: 'Latin America & Caribbean', | ||
sum__SP_POP_TOTL: 200517584, | ||
sum__SP_RUR_TOTL_ZS: 15.377, | ||
sum__SP_DYN_LE00_IN: 73.3473658537, | ||
}, | ||
{ | ||
country_name: 'Mexico', | ||
region: 'Latin America & Caribbean', | ||
sum__SP_POP_TOTL: 120365271, | ||
sum__SP_RUR_TOTL_ZS: 21.882, | ||
sum__SP_DYN_LE00_IN: 76.9141707317, | ||
}, | ||
{ | ||
country_name: 'Nigeria', | ||
region: 'Sub-Saharan Africa', | ||
sum__SP_POP_TOTL: 163770669, | ||
sum__SP_RUR_TOTL_ZS: 55.638, | ||
sum__SP_DYN_LE00_IN: 51.7102439024, | ||
}, | ||
{ | ||
country_name: 'Ethiopia', | ||
region: 'Sub-Saharan Africa', | ||
sum__SP_POP_TOTL: 89858696, | ||
sum__SP_RUR_TOTL_ZS: 82.265, | ||
sum__SP_DYN_LE00_IN: 62.2528536585, | ||
}, | ||
{ | ||
country_name: 'Congo, Dem. Rep.', | ||
region: 'Sub-Saharan Africa', | ||
sum__SP_POP_TOTL: 68087376, | ||
sum__SP_RUR_TOTL_ZS: 59.558, | ||
sum__SP_DYN_LE00_IN: 49.3007073171, | ||
}, | ||
{ | ||
country_name: 'South Africa', | ||
region: 'Sub-Saharan Africa', | ||
sum__SP_POP_TOTL: 51553479, | ||
sum__SP_RUR_TOTL_ZS: 37.254, | ||
sum__SP_DYN_LE00_IN: 55.2956585366, | ||
}, | ||
{ | ||
country_name: 'Russian Federation', | ||
region: 'Europe & Central Asia', | ||
sum__SP_POP_TOTL: 142960868, | ||
sum__SP_RUR_TOTL_ZS: 26.268, | ||
sum__SP_DYN_LE00_IN: 69.6585365854, | ||
}, | ||
{ | ||
country_name: 'Germany', | ||
region: 'Europe & Central Asia', | ||
sum__SP_POP_TOTL: 81797673, | ||
sum__SP_RUR_TOTL_ZS: 25.512, | ||
sum__SP_DYN_LE00_IN: 80.7414634146, | ||
}, | ||
{ | ||
country_name: 'Turkey', | ||
region: 'Europe & Central Asia', | ||
sum__SP_POP_TOTL: 73199372, | ||
sum__SP_RUR_TOTL_ZS: 28.718, | ||
sum__SP_DYN_LE00_IN: 74.5404878049, | ||
}, | ||
{ | ||
country_name: 'France', | ||
region: 'Europe & Central Asia', | ||
sum__SP_POP_TOTL: 65342776, | ||
sum__SP_RUR_TOTL_ZS: 21.416, | ||
sum__SP_DYN_LE00_IN: 82.1146341463, | ||
}, | ||
{ | ||
country_name: 'United Kingdom', | ||
region: 'Europe & Central Asia', | ||
sum__SP_POP_TOTL: 63258918, | ||
sum__SP_RUR_TOTL_ZS: 18.43, | ||
sum__SP_DYN_LE00_IN: 80.9512195122, | ||
}, | ||
{ | ||
country_name: 'Italy', | ||
region: 'Europe & Central Asia', | ||
sum__SP_POP_TOTL: 59379449, | ||
sum__SP_RUR_TOTL_ZS: 31.556, | ||
sum__SP_DYN_LE00_IN: 82.187804878, | ||
}, | ||
{ | ||
country_name: 'Egypt, Arab Rep.', | ||
region: 'Middle East & North Africa', | ||
sum__SP_POP_TOTL: 83787634, | ||
sum__SP_RUR_TOTL_ZS: 57, | ||
sum__SP_DYN_LE00_IN: 70.6785609756, | ||
}, | ||
{ | ||
country_name: 'Iran, Islamic Rep.', | ||
region: 'Middle East & North Africa', | ||
sum__SP_POP_TOTL: 75184322, | ||
sum__SP_RUR_TOTL_ZS: 28.8, | ||
sum__SP_DYN_LE00_IN: 73.4493170732, | ||
}, | ||
]; |
Oops, something went wrong.