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

[question] LineChartPro ‘zoom’ field missing in type axis props #16064

Closed
austv99 opened this issue Jan 3, 2025 · 2 comments
Closed

[question] LineChartPro ‘zoom’ field missing in type axis props #16064

austv99 opened this issue Jan 3, 2025 · 2 comments
Labels
component: charts This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information support: commercial Support request from paid users support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@austv99
Copy link

austv99 commented Jan 3, 2025

The problem in depth

I tried enabling the zoom feature in LineChartPro but it seems the field is missing from the ChartsXAxisProps so vscode is saying that it doesn’t exist in the type when using typescript. This occurs when I include the field similar to the example in the docs as such:

<LineChartPro
  width={600}
  height={300}
  xAxis={[
    {
      zoom: true,
      scaleType: 'point',
      data: data.map((v, i) => i),
    },
  ]}
  series={series}
/>

Your environment

`npx @mui/envinfo`
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: zoom

Order ID: 73771

@austv99 austv99 added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels Jan 3, 2025
@github-actions github-actions bot added component: charts This is the name of the generic UI component, not the React module! support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/ labels Jan 3, 2025
@JCQuintas
Copy link
Member

Hi @austv99 can you check if the Typescript section helps you? https://mui.com/x/react-charts/getting-started/#typescript

@JCQuintas JCQuintas added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 3, 2025
Copy link

The issue has been inactive for 7 days and has been automatically closed.

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! status: waiting for author Issue with insufficient information support: commercial Support request from paid users support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Projects
None yet
Development

No branches or pull requests

2 participants