juliansteenbakker / community_charts

This project is a fork of google/charts.
Apache License 2.0
84 stars 34 forks source link

add a PointLabelDecorator to render a label for a point #18

Closed RonnieRen closed 4 months ago

RonnieRen commented 5 months ago

add the functionality to support drawing a label for a point and could config label's padding

PerLycke commented 3 months ago

I've identified an issue introduced in commit 2b2f6bb9be800940a6c2ee3a55b9f020a38b9f6b ("add a PointLabelDecorator to render a label for a point"). This commit causes the points in a points line chart to be rendered on top of the chart, rarely visible, rather than on the chart where they should be rendered.

Steps to Reproduce:

  1. Use the plugin to create a Points Line Chart, or run example app and open the Points Line Chart.
  2. Observe that the points are rendered above the chart as seen in this screenshot:

Screenshot_1718264643

Reverting this commit resolves the issue, and the points are rendered correctly on the chart, as seen in this screenshot:

Screenshot_1718264679