add sunburst to pie chart (#47208)
* add sunburst to pie chart * fix type errors * consider all slice percent values for formatting percent on chart * fix lint error * refactor nested functions outside of parent * create and use getArrayFromMapValues helper * fix bug with percent significant digits * improve color picker * fix total visibility in small dashcards * fix missing field remappings * use aggregated value for click behavior * update minimum slice percentage logic * fix total text truncation * remove colors from tooltip for middle and outer slices * update e2e spec * update snapshot * update ring setting titles * address feedback * update comment
Showing
- .loki/reference/chrome_laptop_static_viz_PieChart_All_Negative.png 0 additions, 0 deletions...erence/chrome_laptop_static_viz_PieChart_All_Negative.png
- .loki/reference/chrome_laptop_static_viz_PieChart_Labels_On_Chart.png 0 additions, 0 deletions...nce/chrome_laptop_static_viz_PieChart_Labels_On_Chart.png
- .loki/reference/chrome_laptop_static_viz_PieChart_Labels_With_Percent.png 0 additions, 0 deletions...chrome_laptop_static_viz_PieChart_Labels_With_Percent.png
- .loki/reference/chrome_laptop_static_viz_PieChart_Three_Rings.png 0 additions, 0 deletions...ference/chrome_laptop_static_viz_PieChart_Three_Rings.png
- .loki/reference/chrome_laptop_static_viz_PieChart_Three_Rings_No_Labels.png 0 additions, 0 deletions...rome_laptop_static_viz_PieChart_Three_Rings_No_Labels.png
- .loki/reference/chrome_laptop_static_viz_PieChart_Three_Rings_Other_Slices.png 0 additions, 0 deletions...e_laptop_static_viz_PieChart_Three_Rings_Other_Slices.png
- .loki/reference/chrome_laptop_static_viz_PieChart_Truncated_Total.png 0 additions, 0 deletions...nce/chrome_laptop_static_viz_PieChart_Truncated_Total.png
- .loki/reference/chrome_laptop_static_viz_PieChart_Two_Rings.png 0 additions, 0 deletions...reference/chrome_laptop_static_viz_PieChart_Two_Rings.png
- e2e/test/scenarios/visualizations-charts/pie_chart.cy.spec.js 274 additions, 4 deletions...test/scenarios/visualizations-charts/pie_chart.cy.spec.js
- frontend/src/metabase-types/api/card.ts 4 additions, 1 deletionfrontend/src/metabase-types/api/card.ts
- frontend/src/metabase/core/components/Sortable/SortableList.tsx 2 additions, 2 deletions...nd/src/metabase/core/components/Sortable/SortableList.tsx
- frontend/src/metabase/lib/colors/palette.ts 1 addition, 1 deletionfrontend/src/metabase/lib/colors/palette.ts
- frontend/src/metabase/static-viz/components/PieChart/PieChart.stories.tsx 36 additions, 0 deletions...abase/static-viz/components/PieChart/PieChart.stories.tsx
- frontend/src/metabase/static-viz/components/PieChart/legend.tsx 15 additions, 12 deletions...nd/src/metabase/static-viz/components/PieChart/legend.tsx
- frontend/src/metabase/static-viz/components/PieChart/settings.ts 17 additions, 18 deletions...d/src/metabase/static-viz/components/PieChart/settings.ts
- frontend/src/metabase/static-viz/components/PieChart/stories-data/index.ts 12 additions, 0 deletions...base/static-viz/components/PieChart/stories-data/index.ts
- frontend/src/metabase/static-viz/components/PieChart/stories-data/labels-on-chart.json 368 additions, 0 deletions...viz/components/PieChart/stories-data/labels-on-chart.json
- frontend/src/metabase/static-viz/components/PieChart/stories-data/labels-with-percent.json 525 additions, 0 deletions...components/PieChart/stories-data/labels-with-percent.json
- frontend/src/metabase/static-viz/components/PieChart/stories-data/three-rings-no-labels.json 603 additions, 0 deletions...mponents/PieChart/stories-data/three-rings-no-labels.json
- frontend/src/metabase/static-viz/components/PieChart/stories-data/three-rings-other-slices.json 604 additions, 0 deletions...nents/PieChart/stories-data/three-rings-other-slices.json
Loading
Please register or sign in to comment