Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[charts] Refactor Tooltip customisation #15154

Merged
merged 30 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
1ebd04b
Move interaction state in a store for axis values
alexfauquette Oct 28, 2024
b22f8e1
WIP
alexfauquette Oct 29, 2024
9568f13
Merge remote-tracking branch 'upstream/master' into use-selector
alexfauquette Oct 30, 2024
814e4f7
fix error
alexfauquette Oct 30, 2024
1fbb282
UPdate tooltip organisation
alexfauquette Oct 30, 2024
da30115
typing and proptypes
alexfauquette Oct 30, 2024
9110c02
docs:api
alexfauquette Oct 30, 2024
32154bb
remove API pages
alexfauquette Oct 30, 2024
b031bf2
remove console.log
alexfauquette Oct 31, 2024
a69ff27
fix lint
alexfauquette Oct 31, 2024
0495bbd
fix tests
alexfauquette Oct 31, 2024
5a46b31
Merge remote-tracking branch 'upstream/master' into use-selector
alexfauquette Nov 12, 2024
1d6d261
disable eslint
alexfauquette Nov 12, 2024
542cee4
move useStore to internals
alexfauquette Nov 12, 2024
ae21ae1
scripts
alexfauquette Nov 12, 2024
4d28a07
new-tooltip-behavior
alexfauquette Nov 13, 2024
0e91863
docs:typescript
alexfauquette Nov 13, 2024
b4ac1db
missing-useclient
alexfauquette Nov 13, 2024
9af0972
JC feedback
alexfauquette Nov 13, 2024
930746f
fixes
alexfauquette Nov 13, 2024
a070ed6
revert perf suggestion
alexfauquette Nov 13, 2024
adec5bf
correct-fix
alexfauquette Nov 14, 2024
ff1d54b
ts-cleaning
alexfauquette Nov 14, 2024
3584fdf
Merge remote-tracking branch 'upstream/master' into use-selector
alexfauquette Nov 18, 2024
2e99533
typo fix
alexfauquette Nov 18, 2024
9a6c0c9
Merge remote-tracking branch 'upstream/master' into use-selector
alexfauquette Nov 18, 2024
5912bf0
fixes
alexfauquette Nov 18, 2024
aa493bc
scripts
alexfauquette Nov 19, 2024
57abfb6
factorise type def
alexfauquette Nov 19, 2024
57c0d26
Merge remote-tracking branch 'upstream/master' into use-selector
alexfauquette Nov 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions docs/data/chartsApiPages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,23 +103,10 @@ const chartsApiPages: MuiPage[] = [
pathname: '/x/api/charts/continuous-color-legend',
title: 'ContinuousColorLegend',
},
{
pathname: '/x/api/charts/default-charts-axis-tooltip-content',
title: 'DefaultChartsAxisTooltipContent',
},
{
pathname: '/x/api/charts/default-charts-item-tooltip-content',
title: 'DefaultChartsItemTooltipContent',
},
{
pathname: '/x/api/charts/default-charts-legend',
title: 'DefaultChartsLegend',
},
{
pathname: '/x/api/charts/default-heatmap-tooltip',
title: 'DefaultHeatmapTooltip',
plan: 'pro',
},
{
pathname: '/x/api/charts/gauge',
title: 'Gauge',
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/charts/bar-chart-pro.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"tooltip": {
"type": {
"name": "shape",
"description": "{ axisContent?: elementType, classes?: object, itemContent?: elementType, slotProps?: object, slots?: object, trigger?: 'axis'<br>&#124;&nbsp;'item'<br>&#124;&nbsp;'none' }"
"description": "{ classes?: object, slotProps?: object, slots?: object, trigger?: 'axis'<br>&#124;&nbsp;'item'<br>&#124;&nbsp;'none' }"
},
"seeMoreLink": { "url": "https://mui.com/x/react-charts/tooltip/", "text": "tooltip docs" }
},
Expand Down
14 changes: 1 addition & 13 deletions docs/pages/x/api/charts/bar-chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"tooltip": {
"type": {
"name": "shape",
"description": "{ axisContent?: elementType, classes?: object, itemContent?: elementType, slotProps?: object, slots?: object, trigger?: 'axis'<br>&#124;&nbsp;'item'<br>&#124;&nbsp;'none' }"
"description": "{ classes?: object, slotProps?: object, slots?: object, trigger?: 'axis'<br>&#124;&nbsp;'item'<br>&#124;&nbsp;'none' }"
},
"seeMoreLink": { "url": "https://mui.com/x/react-charts/tooltip/", "text": "tooltip docs" }
},
Expand Down Expand Up @@ -117,12 +117,6 @@
"import { BarChart } from '@mui/x-charts-pro';"
],
"slots": [
{
"name": "axisContent",
"description": "Custom component for displaying tooltip content when triggered by axis event.",
"default": "DefaultChartsAxisTooltipContent",
"class": null
},
{
"name": "axisLabel",
"description": "Custom component for axis label.",
Expand Down Expand Up @@ -159,12 +153,6 @@
"default": "BarLabel",
"class": null
},
{
"name": "itemContent",
"description": "Custom component for displaying tooltip content when triggered by item event.",
"default": "DefaultChartsItemTooltipContent",
"class": null
},
{
"name": "legend",
"description": "Custom rendering of the legend.",
Expand Down
22 changes: 0 additions & 22 deletions docs/pages/x/api/charts/charts-tooltip.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
{
"props": {
"axisContent": {
"type": { "name": "elementType" },
"deprecated": true,
"deprecationInfo": "Use slots.axisContent instead"
},
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
"itemContent": {
"type": { "name": "elementType" },
"deprecated": true,
"deprecationInfo": "Use slots.itemContent instead"
},
"slotProps": { "type": { "name": "object" }, "default": "{}" },
"slots": {
"type": { "name": "object" },
Expand All @@ -32,18 +22,6 @@
"import { ChartsTooltip } from '@mui/x-charts-pro';"
],
"slots": [
{
"name": "axisContent",
"description": "Custom component for displaying tooltip content when triggered by axis event.",
"default": "DefaultChartsAxisTooltipContent",
"class": null
},
{
"name": "itemContent",
"description": "Custom component for displaying tooltip content when triggered by item event.",
"default": "DefaultChartsItemTooltipContent",
"class": null
},
{
"name": "popper",
"description": "Custom component for the tooltip popper.",
Expand Down
23 changes: 0 additions & 23 deletions docs/pages/x/api/charts/default-charts-axis-tooltip-content.js

This file was deleted.

92 changes: 0 additions & 92 deletions docs/pages/x/api/charts/default-charts-axis-tooltip-content.json

This file was deleted.

23 changes: 0 additions & 23 deletions docs/pages/x/api/charts/default-charts-item-tooltip-content.js

This file was deleted.

93 changes: 0 additions & 93 deletions docs/pages/x/api/charts/default-charts-item-tooltip-content.json

This file was deleted.

23 changes: 0 additions & 23 deletions docs/pages/x/api/charts/default-heatmap-tooltip.js

This file was deleted.

Loading