superset/superset-frontend/temporary_superset_ui/superset-ui
Jianchao Yang 80b6e066eb feat(big-number): allow fallback to last available value and fix time range for trend lines (#403)
* feat(big-number): add option to align time range

In Superset, when a timeseries query has no data at the beginning period
or end period of the filtered time range, there will not no data records
at those periods, hence the trendline in Big Number chart would not
render those periods. This often causes confusion and misinterpretaiton
in dashboards, especially for those with multiple trendline charts
aligned with each other. They could all be a very smooth line, but
actually showing very different time ranges.

This PR adds an option "alignTimeRange" to apply the filtered time
range on the xAxis. Date periods for empty data will be rendered, but
there will be no connected lines, dots, or tooltips for them.

It's possible to still show tooltips for those periods, but I decided
not to do that as: 1) it makes things much more complicated; 2) I don't
want to confuse zero or nulls with empty data.

* fix(big-number): disable alignRange by default

* refactor(big-number): migrate to Typescript

* fix(big-number): typescript build

* fix(big-number): change tooltip trigger; fix storybook

* fix(big-number): move @types to dependencies

* fix(big-number): move all files to ts

* build(big-number): add @types/d3-color as dependency

* refactor(big-number): remove renderTooltip as prop

* feat(big-number): add timeRangeUseFallback options and some refactor

* fix(big-number): update formatting functions

* fix(big-number): update copy for no data

* fix(big-number): address PR feedbacks

* feat(big-number): replace timeRangeUseFallback with bigNumberFallback

* fix: upgrade @types/react-bootstrap

* build(big-number): move react-bootstrap to dependencies

* refactor(big-number): more coherent types

* feat(big-number): use alert box for fallback values

* build(big-number): remove react-bootstrap

* build: upgrade nimbus and fix versions

Keep running into building errors locally, so upgrade nimbus and
fix all related packages to the working latest version.

* feat(big-number): adjust fallback warning alignment

* build: use a non-fixed version for @types/shortid

* build: revert package versions in main
2021-11-26 11:46:02 +08:00
..
.github build: add github workflow for build and test (#369) 2021-11-26 11:45:08 +08:00
docs build: try to merge superset-ui-plugins (#333) 2021-11-26 11:45:04 +08:00
packages chore(release): publish v0.12.19 2021-11-26 11:45:09 +08:00
plugins feat(big-number): allow fallback to last available value and fix time range for trend lines (#403) 2021-11-26 11:46:02 +08:00
scripts build: try to merge superset-ui-plugins (#333) 2021-11-26 11:45:04 +08:00
test feat: add validator package (#322) 2021-11-26 11:45:03 +08:00
.gitignore build: try to merge superset-ui-plugins (#333) 2021-11-26 11:45:04 +08:00
.npmrc [build-config] move to monorepo root (#11) 2021-11-26 11:44:31 +08:00
CHANGELOG.md docs: update changelog 2021-11-26 11:45:08 +08:00
codecov.yml feat: add calendar package and storybook (#356) 2021-11-26 11:45:05 +08:00
commitlint.config.js chore: add commitlint and commitizen config 2021-11-26 11:44:43 +08:00
CONTRIBUTING.md build: migrate build tool to nimbus (#281) 2021-11-26 11:45:00 +08:00
lerna.json chore(release): publish v0.12.19 2021-11-26 11:45:09 +08:00
LICENSE add license 2021-11-26 11:44:32 +08:00
package.json chore: update npm script 2021-11-26 11:45:09 +08:00
README.md docs: update readme 2021-11-26 11:45:08 +08:00
yarn.lock Merge pull request #368 from apache-superset/kristw--migrate-pivot 2021-11-26 11:45:08 +08:00

@superset-ui

Codecov branch Build Status David

Collection of packages that power the Apache Superset UI, and can be used to craft custom data applications that leverage a Superset backend 📈

Demo

Most recent release: https://apache-superset.github.io/superset-ui/

Current master: https://superset-ui.now.sh/

Packages

Core packages

Package Version
@superset-ui/superset-ui Version
@superset-ui/chart Version
@superset-ui/chart-composition Version
@superset-ui/color Version
@superset-ui/connection Version
@superset-ui/core Version
@superset-ui/dimension Version
@superset-ui/generator-superset Version
@superset-ui/number-format Version
@superset-ui/query Version
@superset-ui/style Version
@superset-ui/time-format Version
@superset-ui/translation Version

Chart plugin packages

Package Version
@superset-ui/legacy-preset-chart-big-number Version
@superset-ui/legacy-plugin-chart-calendar Version
@superset-ui/legacy-plugin-chart-chord Version
@superset-ui/legacy-plugin-chart-table Version

Contribution and development guide

Please read the contributing guidelines which include development environment setup and other things you should know about coding in this repo.

License

Apache-2.0