在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:wuxudong/react-native-charts-wrapper开源软件地址:https://github.com/wuxudong/react-native-charts-wrapper开源编程语言:Java 35.7%开源软件介绍:React Native Charts WrapperThis library is React Native wrapper of popular Native charting library MPAndroidChart and Charts IntroductionInspired by react-native-mp-android-chart and react-native-ios-charts React Native Charts Wrapper is built on MPAndroidChart(v3.1.0) & Charts(v3.3.0), support both android & iOS. ANDROIDIOSSupported Chart Type
Setupexpo
react-native
update App.js
UsageThere are 8 supported charts with many configuration options. Almost all configuration available in base MPAndroidChart library are available through this wrapper. More details on available configuration can be found on their wiki. Example of how charts are used and how to apply configuration can be found in example. ConventionAndroid and IOS have different convention:
Here we use android Convention Always use processColor to set color Data Format
marker is optional, if x is omitted, index will be used.
index will used as x. check Example->TimeSeriesLineChart for details Supported CallbacksonSelect Triggered when a chart value is selected. The event passed back will include the coordinates of the touch as well as the data (including marker label) selected. onChange Triggered for various supported events on each platform. Due to the different nature of gesture handling on each platform as well as the different implementations of the underlying chart libraries, the same events are not supported on every platform. For full details on the supported events, see the table below:
check Example->MultipleChart for details. Direct Function CallSupport direct function call. You can use check Example->MovingWindowChart for details. supported functions:
Special propertiesSeveral extra properties are introduced:
Custom Marker ContentSupport custom marker content. check Example->TimeSeriesLineChart for details. Noticesize of chart you can set chart to fixed width & height, or flex:1 LicenseThe MIT License Copyright (c) 2017 wuxudong Copyright (c) 2016 Martin Skec Copyright (c) 2016 Jose E. Padilla Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论