You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a line chart to my application that shows the user sessions for android and ios. Beside that it shows the previous period data in a comparison chart-line (isComparison = true). The problem is, that I have to add two comparisons (ios & android data), but the color attribute does not work on comparison chart-lines. (visible on screenshot)
Expected behavior
When I add a "color" attribute to the linechart group attributes is should colorize the chart-line exactly like the non-comparison chart-lines does.
Actual behavior
Currently it's just grey and not colorized in the preferred color:
The color attribute is set in the linechart.data like this:
Color works for the chart-lines that are set to isComparison = false, but not to the comparison chart-lines. This is a inconsistent behaviour and in my frontend, users can not differ between the two comparison chart-lines without hovering over the values.
Steps to reproduce the problem
Create a line chart
Add two or more comparison linechart groups
Add a color attribute to the linechart groups
Check out the color in your running application
Specifications
Polaris-Viz version number: "^10.3.2"
The text was updated successfully, but these errors were encountered:
Our line graph has two values (Android, iOS). This leads to multiple comparison values. How does polaris-viz deal with this? Overwriting the color value is already described in the bug report, but does not answer why it is overridden when a specific colour value is given. In my opinion the color value should have a consistent behaviour.
We wanted to keep the comparison styling (dotted line & color) consistent which is why we don't allow the styling or color to be overridden.
If you want to show multiple comparison lines, you can remove isComparison: true from your data series and use styleOverride to change the strokeDasharray.
Bug summary
I added a line chart to my application that shows the user sessions for android and ios. Beside that it shows the previous period data in a comparison chart-line (isComparison = true). The problem is, that I have to add two comparisons (ios & android data), but the color attribute does not work on comparison chart-lines. (visible on screenshot)
Expected behavior
When I add a "color" attribute to the linechart group attributes is should colorize the chart-line exactly like the non-comparison chart-lines does.
Actual behavior
Currently it's just grey and not colorized in the preferred color:
The color attribute is set in the linechart.data like this:
Color works for the chart-lines that are set to isComparison = false, but not to the comparison chart-lines. This is a inconsistent behaviour and in my frontend, users can not differ between the two comparison chart-lines without hovering over the values.
Steps to reproduce the problem
Specifications
The text was updated successfully, but these errors were encountered: