-
- Downloads
add percent change to timeseries tooltip (#42059)
* add percent change to timeseries tooltip * move computeChange to lib/numeric * cleaning up code in numeric.js * color text * add unit to key * move change to tooltip footer * fix extra bottom spacing * remove color * handle gaps in data * clean up code * add change to funnel tooltip * move retained to footer in funnel * update copy * remove min decimal count * rename events.tsx -> events.ts * add test cases to line-bar-tooltips.cy.spec.js * add specs for edge cases * readd exports to fix numeric.unit.spec.js * don't show for change for scatterplot * translate retained * use parseTimestamp instead of String * handle quarter interval * remove redundant dayjs calls * handle quarter with Feburary correctly
Showing
- e2e/test/scenarios/visualizations-charts/line-bar-tooltips.cy.spec.js 307 additions, 108 deletions...narios/visualizations-charts/line-bar-tooltips.cy.spec.js
- frontend/src/metabase/lib/formatting/numbers.tsx 12 additions, 0 deletionsfrontend/src/metabase/lib/formatting/numbers.tsx
- frontend/src/metabase/visualizations/components/ChartTooltip/KeyValuePairChartTooltip/KeyValuePairChartTooltip.styled.tsx 32 additions, 1 deletion...ValuePairChartTooltip/KeyValuePairChartTooltip.styled.tsx
- frontend/src/metabase/visualizations/components/ChartTooltip/KeyValuePairChartTooltip/KeyValuePairChartTooltip.tsx 30 additions, 11 deletions...tip/KeyValuePairChartTooltip/KeyValuePairChartTooltip.tsx
- frontend/src/metabase/visualizations/components/ChartTooltip/StackedDataTooltip/StackedDataTooltip.styled.tsx 6 additions, 2 deletions...tTooltip/StackedDataTooltip/StackedDataTooltip.styled.tsx
- frontend/src/metabase/visualizations/components/FunnelNormal.jsx 28 additions, 5 deletions...d/src/metabase/visualizations/components/FunnelNormal.jsx
- frontend/src/metabase/visualizations/echarts/cartesian/model/guards.ts 5 additions, 0 deletions...metabase/visualizations/echarts/cartesian/model/guards.ts
- frontend/src/metabase/visualizations/lib/numeric.js 15 additions, 7 deletionsfrontend/src/metabase/visualizations/lib/numeric.js
- frontend/src/metabase/visualizations/lib/numeric.unit.spec.js 179 additions, 0 deletions...tend/src/metabase/visualizations/lib/numeric.unit.spec.js
- frontend/src/metabase/visualizations/types/hover.ts 1 addition, 0 deletionsfrontend/src/metabase/visualizations/types/hover.ts
- frontend/src/metabase/visualizations/visualizations/CartesianChart/constants.ts 18 additions, 0 deletions...visualizations/visualizations/CartesianChart/constants.ts
- frontend/src/metabase/visualizations/visualizations/CartesianChart/events.ts 83 additions, 4 deletions...se/visualizations/visualizations/CartesianChart/events.ts
- frontend/src/metabase/visualizations/visualizations/CartesianChart/use-chart-events.ts 7 additions, 2 deletions...zations/visualizations/CartesianChart/use-chart-events.ts
- frontend/src/metabase/visualizations/visualizations/SmartScalar/compute.js 1 addition, 8 deletions...base/visualizations/visualizations/SmartScalar/compute.js
- frontend/src/metabase/visualizations/visualizations/SmartScalar/compute.unit.spec.js 1 addition, 179 deletions...lizations/visualizations/SmartScalar/compute.unit.spec.js
Loading
Please register or sign in to comment