microsoft / microsoft/fluentui

[Bug]: Line chart/Area chart mandatory sorting x values

Open
#29,386 4 comments 0 reactions 1 assignee View on GitHub

@AtishayMsft is already working on this.

Since Oct 4, 2023.

Fluent UI react (v8) Package: charting Resolution: Soft Close Status: In PR
Dominant language
TypeScript
Stars
20.3k
Forks
2.9k
Avg merge
2d 9h
Merged PRs (30d)
46

Description

Library

React / v8 (@fluentui/react)

System Info
System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz
    Memory: 2.62 GB / 15.73 GB
  Browsers:
    Edge: Spartan (44.22621.2283.0), Chromium (117.0.2045.43)
    Internet Explorer: 11.0.22621.1
Are you reporting Accessibility issue?

None

Reproduction

See bug description below

Bug Description
Current behavior

while using Line chart with date (X value)

if the x values not sorted as this example will display in strange way as:

image

after sorting the x values as this it will looks better as expected:
image

Expected behavior:

The line chart and area chart x values should be sorted by default.
We can provide a prop if we need to disable default sorting behavior.

Logs

No response

Requested priority

Normal

Products/sites affected

Reproes on the demo site https://aka.ms/fluentcharting

Are you willing to submit a PR to fix?

no

Validations
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.