Skip to content

Wrong marker color #1062

Description

@jacques-lebourgeois

Prerequisites

Describe the issue

The utility method providing the marker’s HTML code can return a wrong-color marker if several series are of the same color.

This can be the case in a bar and line charts if the line has the same color of a bar, only one serie will keep the specific color and other colors may be wrong.

In ODSChartTheme, sliceColor() should note remove the color from the list if it is already used in an index previous from the current one (and then keep the color twice)

Removing the color in a preivous index, all the already calculated color index between the previous index and the current index will be wrongly shifted

Reduced test cases

https://stackblitz.com/edit/is2p8s3d?file=index.js,index.html

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of ODS Charts are you using?

0.5.0

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions