Commit Graph

155 Commits

Author SHA1 Message Date
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
ce3d38d2e7 feat: apply Time Grain to X-Axis column (#21163) 2022-09-07 16:24:15 +08:00
Alex Lauderbaugh
994f327157 chore: Renaming Line Chart to Line Chart v2 (#21278) 2022-09-01 08:16:55 +02: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
0bf4e56dc3 fix: Drill to detail on values with comma (#21151) 2022-08-22 13:52:39 -03: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
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
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
Stephen Liu
acdb271422 fix(line-chart): Formula Annotations on Line Charts are broken (#20687) 2022-07-13 16:42:11 +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
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
Yongjie Zhao
c348a095b9 refactor(standardized form data): refine interface and improve code smells (#20518) 2022-06-28 21:09:42 +08: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
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
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
Yongjie Zhao
d7e3ac306f chore: filter undefined operators (#20157) 2022-05-23 18:24:32 +08: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
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
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
Stephen Liu
11562971fb fix(plugin-chart-echarts): [feature parity] annotation line chart color not working (#19758) 2022-04-28 19:10:58 +03: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
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
Yongjie Zhao
761d5c4208 chore: cleanup as unknown conversion (#19587) 2022-04-08 17:32:29 +08: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
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
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
Stephen Liu
c4e3c45b3c fix(plugin-chart-echarts): fix customize margin (#18958) 2022-02-28 23:53:53 -07:00
Yongjie Zhao
987740aa8d fix: contribution operator meets nan value (#18782) 2022-02-18 23:28:28 +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
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
Ville Brofeldt
cec4677971 fix(plugin-chart-echarts): use verbose x-axis name when defined (#18217) 2022-01-28 16:45:57 +02:00