indiespirit / react-native-chart-kit

📊React Native Chart Kit: Line Chart, Bezier Line Chart, Progress Ring, Bar chart, Pie chart, Contribution graph (heatmap)
https://expo.io/@indiespirit/react-native-chart-kit
MIT License
2.85k stars 658 forks source link

Text doesn't break line. #133

Open JoseDRojasA opened 5 years ago

JoseDRojasA commented 5 years ago

Bug

The library doesn't break the line when the text is too long.

Environment info

"dependencies": { "expo": "^32.0.6", "google-palette": "^1.1.0", "js-sha512": "^0.8.0", "react": "16.5.0", "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz", "react-native-awesome-alerts": "^1.2.0", "react-native-chart-kit": "^2.2.1", "react-native-paper": "^2.11.1", "react-native-scatter-chart": "^1.0.9", "react-native-simple-animations": "^0.2.0", "react-native-vector-icons": "^6.3.0", "react-navigation": "^3.3.2", "react-redux": "^6.0.1", "redux": "^4.0.1", "redux-thunk": "^2.3.0", "socket.io-client": "^2.2.0" }

react-native info

info Fetching system and libraries information... System: OS: Linux 4.18 Ubuntu 18.04.2 LTS (Bionic Beaver) CPU: (8) x64 Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz Memory: 3.59 GB / 11.19 GB Shell: 4.4.19 - /bin/bash Binaries: Node: 10.16.0 - /usr/bin/node npm: 6.9.0 - /usr/bin/npm npmPackages: react: 16.5.0 => 16.5.0 react-native: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz => 0.57.1 npmGlobalPackages: create-react-native-app: 2.0.2 react-native: 0.60.3 info React Native v0.60.0 is now available (your project is running on v0.57.1). info Changelog: https://github.com/facebook/react-native/releases/tag/v0.60.0. info To upgrade, run "react-native upgrade".

Library version: 8.0.10

Reproducible sample code

The code is available in this library: https://github.com/indiespirit/react-native-chart-kit/blob/master/src/pie-chart.js

Lines 48-59.

PirunSeng commented 4 years ago

+1 I'd love to have this support, too.