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] Document plugins for internal use #16504

Merged
merged 4 commits into from
Feb 10, 2025
Merged

Conversation

JCQuintas
Copy link
Member

Hi @mui/explore,

I've added some docs to the charts plugin system to be easier to understand.
The goal is that we can leverage the types to understand what each property does.
@alexfauquette mentioned you might be interested in fact-checking and paste-copying it to other libs where the plugin is used.

Best regards,
Jose & The X-Charts.

@JCQuintas JCQuintas added enhancement This is not a bug, nor a new feature component: charts This is the name of the generic UI component, not the React module! labels Feb 7, 2025
@JCQuintas JCQuintas self-assigned this Feb 7, 2025
@mui-bot
Copy link

mui-bot commented Feb 7, 2025

Deploy preview: https://deploy-preview-16504--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against e57c459

Copy link

codspeed-hq bot commented Feb 7, 2025

CodSpeed Performance Report

Merging #16504 will not alter performance

Comparing JCQuintas:plugin-docs (e57c459) with master (ff2947d)

Summary

✅ 6 untouched benchmarks

@@ -5,12 +5,34 @@ import { ChartStore } from '../utils/ChartStore';
import { ChartSeriesConfig } from './seriesConfig';

export interface ChartPluginOptions<TSignature extends ChartAnyPluginSignature> {
/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can add those to the tree view after this PR is approved it would be awesome 🙏

packages/x-charts/src/internals/plugins/models/plugin.ts Outdated Show resolved Hide resolved
packages/x-charts/src/internals/store/useCharts.ts Outdated Show resolved Hide resolved
packages/x-charts/src/internals/store/useCharts.ts Outdated Show resolved Hide resolved
packages/x-charts/src/internals/store/useCharts.ts Outdated Show resolved Hide resolved
JCQuintas and others added 2 commits February 10, 2025 12:29
Co-authored-by: Alexandre Fauquette <[email protected]>
Co-authored-by: Lukas Tyla <[email protected]>
Signed-off-by: Jose C Quintas Jr <[email protected]>
@JCQuintas JCQuintas enabled auto-merge (squash) February 10, 2025 11:31
@JCQuintas JCQuintas merged commit 3f8343a into mui:master Feb 10, 2025
17 checks passed
@JCQuintas JCQuintas deleted the plugin-docs branch February 10, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: charts This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants