-
Notifications
You must be signed in to change notification settings - Fork 122
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
PointStyleAccessor
not applying to isolated points
#2460
Comments
Does #2277 relate to you issue? This was fixed in |
@nickofthyme I can still reproduce this issue in latest version v65.2.1, here is the code sandbox link Can you suggest any work around solution? |
Ok I see the issue now. I opened #2464 to fix the issue. As far as a workaround, that is not easy. You basically need to remove all isolated points as defined by this check... elastic-charts/packages/charts/src/chart_types/xy_chart/rendering/points.ts Lines 225 to 242 in 501781b
Which you could do by filling the missing data so that all That being said, I can backport the fix to as far as possible ~ |
@nickofthyme Once you've completed the change, can we upgrade elastic-charts to the most recent version, which will resolve the issues while keeping the same Kibana version 8.12.0, or do we need to upgrade Kibana to a more recent version? |
We would need to upgrade the version of |
PointStyleAccessor
not applying to isolated points
@nickofthyme i can still reproduce same issue the with elastic-charts with version "65.2.0", can you check in the code sandbox link |
Hey @mageshsankar this was fixed in charts version |
@mageshsankar yes because the isolated point styles are still being assigned to those points but as of I see how this can be tedious so maybe we add a way to opt out of this isolated point styling. |
@mageshsankar based on your comments I've add the |
@nickofthyme Which version of Kibana has this fix? |
These changes are in |
Summary
In Kibana version 8.12.0, the pointStyleAccessor is not correctly applying the specified point styles to the first data point of each group in a line chart using @elastic/charts. This issue did not exist in Kibana version 7.16.3, where the point styles were applied correctly.
Steps to Reproduce
Actual Behavior
The first data point of each series does not have the styles specified in the pointStyleAccessor applied. Subsequent points in the series correctly reflect the defined styles.
Code Example
Below is a simplified version of the code that demonstrates the issue:
Environment Details
Additional Information
Suggested Fix
Investigate the changes between Kibana version 7.16.3 and 8.12.0 related to the @elastic/charts library, specifically focusing on the pointStyleAccessor implementation. Ensure that the pointStyleAccessor correctly applies styles to all data points, including the first point of each series. Consider adding a test case to validate this behavior in future releases.
Attachments
Screenshot of the line chart showing the issue in Kibana 8.12.0.
The text was updated successfully, but these errors were encountered: