fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Bug]: Need ability to set color of a marker in a line chart

Open abhranilnaha opened this issue 1 year ago • 2 comments

Charting Control

LineChart

Package version

5.23.92

React version

19.0.0

Environment

https://codepen.io/abhranilnaha/pen/vEOMGLP

Current Behavior

In lines+markers setting of line chart, there is no capability to set a markerColor. We can only provide a markerSize. The marker color is always same as the line color.

Expected Behavior

We need capability to set a marker color to mark anomalies in the data points of a line chart. When a data point's y value is greater than a threshold, we want show those markers in red color in the line chart. Providing a prop named markerColor along with markerSize will solve this issue. Please note: the legend color should always be same as the color of the line.

Reproduction

https://codepen.io/abhranilnaha/pen/vEOMGLP

Steps to reproduce

Open below link: https://codepen.io/abhranilnaha/pen/vEOMGLP

Try to set a color of a marker other than the color (say, red) of the line. It is currently not possible.

Are you reporting an Accessibility issue?

None

Suggested severity

Urgent - No workaround and Products/sites are affected

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

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

abhranilnaha avatar Jun 30 '25 06:06 abhranilnaha

This issue has not had activity for over 180 days! We're adding Soft close label and will close it soon for house-keeping purposes. Still require assistance? Please add comment - "keep open".

Because this reported issue has not had any activity for over 180 days, we're automatically closing it for house-keeping reasons.

Still require assistance? Please, create a new issue with up-to date details and latest version of Fluent.