Commit Graph

459 Commits

Author SHA1 Message Date
Ville Brofeldt c53c3aa23d
chore(superset-ui-chart-controls): refactor pivot and rename operator (#22963) 2023-02-02 17:16:07 +02:00
Kamil Gabryjelski ed7b3533bc
fix(explore): Time comparison in Mixed Chart in GENERIC_CHART_AXES not working (#22945) 2023-02-02 14:06:30 +01:00
Michael S. Molina 30abefb519
feat: Adds the ECharts Sunburst chart (#22833) 2023-01-31 11:39:18 -05:00
Artem Shumeiko c839d0daf5
chore: Localization of superset pt. 2 (#22772) 2023-01-30 09:20:43 -07:00
dependabot[bot] 7bd2afd724
build(deps): bump underscore from 1.12.0 to 1.12.1 in /superset-frontend (#22892)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-27 16:10:24 -07:00
Evan Rusackas 6998f65e1d
chore: removing unnecessary double spaces, a.k.a. "shotgun holes" (#22852) 2023-01-26 11:48:41 -07:00
Lily Kuang 2400179fb0
chore: migrate react-diff-viewer to react-diff-viewer-continued for react 18 upgrade (#22834) 2023-01-26 09:01:31 -08:00
Geido 9ed2326a20
feat: Move cross filters to Dashboard (#22785) 2023-01-25 18:01:06 +01:00
Yash Mehta aca2f1b201
chore: adding missing examples in the gallery for some chart types (#22766) 2023-01-18 10:16:40 -07:00
Stephen Liu b53941fb3e
feat(plugin-chart-echarts): supports sunburst chart v2 [WIP] (#21625)
Co-authored-by: Michael S. Molina <michael.s.molina@gmail.com>
2023-01-16 16:10:28 -05:00
Lily Kuang 397a984f09
chore(superset-ui): bump superset-ui-chart-controls and plugin-chart-handlebars back to version 0.18.25 (#22694) 2023-01-12 10:04:26 +02:00
Artem Shumeiko f3696ceef3
chore: Localization of several charts and elements (#22150)
Co-authored-by: ashumeiko <ashumeiko@ashumeiko.com>
2023-01-11 09:42:54 -07:00
wilfred-wulbou b3529479ab
feat(chart): Added Papua New Guinea to countries map (#22589) 2023-01-05 15:52:27 +02:00
Yash Mehta 6e4d6e599b
chore: adding missing examples in the gallery for several chart types (#22597) 2023-01-05 11:43:32 +02:00
Lily Kuang 40dba06094
chore: upgrade react-ace (#22573) 2023-01-04 09:16:01 -08:00
Yash Mehta 839ec7ceac
fix: adding missing examples for bubble chart, bullet chart, calendar heatmap chart and country map chart in the gallery (#22523) 2022-12-31 10:26:54 +00:00
John Bodley 9e81c3a119
feat: update time comparison choices (again) (#22458) 2022-12-24 10:13:35 +13:00
Cody Leff 7f4e522f1a
chore(viz): Rename legacy non-time-series Bar Chart (#22430) 2022-12-20 10:08:30 -05:00
Reese 2679ee2e46
fix(chart-table): Scrollbar causing header + footer overflow (#21064) 2022-12-15 22:25:20 -07:00
Michael S. Molina bb318cb137
fix: Allow empty CSS in Handlebars (#22422) 2022-12-14 18:41:06 -05:00
Geido ebaa94974b
fix: Force configuration for SafeMarkdown component in Handlebars (#22417) 2022-12-14 16:23:34 -05:00
Ville Brofeldt 6b4ab8a03c
chore(plugin-chart-echarts): upgrade to echarts 5.4.1 (#22382)
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
2022-12-10 13:38:54 +02:00
Ville Brofeldt 012d1300c1
chore(viz): rename v1 and v2 charts (#22369) 2022-12-09 22:51:37 +02:00
Ville Brofeldt b1f8fd4f64
chore(superset-ui): remove deprecated fields from QueryObject (#22272) 2022-11-30 15:54:11 +02:00
Yongjie Zhao 22fab5e58c
feat: Axis sort in the Bar Chart V2 (#21993) 2022-11-26 22:06:26 +08:00
maleksan 9578a443ef
feat(chart): Added Latvia to countries map (#22220) 2022-11-25 13:37:29 +02:00
Ville Brofeldt 2e650eaebe
fix(plugin-chart-echarts): tooltip overflow bug (#22218)
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
2022-11-24 14:11:01 +02:00
Michael S. Molina 3bc0865d90
fix: Drill to detail blocked by tooltip (#22082)
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
2022-11-23 21:50:06 +02:00
Michael S. Molina 9a2cb431ce
fix: Adds time grain to Pivot Table v2 (#22170) 2022-11-20 10:20:01 -05:00
Michael S. Molina 824dc7188b
fix: Right click on country map with code filter (#22081) 2022-11-14 08:52:31 -05:00
Yongjie Zhao 5b67e0712d
refactor: update documents and rename variables (#22074) 2022-11-11 18:04:56 +08:00
Cody Leff 4cbd70db34
fix: Revert shared controls typing change. (#22014) 2022-11-03 11:58:38 +08:00
Yongjie Zhao a9b229dd1d
feat: support mulitple temporal filters in AdhocFilter and move the Time Section away (#21767) 2022-11-02 08:21:17 +08:00
Ville Brofeldt f5977caf44
chore(plugin-chart-echarts): bump ECharts to 5.4.0 (#21916) 2022-10-24 17:09:24 +03:00
Cody Leff 76e57ec651
feat(dashboard): menu improvements, fallback support for Drill to Detail (#21351) 2022-10-19 18:34:46 -03:00
Yongjie Zhao 9aa804e070
fix: categorical x-axis can't apply the label of column (#21869) 2022-10-19 18:47:02 +08:00
Yongjie Zhao 0a4ecca9f2
fix: custom SQL in the XAxis (#21847) 2022-10-19 11:40:52 +08:00
Andrew df7840c041
chore: Added translate functions (#21816) 2022-10-19 09:54:16 +08:00
Yongjie Zhao f38115489b
fix: drilling on the categorical xaxis on the mixed chart (#21845) 2022-10-19 09:08:28 +08:00
Yongjie Zhao f41d0b0cbf
fix: drilling on the categorical xaxis on the stacked barchart v2 (#21844) 2022-10-18 19:47:53 +08:00
Geido 383dc29ad1
fix: Allow comma in Number Format (#21817) 2022-10-18 14:28:07 +03:00
Yongjie Zhao 8f61e3c5d9
refactor: preparation for time section migration (#21766) 2022-10-12 08:38:30 +08:00
Stephen Liu db075d4157
chore(deps): bump react-map-gl from 4.0.10 to 6.1.19 (#21748) 2022-10-11 14:47:25 +08:00
Michael S. Molina 0ff1e49e3c
fix: Null values on Treemap right-click (#21722) 2022-10-07 08:08:10 -03:00
Michael S. Molina eb2a1345a8
fix: Drill to detail formatted val on TableChart (#21719) 2022-10-06 14:45:09 -03:00
Michael S. Molina 770f68f5b1
fix: Right-click on misconfigured World Map (#21697) 2022-10-06 08:23:40 -03:00
Evan Rusackas 4245bc3f38
chore(style): Enforce optional chaining (#21614) 2022-10-03 09:17:20 -06:00
Stephen Liu 61bd696226
fix(plugin-chart-echarts): boxplot throw error in the dashboard (#21661) 2022-10-01 08:53:29 +08:00
Bryan Thomas f83af88fc7
feat: Added latin america countries to country map (#21352) 2022-09-30 12:47:01 +03:00
Yongjie Zhao 9dd102f383
refactor: remove useless groupby from QueryObject (#21643) 2022-09-30 11:53:54 +08:00
Stephen Liu ab53d77aba
fix(dashboard): fix Pivot Table V2 dragPreview in the dashboard (#21539) 2022-09-28 22:10:38 +08:00
Mayur 60bab4269f
fix(table-chart): don't color empty cells in table chart with color formatters (#21501) 2022-09-28 16:16:12 +08:00
Yongjie Zhao 93f08e778b
feat: explicit distribute columns on BoxPlot and apply time grain (#21593) 2022-09-28 15:32:35 +08:00
Yongjie Zhao f4646f8edb
feat: adding XAxis to BigNumberTrend (#21577) 2022-09-26 20:14:17 +08:00
Yongjie Zhao d67b04683c
feat: support multiple columns with time grain in Table Chart (#21547) 2022-09-23 16:08:35 +08:00
Yongjie Zhao e671d80209
feat: support multiple time columns with time grain in Pivot Table v2 (#21537) 2022-09-22 21:56:10 +08:00
LiuBodong c66205feac
fix: pie chart orientation description error (#21514)
Co-authored-by: Stephen Liu <750188453@qq.com>
2022-09-21 21:44:29 +08:00
Yongjie Zhao 4d12e3709e
feat: generate consistent QueryObject whether GenericAxis is enabled or disabled (#21519) 2022-09-21 09:41:21 +08:00
Evan Rusackas 135909f814
feat: Making bar graphs in Table viz from fixed-size divs instead of calculated gradients (#21482) 2022-09-20 07:36:36 -06:00
Stephen Liu 94a724e49b
perf(word-cloud): reduce render to improve performance (#21504) 2022-09-19 20:08:36 +08:00
Yongjie Zhao 2d16100dbc
refactor: get Axis from a helper function (#21449) 2022-09-16 15:57:45 +08:00
Stephen Liu 1c0bff3dfb
fix: revert #21356(able to sort bar on the bar chart V2) (#21481) 2022-09-16 09:06:12 +08:00
Cody Leff 2285ebe72e
fix(explore): Prevent shared controls from checking feature flags outside React render (#21315) 2022-09-14 20:41:47 +02:00
Stephen Liu 59437ea6e7
feat(plugin-chart-echarts): able to sort bar on the bar chart V2 (#21356) 2022-09-13 23:09:09 +08:00
Yongjie Zhao b80f659101
fix(big number): time grain control is useless in BigNumber Viz (#21372) 2022-09-08 21:43:26 +08:00
Yongjie Zhao ce3d38d2e7
feat: apply Time Grain to X-Axis column (#21163) 2022-09-07 16:24:15 +08:00
Stephen Liu 79525dfaf2
feat(explore): standardized controls for time pivot chart (#21321) 2022-09-04 09:38:53 +08:00
Ville Brofeldt 1aeb8fd6b7
fix(plugin-chart-echarts): show zero value in tooltip (#21296)
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
2022-09-01 20:27:41 +03:00
Kamil Gabryjelski c3a00d43d0
fix(explore): Time column label not formatted when GENERIC_X_AXES enabled (#21294) 2022-09-01 18:07:49 +02:00
Alex Lauderbaugh 994f327157
chore: Renaming Line Chart to Line Chart v2 (#21278) 2022-09-01 08:16:55 +02:00
Geido f017f98b88
chore: E2E tests for the Drill to detail modal (#21187)
* Add example ECharts Dashboard

* [WIP] E2E test

* Add echarts interactions

* Lint

* DRY
2022-08-29 11:25:27 +03:00
Michael S. Molina d41f44fcdf
fix: World Map right-click value (#21209) 2022-08-26 15:08:24 -03:00
Michael S. Molina 68fa4d2665
feat: Adds drill to detail context menu to Table (#21168)
* feat: Adds drill to detail context menu to Table

* Improves context menu positioning

* Fixes Pivot Table typying
2022-08-26 13:35:26 -03:00
Michael S. Molina 859b6d2d20
feat: Adds drill to detail context menu to Pivot Table (#21198)
* feat: Adds drill to detail context menu to Pivot Table

* Adds useCallback
2022-08-26 08:23:26 -03:00
Michael S. Molina 1143e17742
fix: Typing of labelMap (#21181)
* fix: Typing of labelMap

* Adjusts val types
2022-08-26 08:22:57 -03:00
Michael S. Molina 4ca4a5c7cb
feat: Adds drill to detail context menu to World Map (#21150) 2022-08-23 10:24:55 -03:00
Michael S. Molina 0bf4e56dc3
fix: Drill to detail on values with comma (#21151) 2022-08-22 13:52:39 -03:00
Antonio Rivero Martinez bdcc0a9bcf
fix(charts): Hide Values greater than Max Y Axis Bound on Mixed Time Series with Bar series (#21015)
* Mixed TimeSeries:

- When Bar chart is used as serie type, we need to hide values that are greater than the max Y Axis Bound.

* Mixed Time Series:

- Simplify logic for getOverMaxHiddenFormatter

* Mixed Time Series:

- Add tests for new getOverMaxHiddenFormatter util func
2022-08-22 08:55:09 -06:00
Stephen Liu e70699fb43
fix(plugin-chart-handlebars): order by control not work (#21005) 2022-08-22 15:00:34 +08:00
Stephen Liu b303d1e156
fix(plugin-chart-echarts): gauge chart enhancements and fixes (#21007)
* fix(plugin-chart-echarts): gauge chart enhancements and fixes

* fix lint
2022-08-16 07:54:17 -06:00
JUST.in DO IT 2d1ba46844
fix(plugin-chart-echarts): missing value format in mixed timeseries (#21044) 2022-08-11 12:33:59 -07:00
JUST.in DO IT a8ba544e60
fix(plugin-chart-echarts): invalid total label location for negative values in stacked bar chart (#21032) 2022-08-11 11:28:18 -07:00
Michael S. Molina 3df8335f87
feat: Adds drill to detail context menu for ECharts visualizations (#20891)
* feat: Adds drill to detail context menu for ECharts visualizations

* Rebases and adds time grain

* Fixes selected gauge values

* Fixes Treemap edge click

* Adds right click to big number trendline

* Address some comments
2022-08-09 17:02:31 -03:00
JUST.in DO IT 9114175db2
fix(plugin-echart-timeseries: legend trancated on show extra controls (#21017) 2022-08-09 16:12:00 +08:00
Antonio Rivero Martinez aa53c10312
Big Number Viz: (#20946)
- When the value is zero we still render the percent change and suffix if present
2022-08-03 23:12:56 +08:00
Stephen Liu 7beda3bbdb
chore: change Sort-by and Sort-Descending controls for Bar Chart v2 (#20868) 2022-08-02 14:36:21 -06:00
Antonio Rivero Martinez 9362e27ce2
fix(chart): Time Series set showMaxLabel as null for time xAxis (#20627)
* Time Series Chart:

-Apache echarts has this option as false by default for time axis, so we need to override it for our charts so it's uto determined and not fixed to hidden.
- Add AxisType enum so we stop comparing agains raw strings when checking xAxis type

* Time Series Chart:

- set the showMaxLabel option directly without using merge

* Time Series Chart:

 - Rename the property to showMaxLabel as it was originally
2022-08-02 14:35:41 -06:00
Diego Medina fe581a3640
fix: adjust timeseries grid right offset to match the rest (#20933) 2022-08-02 14:19:49 -06:00
Just[in]Do it! 3f124d9d67
fix(plugin-chart-pivot-table): Invalid Formats Date Fields (#20909)
When a custom date field value converted in a string format, some aggregators truncated to the first four digits.
 This is caused by the parseFloat function which converts to first matched number rather than NaN(Not-A-Number) value.
 This commit replaces the parseFloat by Number wrapper to handle this case correctly.
2022-07-28 22:56:08 -07:00
Antonio Rivero Martinez 234c44626d
TableChart: (#20833)
- Handle resize properly when only the scrollbar is changing so it doesn't get stuck into an infinite loop.
2022-07-27 12:32:34 -06:00
Diego Medina 5d107b86ab
fix: explore warnings cleanup (#20864) 2022-07-26 13:28:50 +08:00
Stephen Liu 9bf7ed58cd
fix(plugin-chart-echarts): bar chart overflow (#20805) 2022-07-23 14:20:00 +08:00
rizacavus 4ffa3c22d1
feat: Add Türkiye Map to Country Map (#20801) 2022-07-23 08:33:56 +08:00
Diego Medina 51869f32ac
Temporal X Axis values are not properly displayed if the time column has a custom label defined (#20819) 2022-07-22 17:05:37 +08:00
Evan Rusackas fe9eb58ede
chore: bumps the handlebars plugin package version to match the family. (#20813) 2022-07-22 15:18:45 +08:00
Diego Medina 279ab954b1
fix: chart empty state & result panel when multiple queries are executed display incorrectly (#20816) 2022-07-22 14:58:42 +08:00
Stephen Liu d90b973235
fix(plugin-chart-echarts): layout broken when resizing (#20783)
* fix(plugin-chart-echarts): layout broken when resizing

* use useLayoutEffect
2022-07-20 09:40:39 -06:00
Stephen Liu d925b0c883
fix(heatmap): add detail descriptions for heatmap 'normalize across' (#20566)
* fix(heatmap): change 'Normalize Across' to 'Color Based On' and add some label

* Update superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* fix lint

Co-authored-by: Evan Rusackas <evan@preset.io>
2022-07-20 09:39:22 -06:00
Cody Leff 84d4302628
fix(explore): Fix chart standalone URL for report/thumbnail generation (#20673)
* Update explore URLs.

* More URL fixes.

* Make frontend accept true/false query params case-insensitively.

* Fix URL mistake.

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
2022-07-19 13:53:55 -03:00
Stephen Liu acdb271422
fix(line-chart): Formula Annotations on Line Charts are broken (#20687) 2022-07-13 16:42:11 +08:00
Stephen Liu bd6037ef50
fix(treemap-v2): color scheme not work when there is only one dimension (#20671) 2022-07-13 16:06:44 +08:00
Yongjie Zhao 7f918a4ec0
fix: annotation broken (#20651)
* fix: annotation broken

* fix UT

* add annotation data to mixed timeseries chart
2022-07-11 16:23:57 -06:00
AAfghahi 0ce0c6e1eb
chore: removing Druid from front- and back- end (#20338)
* first pass at removing native Druid nosql

* removing having_druid

* addressing comments, linting

* fixed all tests

* addressing comments

* redirected to ui-core TimeGranularity type

* query form metric linting

* fixed broken chart type

* implementing feedback
2022-07-08 17:57:03 +02:00
Evan Rusackas 9856d88c03
feat(handlebars plugin): adding handlebars helpers for common math operations (#20648)
* feat(plugin-chart-handlebars): add common helpers

* add import

* add declare module

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2022-07-08 08:10:29 -06:00
stevetracvc 7e504ff680
feat: truncate long values in table viz, a per-column setting (#19383)
* feat: truncate long values, a per-column setting

* fix: lint

* fix: removed width for column control

* fix: removed truncate option for time, bool, and numeric columns

* prevent extra div if not truncating
2022-07-06 22:16:48 -06:00
Diego Medina ac01a1b02f
chore: Set table viz default row limit to 1000 (#20475) 2022-07-06 22:09:23 -06:00
Yongjie Zhao 59491f5396
chore: rename drop missing columns to show empty columns (#20602) 2022-07-05 16:09:16 +08:00
Stephen Liu c0a00fd302
feat(deck.gl): add color range for deck.gl 3D (#19520) 2022-07-04 11:54:04 +08:00
Yongjie Zhao b870a21eaa
refactor: remove unused flatten function (#20582) 2022-07-01 19:17:55 +08:00
Yongjie Zhao 290b89c7b4
feat: apply standardized form data to deckgl (#20579) 2022-07-01 14:51:59 +08:00
Evan Rusackas f5f8ddec3e
Revert "feat(plugin-chart-echarts): Support stacking negative and positive values (#20408)" (#20571)
This reverts commit c959d92dd1.
2022-06-30 13:52:43 -06:00
Stephen Liu 24a53c38c6
fix(big-number): big number gets cut off on a Dashboard (#20488) 2022-06-30 16:19:38 +08:00
Yongjie Zhao de524bc59f
feat: apply standardized form data to tier 2 charts (#20530) 2022-06-29 16:27:31 +08:00
Yongjie Zhao 927d066f70
chore: move isAdhocColumn from controls to core (#20529)
* chore: move isAdhocColumn to superset-ui/core

* ut
2022-06-29 13:09:44 +08:00
Kamil Gabryjelski e12ee59b13
feat(explore): Apply denormalization to tier 2 charts form data (#20524)
* feat(explore): Denormalize form data in Calendar Heatmap

* feat(explore): Denormalize form data in Bubble

* feat(explore): Denormalize form data in Chord

* Dimensions -> Dimension for single selection

* feat(explore): Denormalize form data in Country Map

* feat(explore): Denormalize form data in Heatmap

* feat(explore): Denormalize form data in Histogram

* feat(explore): Denormalize form data in Handlebars

* feat(explore): Denormalize form data in Percent Change

* Use new standardized form data interface
2022-06-28 20:21:36 +02:00
Yongjie Zhao c348a095b9
refactor(standardized form data): refine interface and improve code smells (#20518) 2022-06-28 21:09:42 +08:00
Yongjie Zhao bbbe102887
feat(standardized form data): keep all columns and metrics (#20377) 2022-06-24 21:46:25 +08:00
stevetracvc a45d011e74
fix: issue with sorting by multiple columns in a table (#19920)
Recent commit to sort alphanumeric columns via case insensitive
comparison broke the multi-column sort option. React-table only sorts
by the second (or third...) column if the first column matches.
Since the alphanumeric sort only returned -1 or 1, it never would move
to the subsequent columns when the earlier column values matched.
2022-06-23 08:39:46 -03:00
smileydev 1ae935379f
fix(chart & table): make to prevent dates from wrapping (#20384) 2022-06-21 09:58:50 -03:00
Diego Medina 93774d1860
fix: table viz sort icon bottom aligned (#20447) 2022-06-21 09:10:37 -03:00
Yongjie Zhao c79b0d62d0
refactor: create echarts query section (#20445) 2022-06-21 11:38:07 +08:00
Yongjie Zhao 111affdb02
chore: move xaxis to superset-ui (#20438) 2022-06-20 22:36:27 +08:00
Stephen Liu b32288fddf
fix(bar-chart-v2): remove marker from bar chart V2 (#20409) 2022-06-17 10:52:26 +08:00
Kamil Gabryjelski c959d92dd1
feat(plugin-chart-echarts): Support stacking negative and positive values (#20408) 2022-06-16 13:58:58 +02:00
Yongjie Zhao 0a50a9b380
feat: setting limit value when Pie chart switches (#20392) 2022-06-15 21:49:00 +08:00
Yongjie Zhao 7c252d7524
feat: adding truncate metric control on timeseries charts (#20373) 2022-06-15 20:55:10 +08:00
Kamil Gabryjelski 354a89950c
feat(explore): Denormalize form data in echarts, world map and nvd3 bar and line charts (#20313)
* feat(explore): Apply denormalize form data function to echarts and world map

* Denormalize form data in mixed timeseries

* Add dist bar chart
2022-06-09 11:54:09 +02:00
Stephen Liu eab0009101
feat(plugin-chart-echarts): [feature-parity] support extra control for the area chart V2 (#16493)
* feat(echarts): [feature-parity] support extra control

* add extra control for plugin

* refactor: extract ExtraControl

* fix: lint

* fix some problems
2022-06-09 00:59:10 +08:00
Stephen Liu 9f02ff656d
fix(plugin-chart-echarts): [feature-parity] apply button of annotation layer doesn't work as expected (#19761)
* fix(plugin-chart-echarts): [feature-parity] apply button of annotation layer does't work

* fix: lint

* fix: test
2022-06-08 17:06:24 +08:00
Lyndsi Kay Williams ba0c37d3df
feat(explore): Frontend implementation of dataset creation from infobox (#19855)
* Frontend implementation of create dataset from infobox

* Fixed sl_dataset type

* Fix test

* Fixed sl_dataset type (forgot to save)

* RTL testing

* Adjusted styling/text on infobox and save dataset modal

* Appease lint

* Make infobox invisible and fix tests

* Remove unnecessary placeholder

* Move types to sql lab

* Moved logic into save dataset modal

* Change DatasourceMeta type to Dataset

* Add ExploreDatasource union type to save dataset modal

* Get user info from redux inside save dataset modal

* Addressed comments

* Adjusting to new query type

* Fixed save dataset in explore and union type

* Added testing

* Defined d for queries

* Remove dataset from SaveDatasetModal

* Clarify useSelector parameter

* Fix dndControls union type

* Fix shared-controls union type

* Fix controlPanel union type

* Move ExploreRootState to explore type file

* Remove unnecessary testing playground

* Move datasource type check in DatasourcePanel to a function

* Make all sqllab Query imports reference @superset-ui/core Query type

* Deconstruct query props in ResultSet

* Fix union type in /legacy-plugin-chart-heatmap/src/controlPanel

* Change SaveDatasetModal tests to RTL

* Cleaned datasourceTypeCheck

* Fix infobox styling

* Fix SaveDatasetModal test

* Fix query fixture in sqllab and Query type in SaveDatasetModal test

* Fix Query type and make test query fixture

* Added columns to Query type, separated results property, created QueryResponse union type, and fixed all types affected

* Fixed a couple missed broken types

* Added ExploreDatasource to SqlLab type file

* Removed unneeded Query import from DatasourcePanel

* Address PR comments

* Fix columnChoices

* Fix all incorrect column property checks

* Fix logic on dndGroupByControl

* Dry up savedMetrics type check

* Fixed TIME_COLUMN_OPTION

* Dried savedMetrics type check even further

* Change savedMetricsTypeCheck to defineSavedMetrics

* Change datasourceTypeCheck to isValidDatasourceType

* Fix Query path in groupByControl

* dnd_granularity_sqla now sorts Query types with is_dttm at the top

* Fixed/cleaned query sort

* Add sortedQueryColumns and proper optional chaining to granularity_sqla

* Move testQuery to core-ui, add test coverage for Queries in columnChoices

* Moved DEFAULT_METRICS to core-ui and wrote a test for defineSavedMetrics

* Add license and clean dataset test object

* Change DatasourceType.Dataset to dataset
2022-06-07 15:03:45 -05:00
Yongjie Zhao 7faf874c1b
feat: derived metrics use different line style (#20242) 2022-06-05 21:17:31 +08:00
Yongjie Zhao dd4b581fb5
feat: standardized form_data (#20010) 2022-06-05 21:05:01 +08:00
Stephen Liu 766f737728
feat(world-map): support color by metric or country column (#19881)
* feat(world-map): support color by metric or country column

* fix lint

* Update superset-frontend/packages/superset-ui-chart-controls/src/shared-controls/components/RadioButtonControl.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/plugins/legacy-plugin-chart-world-map/src/controlPanel.ts

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/plugins/legacy-plugin-chart-world-map/src/controlPanel.ts

Co-authored-by: Evan Rusackas <evan@preset.io>

* fix lint

Co-authored-by: Evan Rusackas <evan@preset.io>
2022-06-03 21:31:22 +08:00
Stephen Liu 9646591d24
fix(legacy-plugin-chart-sunburst): linear color scheme not work when secondary metric is provided (#20221) 2022-05-31 23:37:24 +08:00
stevetracvc 7e9b85f76c
feat: add drag and drop column rearrangement for table viz (#19381) 2022-05-24 19:10:57 -07:00
Diego Medina 22b7496d2e
fix: string aggregation is incorrect in PivotTableV2 (#19102)
* fix: string aggregation is incorrect in PivotTableV2

* cleanup

* fix

* updates
2022-05-23 12:39:18 -06:00
Yongjie Zhao d7e3ac306f
chore: filter undefined operators (#20157) 2022-05-23 18:24:32 +08:00
smileydev 56e96950c1
fix(chart & heatmap): make to fix that y label is rendering out of bounds (#20011) 2022-05-20 12:54:42 -06:00
Ville Brofeldt d5c5e58583
feat(plugin-chart-echarts): add support for generic axis to mixed chart (#20097)
* feat(plugin-chart-echarts): add support for generic axis to mixed chart

* fix tests + add new tests

* address review comments

* simplify control panel

* fix types and tests
2022-05-19 13:51:52 +03:00
Ville Brofeldt 0b3d3dd4ca
fix(generic-chart-axes): set x-axis if unset and ff is enabled (#20107)
* fix(generic-chart-axes): set x-axis if unset and ff is enabled

* simplify

* simplify

* continue cleanup

* yet more cleanup
2022-05-19 13:21:25 +03:00
Geido 1fe30f1f0e
Add tnum property to tables (#20093) 2022-05-18 16:26:29 +02:00
Stephen Liu 9854d2d0e8
feat(plugin-chart-echarts): support horizontal bar chart (#19918)
* feat(plugin-chart-echarts): support horizontal bar chart

* Update superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/Regular/Bar/controlPanel.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts

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

* Update superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts

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

* Update superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/Regular/Bar/controlPanel.tsx

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

* improve controlpanel

* default value

* fix ut

Co-authored-by: Evan Rusackas <evan@preset.io>
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
2022-05-16 21:48:36 +08:00
Ville Brofeldt d5802f7896
fix(generic-axes): apply contribution before flatten (#20077) 2022-05-16 16:26:31 +03:00
smileydev f43dbc0dfd
fix(chart & gallery): make to add mixed time-series into recommended charts (#20064) 2022-05-14 11:20:49 +08:00
Kamil Gabryjelski 0f68deedf1
perf(plugin-chart-table): Add memoization to avoid rerenders (#19976)
* perf(plugin-chart-table): Add memoization to avoid rerenders

* Fix typing
2022-05-13 18:10:48 +02:00
Stephen Liu 35e6e2709c
fix(plugin-chart-echarts): tooltip of big number truncated at then bottom (#20029) 2022-05-13 22:51:42 +08:00
Ville Brofeldt b53daa91ec
fix(plugin-chart-echarts): support adhoc x-axis (#20055)
* fix(plugin-chart-echarts): support adhoc x-axis

* simplify code
2022-05-13 16:29:51 +03:00
Michael S. Molina c4c714fffb
chore: Removes hard-coded colors from the plugins - iteration 2 (#20006)
* chore: Removes hard-coded colors from the plugins - iteration 2

* Fixes lint errors
2022-05-12 10:12:17 -03:00
Etienne Baratte 2e31021ecd
fix: fix word cloud randomness (#19977) 2022-05-11 22:56:09 +08:00
Michael S. Molina b7cff8335b
chore: Removes hard-coded colors from the plugins - iteration 1 (#19923)
* chore: Removes hard-coded colors from the plugins - iteration 1

* Fixes lint errors

* Fixes tests
2022-05-09 10:44:13 -03:00
Ville Brofeldt f144de4ee2
Revert "chore(deps): bump d3-svg-legend in /superset-frontend (#19846)" (#19972)
This reverts commit 528a9cd7c7.
2022-05-06 13:11:41 +03:00
smileydev 902ac05372
fix(chart & table): make to allow highlight in case of numeric column (#19938)
* fix(chart & table): make to allow highlight in case of numeric column

* fix(chart & table): make to use emitFilter directly

* fix(chart & table): make to use styled component instead of inline style
2022-05-04 14:20:57 -06:00
Michael S. Molina e9032e95ec
chore: Adds theme object to chart properties (#19951) 2022-05-04 09:55:22 -03:00
smileydev 7b3d0f040b
feat(chart & legend): make to enable show legend by default (#19927) 2022-05-02 14:37:11 -06:00
Stephen Liu 11562971fb
fix(plugin-chart-echarts): [feature parity] annotation line chart color not working (#19758) 2022-04-28 19:10:58 +03:00
Ville Brofeldt d5ea537b0e
fix(plugin-chart-handlebars): fix overflow, debounce and control reset (#19879)
* fix(plugin-chart-handlebars): fix overflow

* add debounce, fix reset controls

* fix deps

* remove redundant code

* improve examples

* add last missing resetOnHides

* fix test

* use isPlainObject
2022-04-28 16:38:23 +03:00
Geido ed1309e6bd
fix: Dates alignment in Table viz (#19668)
* Fix dates alignment

* Add package lock changes

* Update package-lock

* Clean up
2022-04-28 11:37:49 +02:00
Yongjie Zhao f5e9f0eb3b
feat: add Advanced Analytics into mixed time series chart (#19851) 2022-04-27 23:36:19 +08:00
Diego Medina d65b77ec7d
fix: deck.gl GeoJsonLayer Autozoom & fill/stroke options (#19778)
* fix: deck.gl GeoJsonLayer Autozoom & fill/stroke options

* fix package.json

* fix lint
2022-04-26 16:25:40 -06:00
dependabot[bot] 528a9cd7c7
chore(deps): bump d3-svg-legend in /superset-frontend (#19846)
Bumps [d3-svg-legend](https://github.com/susielu/d3-legend) from 1.13.0 to 2.25.6.
- [Release notes](https://github.com/susielu/d3-legend/releases)
- [Commits](https://github.com/susielu/d3-legend/compare/v1.13.0...v2.25.6)

---
updated-dependencies:
- dependency-name: d3-svg-legend
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-26 14:20:19 -06:00
Josh Soref bebb10e495
chore(frontend-tests): Spelling (#19853)
* spelling: against

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: been

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: charts

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: clicking

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: columns

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: duplicate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: especially

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: extensions

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: fields

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: filter

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: for

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: label

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: labeled

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: nativefilter

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: registry

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: render

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: resizable

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: response

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: successful

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: transform

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: unfortunately

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: until

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: virtual

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: wrapper

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-04-26 10:35:01 -07:00
Jeremy e632b82395
feat: Adds plugin-chart-handlebars (#17903)
* adds: plugin chart handlebars

* adds: handlebars plugin to main presets

* update: npm install

* chore: lint

* adds: dateFormat handlebars helper

* deletes: unused props

* chore: linting plugin-chart-handlebars

* docs: chart-plugin-handlebars

* adds: moment to peer deps

* update: use error handling

* update: inline config, adds renderTrigger

* update: inline config, adds renderTrigger

* camelCase controls

* (plugins-chart-handlebars) adds: missing props

Adds missing propeties in test formData

* (plugin-chart-handlebars) fixes test

* (plugin-handlebars-chart) use numbers for size

* (feature-handlebars-chart) fix viz_type

* (plugin-handlebars-chart) revert

revert the viz_type change. it was in the wrong place.

* fix test and add license headers

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2022-04-26 14:34:28 +03:00
Yongjie Zhao 108a2a4eaf
fix: lost renameOperator in mixed timeseries chart (#19802) 2022-04-21 15:20:09 +08:00
serenajiang 5e468f7a4c
fix(world-map): remove categorical color option (#19781) 2022-04-20 09:36:28 -07:00
Kamil Gabryjelski fcc8080ff3
fix(plugin-chart-table): Resetting controls when switching query mode (#19792) 2022-04-20 17:25:31 +02:00
Stephen Liu e3a54aa3c1
feat(explore): improve UI in the control panel (#19748)
* feat(explore): improve section header of control panel

* fix checkbox control color and radio button color
2022-04-20 15:06:33 +02:00
Yongjie Zhao 4f997cd9ac
chore: fix grammar error (#19740) 2022-04-20 21:02:14 +08:00
Yongjie Zhao 3c28cd4625
feat: add renameOperator (#19776) 2022-04-20 19:48:12 +08:00
Smart-Codi 94e06c2b6a
fix: Reset sorting bar issue in Barchart (#19371)
* fix: Reset sorting bar issue in Barchart

* improving performance

* fix lint error
2022-04-13 11:00:15 -06:00
Kamil Gabryjelski de9fb2109d
chore(explore): Change labels "Group by"/"Series" to "Dimensions" (#19647) 2022-04-13 15:16:03 +02:00
Stephen Liu 059cb4ec25
fix(plugin-chart-echarts): xAxis scale is not correct when setting quarter time grain (#19686) 2022-04-13 20:48:13 +08:00
Diego Medina 955413539b
fix: Table Autosizing Has Unnecessary Scroll Bars (#19628) 2022-04-11 15:20:41 -06:00
smileydev d8b9e72682
make to change the getBreakPoints of polygon chart (#19573) 2022-04-11 15:20:20 -06:00
Ville Brofeldt f21ba68a30
chore: clean up dynamic translation strings (#19641) 2022-04-11 13:02:20 +03:00
Stephen Liu a6bf041edd
feat(plugin-chart-echarts): add aggregate total for the Pie/Donuct chart (#19622) 2022-04-11 13:56:45 +08:00
Yongjie Zhao 761d5c4208
chore: cleanup as unknown conversion (#19587) 2022-04-08 17:32:29 +08:00
Michael S. Molina d511e4fbc4
refactor: Removes the CSS files from the Horizon plugin (#19562)
* refactor: Removes the CSS files from the Horizon plugin

* Removes the CSS file

* Uses font-size from the theme
2022-04-07 18:47:41 -03:00
Michael S. Molina f91f83d011
refactor: Removes the CSS files from the Paired T-Test plugin (#19563)
* refactor: Removes the CSS files from the Paired T Test plugin

* Adjusts some colors
2022-04-07 11:51:22 -03:00
Michael S. Molina 38fbca10e3
refactor: Removes the CSS files from the Parallel Coordinates plugin (#19539)
* refactor: Removes the CSS files from the Parallel Coordinates plugin

* Adds test

* Fixes indentation
2022-04-07 11:51:08 -03:00
Michael S. Molina 97850a80c8
refactor: Removes the CSS files from the Partition plugin (#19521)
* refactor: Removes the CSS files from the Partition plugin

* Fixes bullet

* Always use the color of the partitions
2022-04-07 11:50:51 -03:00
Michael S. Molina 06dee825a4
chore: Removes hard-coded colors from legacy-plugin-chart-sankey (#19493)
* chore: Removes hard-coded colors from legacy-plugin-chart-sankey

* Gets opacity from the theme
2022-04-07 11:50:31 -03:00
Geido e5bab00cb9
chore: Enhance ReactChord style with theme vars (#19517)
* Enhance style with theme vars

* Update superset-frontend/plugins/legacy-plugin-chart-chord/src/ReactChord.jsx

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
2022-04-07 15:17:40 +03:00
Smart-Codi f6d550b7fc
fix: weight tooltip issue (#19397)
* fix: weight tooltip issue

* remove console
2022-04-06 09:28:24 -06:00
Yongjie Zhao 2daa071633
fix: big number with trendline can't calculate cumsum (#19542) 2022-04-06 19:23:01 +08:00
Michael S. Molina c4baa826d5
refactor: Removes the CSS files from the Country Map plugin (#19538) 2022-04-06 07:39:16 -03:00
Michael S. Molina 356a03833b
chore: Removes hard-coded opacity and spacing from BigNumber (#19536) 2022-04-06 07:38:33 -03:00
Michael S. Molina 6fa99d6b07
refactor: Removes the CSS files from the Sankey Loop plugin (#19494)
* refactor: Removes the CSS files from the Sankey Loop plugin

* Gets opacity from the theme
2022-04-06 07:37:56 -03:00
Geido 2de5e6fac4
chore: Remove Legacy Force Directed viz plugin (#19492)
* Add theme vars

* Remove plugin
2022-04-06 11:51:51 +03:00
Roman Pridybailo cccec9a6ab
fix: Correct Ukraine map (#19528)
* Crimea

* Update ukraine.geojson

Co-authored-by: Roman Pridybailo <rp@vaix.ai>
2022-04-05 18:46:12 +03:00
Michael S. Molina 82a653f64b
refactor: Removes the CSS files from the Treemap plugin (#19486) 2022-04-04 13:46:46 -03:00
Michael S. Molina 47308024a3
refactor: Removes the CSS files from the Sunburst plugin (#19488) 2022-04-04 13:46:34 -03:00
Geido 4b922873ae
Add theme color (#19490) 2022-04-04 17:19:54 +03:00
Michael S. Molina 5fed10dae2
refactor: Removes the CSS files from the Rose plugin (#19473) 2022-04-01 13:13:43 -03:00
Michael S. Molina 7594a02d42
chore: Removes hard-coded colors from legacy-plugin-chart-world-map (#19466) 2022-04-01 13:13:33 -03:00
Michael S. Molina 8cd03181ac
refactor: Removes the CSS files from the DeckGL plugin (#19465) 2022-04-01 13:13:16 -03:00
Ville Brofeldt 11bf0d09cb
chore(plugin-chart-echarts): upgrade echarts 5.3.2 (#19481) 2022-04-01 13:05:03 +03:00
Michael S. Molina ac6b2f2d93
refactor: Removes the CSS files from the Heatmap plugin (#19417)
* refactor: Removes the CSS files from the Heatmap plugin

* Adds peer dependencies
2022-03-31 13:32:20 -03:00
Michael S. Molina 13467beb53
refactor: Removes the CSS files from the Calendar Heatmap plugin (#19436) 2022-03-31 13:31:20 -03:00
Michael S. Molina 31095a523d
chore: Removes plugin-chart-pivot-table hard-coded colors (#19439) 2022-03-31 13:30:36 -03:00
Michael S. Molina 47abad8673
chore: Removes hard-coded colors from legacy-preset-chart-nvd3 (#19443) 2022-03-31 13:29:54 -03:00
Stephen Liu 6f5778273e
chore: add type checking in plugin test directory (#19387) 2022-03-28 10:20:06 +08:00
Yongjie Zhao 375c03e084
feat(advanced analysis): support MultiIndex column in post processing stage (#19116) 2022-03-23 13:46:28 +08:00
Kamil Gabryjelski a8a48af7fa
chore: Make font-weights themable, fix font faces (#19236)
* fix(fonts): Import all necessary font packages

* Make html tags themable

* Set bold font weight to 600, add medium font weight to theme

* Replace hard coded font weights with theme variables

* Change some font weight light elements to normal

* Fix tests

* Fix bug in pivot table

* Address code review comments
2022-03-22 09:36:15 +01:00
Stephen Liu dc575080d7
feat: improve color consistency (save all labels) (#19038) 2022-03-21 15:20:04 +08:00
Stephen Liu 10eb6c77a4
chore: use order_desc shared control consistently (#19172) 2022-03-18 21:28:47 +08:00
Evan Rusackas 76b4a14d30
chore(config): Migrating `ENABLE_JAVASCRIPT_CONTROLS` from app config to a feature flag (#19113)
* first pass migrating config to ff

* nixing a console log from testing

* adding an entry to `UPDATING.md`

* linting 

* Adding ENABLE_JAVASCRIPT_CONTROLS to FEATURE_FLAGS.md

* no longer in need of state!

* Turning the flag back off

* linting... le sigh

* and more linting...
2022-03-14 08:54:02 -06:00
Jesse Yang ae13d8313b
feat(select): keep options order when in single mode (#19085) 2022-03-11 13:01:38 -08:00
smileydev c79ee56884
fix(plugin-chart-echarts): make to allow the custome of x & y axis title margin i… (#18947)
* fix(chartviz): make to allow the custome of x & y axis title margin in  chart

* fix(chartviz): add eslint radix error in chart.js

* fix(chartviz): change the transformProps in chart plugin & creat helper.

* fix(chartviz): lint fix & chart.js back

* fix(plugin-chart-echarts): make to allow the custom margin of X & y axis in BoxPlot & Mixedtimeseries charts

* fix(plugin-chart-echarts): make to change changeNumber to changeInteger

* fix(plugin-chart-echarts): make to add license & change file name
2022-03-10 12:59:07 +01:00
Smart-Codi bc6aad0a88
fix: Show Totals error with sort and group by together (#19072) 2022-03-09 21:35:29 -07:00
Diego Medina 0e0beceac1
fix: Pivot Table Conditional Formatting Doesn't Show All Options (#19071)
* fix: Pivot Table Conditional Formatting Doesn't Show All Options

* PR comments

* PR comments
2022-03-09 15:04:04 -07:00
Geido f53f86f796
Control sortby based on series limit (#18950) 2022-03-09 20:12:45 +02:00
Ville Brofeldt 1b7d056126
chore(plugin-chart-echarts): bump echarts 5.3.1 (#19041) 2022-03-07 14:29:16 +02:00
Stephen Liu c32eaf47e5
fix(big-number): Big Number with Trendline Chart is not working if Time Grain is set to Month (#19043)
* fix(big-number): Big Number with Trendline Chart is not working if Time Grain is set to Month

* use start frequency.
2022-03-07 11:29:34 +02:00
Ville Brofeldt 834686a3d9
bump and harmonize urijs and xss (#18922) 2022-03-01 18:38:29 +02:00
Stephen Liu c4e3c45b3c
fix(plugin-chart-echarts): fix customize margin (#18958) 2022-02-28 23:53:53 -07:00
Kamil Gabryjelski c56dc8eace
feat(legacy-preset-chart-deckgl): Add ,.1f and ,.2f value formats to deckgl charts (#18945)
* Add ,.1f and ,.2f value formats to deckgl charts

* Remove duplicated code
2022-02-28 14:07:55 +01:00
Stephen Liu 2cb3635256
fix(deck.gl): multiple layers map size is shrunk (#18939) 2022-02-25 18:26:49 +08:00
Geido a9a892945e
fix: Position of arrows in Table chart (#18739)
* Fix arrow position

* Improve position

* Add right position

* Improve styling
2022-02-22 15:42:05 +02:00
Stephen Liu c491829e99
chore: unify usages of nvd3 library (#18828) 2022-02-21 11:37:57 +01:00
Yongjie Zhao 987740aa8d
fix: contribution operator meets nan value (#18782) 2022-02-18 23:28:28 +08:00
Yann Jouanique 4f12e27c28
Adding OAF countries (#18745) 2022-02-16 16:45:11 -07:00
Holger Bruch 97d918b692
fix(deck.gl): update view state on property changes (#17720) (#17826)
* Update viewstate on property changes

* Compare props via isEqual
2022-02-11 13:19:42 +02:00
Adam Dobrawy 7c69a1bc60
chore: improve React import reference consistency (#18608) 2022-02-10 21:03:16 -08:00
Geido f565230d8d
fix(Explore): Force different color for same metrics in Mixed Time-Series (#18603)
* Force different color for same metrics

* Conform to chart labels suffix

* Simplify
2022-02-10 16:21:47 +02:00
Hoàng Minh Quân 28e729b835
fix(histogram): display correct percentile value instead of formula (#18084)
Co-authored-by: quanhm <quanhm@vng.com.vn>
2022-02-08 20:30:20 -08:00
Ville Brofeldt 2929bb1680
fix(plugin-chart-echarts): fix forecasts on verbose metrics (#18252)
* fix(plugin-chart-echarts): fix forecasts on verbose metrics

* oops! 🙊

* check for DTTM_ALIAS
2022-02-02 13:51:51 +02:00
Erik Ritter 7f3453f3ea
fix: Add mexico back to country map (#18219) 2022-01-28 13:04:53 -08:00
Ville Brofeldt cec4677971
fix(plugin-chart-echarts): use verbose x-axis name when defined (#18217) 2022-01-28 16:45:57 +02:00
Kamil Gabryjelski 37430d4044
fix(explore): Pie chart label formatting when series is temporal (#18216) 2022-01-28 15:14:40 +01:00
Ville Brofeldt dbe0a8b519
chore: bump echarts to 5.3.0 (#18162)
* chore: bump echarts to 5.3.0

* change to official 5.3.0 and reintroduce bold effect
2022-01-27 11:26:00 +02:00
Hammad-Raza 0cec0c9a68
feat(country-map): added new countries in country-chart-map (#18081) 2022-01-22 12:05:20 +08:00
Ville Brofeldt e9651ea52f
feat(plugin-chart-echarts): support non-timeseries x-axis (#17917)
* feat(plugin-chart-echarts): support non-timeseries x-axis

* fix tests

* change formula return type from Date to number

* add x_axis test coverage

* rename func and improve coverage

* add x-axis control to bar chart

* remove redundant console.log

* fix description

* make x-axis control mandatory

* 🙃

* fix x-axis formatter

* fix showValues

* fix implicit rDTTM_ALIAS references in postProcessing

* replace TIME_COLUMN with DTTM_ALIAS

* fix remaining implicit indexes

* fix: Disable filtering on wide result sets (#18021)

* fix: handle null values in time-series table (#18039)

* cleanup column_type_mappings (#17569)

Signed-off-by: Đặng Minh Dũng <dungdm93@live.com>

* important change to MakeFile (#18037)

* add missing is_timeseries to pivot op

Co-authored-by: Erik Ritter <erik.ritter@airbnb.com>
Co-authored-by: Grace Guo <grace.guo@airbnb.com>
Co-authored-by: Đặng Minh Dũng <dungdm93@live.com>
Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com>
2022-01-21 21:23:23 +02:00
Ville Brofeldt de8a1fa9c6
chore(plugin-chart-echarts): add types to controls (#18059) 2022-01-16 14:21:47 +02:00
Corbin Robb 6bd4dd257a
feat(timeseries-chart): add percentage threshold input control (#17758)
* feat(timeseries-chart): add percentage threshold control for stack series labels

* feat: move threshold vlues to an array

* add tests for showValue, onlyTotal, and percentThreshold

* feat: add another test

* revert ChartProps typesetting, fix misnamed variable on form data type, and other minor changes

* fix percentage threshold push equation

* fix percentage threshold push equation in tests

* change default on control to match form

* attempt fix form defaults import

Co-authored-by: Corbin Robb <corbin@Corbins-MacBook-Pro.local>
2022-01-12 14:46:27 -06:00
Jesse Yang f451081166
feat(chart): add Mexico to country map viz (#18007) 2022-01-12 08:41:12 -08:00
Yongjie Zhao e91b9a678f
refactor: move superset-ui dependencies to peerDependencies (#17965)
* chore: add commit message

* update learn

* update superset-ui-demo

* move superset-ui into peerDeps

* add --no-private argument in lerna version

* fix conflicts

* refresh lock file
2022-01-11 13:53:37 +08:00
serenajiang 05d9cde203
feat: update time comparison choices (again) (#17968) 2022-01-10 10:08:15 -08:00
Erik Ritter 1e544ce531
fix: null dates in table chart (#17974) 2022-01-10 10:07:59 -08:00
Evan Rusackas fecb6d91c0
chore: fixing annoying warning about escaping in Emotion styling (#17972)
* chore: fixing annoying warning about escaping in Emotion styling

* linting 
2022-01-09 08:44:17 -07:00
Yongjie Zhao cb97e37a92
refactor: import value name from root of superset-ui/core (#17947)
* chart

* index and number-format

* char-composition and color

* connection

* dimension and math-expression

* models

* query

* time-format

* residual modules

* change config of jest and eslint

config

* wip

update package.json

* fix lint

* WithLegend import from superset-ui/core
2022-01-08 09:16:24 +08:00
Evan Rusackas 2098898b31
chore: Adding more viz category mappings for viz picker (#17956)
* Tagging two Bar charts

* tagging two more nvd3 bar charts
2022-01-07 08:12:33 -07:00
Yongjie Zhao 97a78d3301
refactor(storybok): upgrade to webpack5 in storybook of plugins (#17909)
* refactor: use webpack5 in plugins storybook

* remove ./src from packages.json
2022-01-05 10:39:33 +08:00
Yongjie Zhao 52f5dcb58e
fix(deckgl): deckgl unable to load map (#17851)
* fix(deckgl): deckgl unable to load map

* add react-map-gl in peerDependencies
2021-12-23 13:32:30 +08:00
Kamil Gabryjelski 2c3f39f3f2
feat(plugin-chart-pivot-table): support series limit (#17803)
* feat(plugin-chart-pivot-table): support series limit

* Add a migration

* Use non-legacy series limit controls

* Add a todo comment

* Bug fix
2021-12-21 16:58:54 +01:00
Stephen Liu d5768ab649
fix(explore): make SORT-Descending visible if Sort-by has value (#17726) 2021-12-21 15:27:21 +08:00
Erik Ritter 6edc183c5f
chore: Refactor localstorage into typesafe version (#17832) 2021-12-20 13:58:59 -08:00
Kamil Gabryjelski a2d8b94c52
chore(plugin-chart-table): move adhoc filters control closer to the metrics (#17797) 2021-12-17 14:39:09 +01:00
Kamil Gabryjelski b5dca4ebfe
chore(plugin-chart-pivot-table): swap order of Columns and Rows controls (#17798) 2021-12-17 14:32:49 +01:00
Kamil Gabryjelski 9c9edbe8bc
chore(plugin-chart-pivot-table): migrate react-pivottable into superset codebase (#17769)
* chore(plugin-chart-pivot-table): migrate react-pivottable into superset codebase

* Fix lint errors

* Use named export

* Clean up the code
2021-12-17 12:00:32 +01:00
Kamil Gabryjelski 82b47cacba
fix(plugin-chart-table): sort alphanumeric columns case insensitive (#17765) 2021-12-15 11:48:25 -07:00