We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello!
While this library is quite extensive, it is very buggy.
I am copying the exact code sample to generate a line chart, LineChart, with a vertical strip and custom data points.
LineChart
However, the custom data points are not shown on the web. I must be misunderstanding something.
web
Thank you!
The source of the code sample is from the documentation, and can be found at: https://gifted-charts.web.app/areachart/#customDataPoints
I've provided a reference to the Expo Snack: https://snack.expo.dev/@jeanniton.mnr/custom-data-points-and-vertical-strip?platform=web
https://snack.expo.dev/@jeanniton.mnr/custom-data-points-and-vertical-strip?platform=web
Web
Expo Go
PS: I have installed react-gifted-charts, I have the same bad results.
react-gifted-charts
The text was updated successfully, but these errors were encountered:
When I examine the rendered SVG element code, I notice that the custom data points appear as DIV objects inserted directly into the SVG.
However, SVG only renders other XML or HTML content if it is embedded within the SVG foreignObject.
foreignObject
Would that be a way of approaching and fixing this issue?
Sorry, something went wrong.
Hi @jeanniton-mnr Thanks for reporting it and suggesting the fix. Your suggestion to use <ForeignObject> worked like a charm!
<ForeignObject>
It has been fixed from versions 1.4.48 onwards. Please use the latest version of the library.
1.4.48
No branches or pull requests
Description
Hello!
While this library is quite extensive, it is very buggy.
I am copying the exact code sample to generate a line chart,
LineChart
, with a vertical strip and custom data points.However, the custom data points are not shown on the
web
. I must be misunderstanding something.Thank you!
Steps to reproduce
The source of the code sample is from the documentation, and can be found at:
https://gifted-charts.web.app/areachart/#customDataPoints
I've provided a reference to the Expo Snack:
https://snack.expo.dev/@jeanniton.mnr/custom-data-points-and-vertical-strip?platform=web
Snack or a link to a repository
https://snack.expo.dev/@jeanniton.mnr/custom-data-points-and-vertical-strip?platform=web
version of react-native-gifted-charts
React Native version
Platforms
Web
Workflow
Expo Go
PS: I have installed
react-gifted-charts
, I have the same bad results.The text was updated successfully, but these errors were encountered: