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

[Feature]: Enable multiple X-Axis and Y-Axis for AreaCharts, LineCharts & BarCharts #1102

Open
alexbalonperin opened this issue Jul 12, 2024 · 0 comments · May be fixed by #1103
Open

[Feature]: Enable multiple X-Axis and Y-Axis for AreaCharts, LineCharts & BarCharts #1102

alexbalonperin opened this issue Jul 12, 2024 · 0 comments · May be fixed by #1103
Labels
Type: Feature New feature for existing component

Comments

@alexbalonperin
Copy link

What problem does this feature solve?

Multiple Y-Axis allow showing multiple data series with different data ranges while keeping both series nicely visible and comparable.
Multiple X-Axis can be used to compare timeseries at different times or show multiple axis for different granularities of the timeseries (e.g. month & quarter).

What does the proposed API look like?

Add two fields to the BaseChartProps:

interface BaseChartProps extends BaseAnimationTimingProps, React.HTMLAttributes<HTMLDivElement> {
   ...other fields
   xAxisConfigs?: XAxisConfig[];
   yAxisConfigs?: YAxisConfig[];
}

interface XAxisConfig {
  orientation: VerticalPosition;
  series?: string[];
  valueFormatter?: ValueFormatter;
}

export interface YAxisConfig {
  autoMinValue?: boolean;
  minValue?: number;
  maxValue?: number;
  orientation: HorizontalPosition;
  categories?: string[];
  valueFormatter?: ValueFormatter;
}
@alexbalonperin alexbalonperin linked a pull request Jul 12, 2024 that will close this issue
15 tasks
@severinlandolt severinlandolt added the Type: Feature New feature for existing component label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature for existing component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants