Commit Graph

3844 Commits

Author SHA1 Message Date
Yaozong Liu
78c915c464 feat(plugin-chart-echarts): Treemap improvements (#1125)
* fix(plugin-chart-echarts): wip treemap improvements

* fix(plugin-chart-echarts): show % of parent on the tooltip

* fix(plugin-chart-echarts): remove some unuse code

* fix(plugin-chart-echarts): fix order by clause

* fix(plugin-chart-echarts): change metrics to metric

* fix(plugin-chart-echarts): ci
2021-11-26 11:47:10 +08:00
Ville Brofeldt
2511c84bf8 chore: publish v0.17.50 2021-11-26 11:47:10 +08:00
Kamil Gabryjelski
c461abbdeb feat(chart-controls): implement drag&drop controls for all charts (#1127)
* feat(chart-controls): implement drag&drop controls for all charts

* Split stacked controls into separate rows
2021-11-26 11:47:10 +08:00
Ville Brofeldt
a6cfaffa35 feat(core): add support for case insensitive LIKE operator (#1129) 2021-11-26 11:47:10 +08:00
gordern
32ebeff93b feat(plugin-chart-echarts): add orderby on Radar chart (#1112)
* feat(plugin-chart-echarts): add SORT BY metrics to Radar

* fix(plugin-chart-echarts): use timeseries_limit_metric to metrics orderby
2021-11-26 11:47:10 +08:00
Evan Rusackas
ade57cf991 fix: making location of sorting arrows in Table more consistent. (#1124) 2021-11-26 11:47:10 +08:00
Yongjie Zhao
6675e60280 feat: add orderby shared control (#1122) 2021-11-26 11:47:10 +08:00
Ville Brofeldt
25318c38bc chore: publish v0.17.49 2021-11-26 11:47:10 +08:00
Ville Brofeldt
c2c84da6f0 feat(core): add support for empty results and refresh indicator (#1121)
* feat(core): add support for empty results and refresh indicator

* add workaround for reselect limitation

* fix tests, add new test and disable typing for ChartProps.ts
2021-11-26 11:47:10 +08:00
Michael S. Molina
a60771f509 fix: Fixes metric control when changing viz type to tree chart (#1116) 2021-11-26 11:47:10 +08:00
Yaozong Liu
62ec367457 fix(plugin-chart-echarts): 'SORT BY METRIC' add checkbox to Gauge (#1113) 2021-11-26 11:47:09 +08:00
Yaozong Liu
b6f2df9583 fix(plugin-chart-echarts): disabling dragging treemap on the dashboard (#1109) 2021-11-26 11:47:09 +08:00
gordern
dab8a4be4b fix(plugin-chart-echarts): funnel chart improvements (#1110)
* feat(plugin-chart-echarts): opt funnel

1: force row_limit default value success by onInit function; 2: rm "show labels"; 3: rm label's
textBorderColor; 4: rm "Funnel shape"; 5: rm "legend type"

* fix(plugin-chart-echarts): fix method shorthand (object shorthand)
2021-11-26 11:47:09 +08:00
gordern
f73b9a4cf8 feat(plugin-chart-echarts): sort by metric checkbox check by default (#1111) 2021-11-26 11:47:09 +08:00
Ville Brofeldt
8fcf38d843 chore: publish v0.17.48 2021-11-26 11:47:09 +08:00
Michael S. Molina
0eaa79dc1e chore: removes react-bootstrap (#1108) 2021-11-26 11:47:09 +08:00
Yongjie Zhao
e6673f3423 chore: publish v0.17.47 2021-11-26 11:47:09 +08:00
Yaozong Liu
2fa01f7975 feat(plugin-chart-echarts): Enhancements of treemap tooltip (#1103)
* fix(plugin-chart-echarts): enhancements for the treemap

* fix(plugin-chart-echarts): use '▸' to replace '/', filter empty string
2021-11-26 11:47:09 +08:00
Ville Brofeldt
92b7693720 chore: publish v0.17.46 2021-11-26 11:47:09 +08:00
Ville Brofeldt
a622b1d70e fix(core): clean up datatype logic (#1102) 2021-11-26 11:47:09 +08:00
Ville Brofeldt
e51f034317 fix: use proper time grain when using native filters or filter box (#1104) 2021-11-26 11:47:08 +08:00
Evan Rusackas
379aeb8927 chore: publish v0.17.45 2021-11-26 11:47:08 +08:00
Yaozong Liu
012e5dcbc0 feat(plugin-chart-echarts): Echarts Treemap (#1094)
* feat(plugin-chart-echarts): add echarts treemap plugin

* fix(plugin-chart-echarts): add sort descending

* fix(plugin-chart-echarts): add label position and set clear before setOption

* fix(plugin-chart-echarts): metric -> metrics

* fix(plugin-chart-echarts): change thumbnail.

* fix(plugin-chart-echarts): fix treemap transformProps test

* fix(plugin-chart-echarts): clear nouse types

* fix(plugin-chart-echarts): storybook data

* fix(plugin-chart-echarts): remove features

* fix(plugin-chart-echarts): add forceClear

* fix(plugin-chart-echarts): change storybook data

* fix(plugin-chart-echarts): enhancements

* fix(plugin-chart-echarts): enhancements for color and fix ci
2021-11-26 11:47:08 +08:00
gordern
e994fc0802 fix(plugin-chart-echarts): add orderby to funnel chart (#1099)
* fix(plugin-chart-echarts): add orderby

fix https://github.com/apache/superset/issues/14534

* feat(plugin-chart-echarts): set orderby default value is true
2021-11-26 11:47:08 +08:00
Ville Brofeldt
8d45a17923 fix(legacy-plugin-chart-horizon): error on missing groupby (#1100) 2021-11-26 11:47:08 +08:00
jwhuang11
ac7dfada0e feat(legacy-plugin-chart-country-map): added indonesia map (#1088)
added indonesia map. geojson file was created via jupyter notebook script

Co-authored-by: macbook <lim@MacBook-Pro.local>
2021-11-26 11:47:08 +08:00
Ville Brofeldt
902fcf42ce feat(plugin-chart-echarts): hide/show dependent controls (#1097) 2021-11-26 11:47:08 +08:00
Ville Brofeldt
690c5cef5e chore: publish v0.17.44 2021-11-26 11:47:08 +08:00
Mayur
d1312ab2a8 feat(plugin-chart-echart): New Tree chart (#1018)
* initial

* tests added,1 typing issue present

* remove log

* remove color

* remove duplicate tooltip

* Update plugins/plugin-chart-echarts/src/Tree/transformProps.ts

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>

* clean

* merge

* optional name column,more tests...

* bug fix

* remove unused imports

* lint

* bug fix

* tying fix

* clean,typing fix

* stories added

* optional metric control

* bigger thumbnail

* optional root node name

* storybokk updated

* children list seperated instead of mutating data,if root node not provided defaault it to node with most children

* remove logs,optimization needed

* find best node if root not provided,use seperate children list to avoid issues if column name is children

* remove unused import

* type fix

* Update transformProps.ts

* Update debugging.md

* better todo

* updated radio button with new signature

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
2021-11-26 11:47:08 +08:00
Ville Brofeldt
cb76b9dac1 fix: avoid unnecessary rerenders caused by ownState (#1096) 2021-11-26 11:47:07 +08:00
Ville Brofeldt
33198abcfb fix(plugin-chart-table): check if control values are set (#1095) 2021-11-26 11:47:07 +08:00
Jesse Yang
f9f14a1bc7 chore: publish v0.17.43 2021-11-26 11:47:07 +08:00
serenajiang
556cd1cc1f fix(legacy-plugin-chart-sankey): ensure tooltip position is within chart (#1092) 2021-11-26 11:47:07 +08:00
Kamil Gabryjelski
139a067c66 feat(plugin-chart-pivot-table): enable cross filtering (#1083)
* feat(plugin-chart-pivot-table): enable cross filtering

* Fix test

* Fix tests

* Replace `.toEqual` with `.toMatchObject` to fix test

* Use jest.fn() to mock setDataMask

* Code review changes

* Bring back setting ownState
2021-11-26 11:47:07 +08:00
Kamil Gabryjelski
bce9e39f81 feat(plugin-chart-pivot-table): implement barchart highlight (#1089) 2021-11-26 11:47:07 +08:00
Jesse Yang
112beb6533 chore: publish v0.17.42 2021-11-26 11:47:07 +08:00
Jesse Yang
dd5a4bc56b chore: explore more stuff from emotion/react 2021-11-26 11:47:07 +08:00
Jesse Yang
a89b78c112 chore: upgrade to emotion@11 (#1086) 2021-11-26 11:47:07 +08:00
Jesse Yang
679b82b491 fix(plugin-chart-table): hide column configs when no columns (#1085) 2021-11-26 11:47:06 +08:00
Amit Miran
c86ffd26c5 fix: interactiveGroupBy can works regardless to queryMode 2021-11-26 11:47:06 +08:00
krsnik93
99866e70c5 fix(plugin-chart-echarts): include label length in distance calculation (#1056)
* fix(plugin-chart-echarts): include label length in distance calculation

* bump echarts

Co-authored-by: root <root@superset.ikrsnik.devonly.net>
2021-11-26 11:47:06 +08:00
gordern
639c8bac74 feat(plugin-chart-echarts): echarts funnel chart (#1006)
* fix(plugin-chart-echarts): funnel rebase master

* fix(plugin-chart-echarts): resize thumbnail for Funnel Chart

* fix(plugin-chart-echarts): rm Funnel shape

* fix(plugin-chart-echarts): don't need the sort_by_metric control

* fix(plugin-chart-echarts): add sort and orient into Funnel shape

* refactor: use sharedControls instead of controlOverrides

* fix(plugin-chart-echarts): rm min/max args to use echarts default

* style(plugin-chart-echarts): update funnel thumbnail

* style(plugin-chart-echarts): rm unused properties

* fix(plugin-chart-echarts): revert yarn.lock into then one from master

* style(plugin-chart-echarts): add newline at the end of yarn.lock

* style(plugin-chart-echarts): npm run format

n

* style(plugin-chart-echarts): inser final new line to yarn.lock

* fix(demo): update funnel to Funnel

* feat(plugin-chart-echarts): add cross-filter

* feat(plugin-chart-echarts): add cross-filter
2021-11-26 11:47:06 +08:00
Jesse Yang
3d3393cc71 chore: publish v0.17.41 2021-11-26 11:47:06 +08:00
Jesse Yang
85319109a5 feat(plugin-chart-graph): add node/edge size and edge symbol control (#1084)
* feat(plugin-chart-graph): add node/edge size and edge symbol control

* Fix test case
2021-11-26 11:47:06 +08:00
Jesse Yang
6089bcfd89 fix(plugin-chart-table): resize and totals formatting bug (#1082) 2021-11-26 11:47:06 +08:00
Evan Rusackas
5bae6a6110 chore: publish v0.17.40 2021-11-26 11:47:06 +08:00
Evan Rusackas
f72128fadb chore: juggling imports/exports (#1080) 2021-11-26 11:47:06 +08:00
Evan Rusackas
8f9c4ac582 chore: publish v0.17.39 2021-11-26 11:47:06 +08:00
Jesse Yang
08a0d0a324 feat(plugin-chart-table): disable show_totals by default (#1078) 2021-11-26 11:47:06 +08:00
Evan Rusackas
3a1aee7807 chore: adds Emotion's CacheProvider and createCache as exports from Core package (#1073)
* chore: adds CacheProvider and createCache to Core

* chore: re-exporting even more stuff!
2021-11-26 11:47:05 +08:00
Ville Brofeldt
20381251d3 chore: publish v0.17.38 2021-11-26 11:47:05 +08:00
Ville Brofeldt
5f55e0b167 chore(plugin-chart-echarts): bump echarts 5.1.1 (#1074) 2021-11-26 11:47:05 +08:00
Ville Brofeldt
a3bf281929 chore: publish v0.17.37 2021-11-26 11:47:05 +08:00
simcha90
ec45fa5f9d refactor: tick calculation (#1072) 2021-11-26 11:47:05 +08:00
Ville Brofeldt
31ca397c70 fix(plugin-chart-echarts): remove label line if below threshold (#1071) 2021-11-26 11:47:05 +08:00
Ville Brofeldt
d97d706117 chore(plugin-chart-echarts): bump echarts to 5.1.0 (#1062)
* chore(plugin-chart-echarts): bump echarts to 5.1.0

* disable ts error
2021-11-26 11:47:05 +08:00
erik_ritter
58537efc3a chore: publish v0.17.36 2021-11-26 11:47:05 +08:00
Erik Ritter
8d1e28c8bb fix: update yarn.lock (#1067) 2021-11-26 11:47:05 +08:00
Erik Ritter
cc25094b85 feat: add tooltip for full metric names (#1066) 2021-11-26 11:47:05 +08:00
Erik Ritter
cce3486ffd chore: update documentation (#1065) 2021-11-26 11:47:04 +08:00
Ville Brofeldt
ac6e73f58e chore: publish v0.17.35 2021-11-26 11:47:04 +08:00
simcha90
2bb19f16ee feat: groupby filter (#1064) 2021-11-26 11:47:04 +08:00
maltoze
1e27e65d23 chore(plugin-chart-echarts): add time section for gauge chart (#1063) 2021-11-26 11:47:04 +08:00
Ville Brofeldt
935c3af326 chore: publish v0.17.34 2021-11-26 11:47:04 +08:00
Ville Brofeldt
7670a90836 feat(plugin-chart-echarts): add mixed timeseries chart (#1027)
* feat(plugin-chart-echarts): add multiple timeseries chart

* cleanup

* add storybook
2021-11-26 11:47:04 +08:00
Yongjie Zhao
18b1ef008d feat(plugin-chart-echarts): Radar chart POC (#1029)
* feat(plugin-chart-echarts): radar chart mvp

* fix TS error

* fix lint

* WIP

* fix cross-filter and CI

* rebase master

* remove unused control configuration

* Added period to the end of sentence.

* fix FE exception when changes dataset
2021-11-26 11:47:04 +08:00
Craig Rueda
0a4041f971 Adding codecov script locally (#1059) 2021-11-26 11:47:04 +08:00
Ville Brofeldt
8fe9269afe chore: publish v0.17.33 2021-11-26 11:47:04 +08:00
Kamil Gabryjelski
61d0e4b6c2 chore(plugin-chart-pivot-table): change thumbnail and name (#1060) 2021-11-26 11:47:04 +08:00
dkrat7
ef75e7eb83 chore(legacy-plugin-chart-country-map): update notebook with Slovenia parameters (#1058) 2021-11-26 11:47:03 +08:00
Ville Brofeldt
b0cd62ffb7 chore: publish v0.17.32 2021-11-26 11:47:03 +08:00
Ville Brofeldt
2f391ae082 chore(core): simplify ExtraFormData (#1053)
* chore(core): refactor ExtraFormData

* infer override keys from mappings and remove redundant time_range

* rename cross to interactive

* rename CROSS_FILTER to INTERACTIVE_CHART

* remove ts-ignore
2021-11-26 11:47:03 +08:00
Kamil Gabryjelski
9b6f23d3a7 feat(viz): Pivot table chart POC (#1023)
* feat(plugin-chart-pivot-table): add new plugin

* Implement pivot table chart

* Toggle display of grand totals

* Update table viz name

* Minor changes

* Update types

* Implement transpose pivot

* Keep the original order of metrics when sorting

* Use D3 value formatting

* Fix type error

* Explicitly cast payload to JsonObject to fix type error

* Fix tests

* Update react-pivottable dependency

* Solve merge conflicts

* Change thumbnail

* Replace console logs with TODO comments

* Implement z-a sorting

* Update README

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-11-26 11:47:03 +08:00
dkrat7
8295e7a428 feat(legacy-plugin-chart-country-map): Add Slovenia map (#1054)
* Add slovenia.geojson

* Update countries.ts
2021-11-26 11:47:03 +08:00
maltoze
d1d1adfca6 chore(plugin-chart-table): add muted attribute of video tag to whitelist (#1051) 2021-11-26 11:47:03 +08:00
maltoze
cca4b74fd9 fix(plugin-chart-echarts): fix unnecessary highlight (#1052)
* fix(plugin-chart-echarts): fix unnecessary highlight

* simplify code

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
2021-11-26 11:47:03 +08:00
simcha90
1dc7538877 refactor(native-filters): Update dataMask structure (#1040)
* refactor: change own state

* refactor: change own state

* refactor: update TS for extra form data

* refactor: usage ownState in charts

* refactor: update dataMask (final)

* lint: update TS

* lint: update TS

* refactor: update table setDataMaskHook

* docs: fix comment
2021-11-26 11:47:03 +08:00
Jesse Yang
822ed0c978 chore: publish v0.17.31 2021-11-26 11:47:03 +08:00
Jesse Yang
93b259a9da chore(legacy-plugin-chart-country-map): clean up dead code
This override will not work because superset controls always use
value from formData/explore state.
2021-11-26 11:47:03 +08:00
Jesse Yang
cbaec13962 fix(legacy-plugin-chart-country-map): higher quality geojson and re-arrange controls (#1045) 2021-11-26 11:47:02 +08:00
Ville Brofeldt
6e01a25e35 chore: publish v0.17.30 2021-11-26 11:47:02 +08:00
Ville Brofeldt
5b8f9efa22 fix(legacy-preset-chart-nvd3): fix tokenizer input type (#1049) 2021-11-26 11:47:02 +08:00
Ville Brofeldt
ed87d473ee fix(plugin-chart-echarts): default to standard x-axis format (#1043) 2021-11-26 11:47:02 +08:00
Ville Brofeldt
637793342c fix(plugin-chart-echarts): add series deduplication (#1046)
* fix(plugin-chart-echarts): add series deduplication

* refactor function
2021-11-26 11:47:02 +08:00
Ville Brofeldt
53df21d723 fix(plugin-chart-echarts): fix unnecessary chart clearing (#1044) 2021-11-26 11:47:02 +08:00
Ville Brofeldt
a0d60c066d fix(plugin-chart-table): fix empty metrics (#1047) 2021-11-26 11:47:02 +08:00
Kamil Gabryjelski
fcd11cde42 feat(plugin-chart-table): enable emitting cross-filters (#1041)
* feat(plugin-chart-table): enable emitting cross-filters

* Hide filters checkbox when cross filters flag is disabled
2021-11-26 11:47:02 +08:00
krsnik93
9070ac954e feat: echarts gauge chart (#993)
* feat: echarts gauge chart

* remove unused legend imports

* move font size multipliers to constants

* add tests

* rename roundcap

* add modulo on color picking to wrap around the color scheme

Co-authored-by: Ivan Krsnik <ivan.krsnik@unipart.io>
2021-11-26 11:47:02 +08:00
Ville Brofeldt
7019e0a098 chore: publish v0.17.29 2021-11-26 11:47:02 +08:00
simcha90
05bd319e27 feat(native-filters): add AppSection type (#1038)
* feat: add place type

* refactor: fix CR notes

* docs: update comments

* fix: fix CR notes
2021-11-26 11:47:01 +08:00
Lily Kuang
803fd44dac feat(feature-flag): add ALERTS_ATTACH_REPORTS feature flag (#1042)
* add alert/report ALERTS_ATTACH_REPORTS feature flag

* fix lint
2021-11-26 11:47:01 +08:00
Kamil Gabryjelski
f4eeebf368 feat(plugin-chart-table): Implement showing totals (#1034)
* feat(plugin-chart-table): implement totals row

* Fix typo

* Fix totals with percentage metrics

* Code review fixes

* Use dnd with percentage metrics and sortby controls

* Make totals checkbox tooltip more descriptive

* Remove console.log

* Change totals tooltip

* Fix typing error

* Use array destructuring

* Fix typo
2021-11-26 11:47:01 +08:00
Jesse Yang
62906906a5 chore: publish v0.17.28 2021-11-26 11:47:01 +08:00
Jesse Yang
79d561d67a fix(plugin-chart-table): add text align to table header (#1039) 2021-11-26 11:47:01 +08:00
Ville Brofeldt
dfd2fda687 chore: publish v0.17.27 2021-11-26 11:47:01 +08:00
Amit Miran
e71d929034 feat: extra_jwt support to be used in dashboard_rbac (#1021)
* feat: extra_jwt support to be used in dashboard_rbac for BE validation of data-access based on dashboard access

* test: extra_jwt existence

* chore: extra_jwt in BaseFormData

* fix: add missing ff to enum

* fix: missing :

* chore: add extra_jwt to QueryContext

* Update QueryFormData.ts

* Update buildQueryContext.ts

* Update buildQueryContext.test.ts

* fix: text

* Update Query.ts

* Update QueryFormData.ts
2021-11-26 11:47:01 +08:00
Jesse Yang
943348b8bf chore: publish v0.17.26 2021-11-26 11:47:01 +08:00
Jesse Yang
6f3f377b43 fix(chart-controls): transform emotion css prop (#1036) 2021-11-26 11:47:01 +08:00
Jesse Yang
9b94f14416 chore: publish v0.17.25 2021-11-26 11:47:01 +08:00
Jesse Yang
cd5a95763d fix(chart-controls): export/import DTTM_ALIAS properly (#1035) 2021-11-26 11:47:00 +08:00