Skip to content

[charts] Typescript error on band axis gap parameters #10334

Closed
1 of 1 issue completed
Closed
@wascou

Description

@wascou

ReSteps to reproduce

Steps:

  1. https://codesandbox.io/p/sandbox/elated-northcutt-clfg9d
  2. categoryGapRatio and barGapRatio works but has a type error
  3. Happens both in V7 and V8 🙃

Issue description

Using TS and alpha 10, properties barGapRatio and categoryGapRatio are not resolved by VSCode.

<BarChart
  xAxis={[{ 
    scaleType: 'band', 
    barGapRatio: 0.1, 
    categoryGapRatio: 0.2, 
    data: ['group A', 'group B', 'group C'] 
  }]}
  series={[{ data: [4, 3, 5] }, { data: [1, 6, 3] }, { data: [2, 5, 6] }]}
  width={500}
  height={300}
/>

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: chartsThis is the name of the generic UI component, not the React module!support: docs-feedbackFeedback from documentation pagetypescript

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions