All Projects → codesinghanoop → react-native-d3multiline-chart

codesinghanoop / react-native-d3multiline-chart

Licence: Apache-2.0 license
Animated Android and iOS multiline/line/scatterPoint chart based on d3.js 🤘😎🤘

Programming Languages

javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to react-native-d3multiline-chart

Twitter-Sentiment-Analyzer
Twitter Sentiment Analyzer
Stars: ✭ 13 (-69.77%)
Mutual labels:  charts, d3js
Carbon Charts
📊 📈⠀Robust dataviz framework implemented using D3 & typescript
Stars: ✭ 287 (+567.44%)
Mutual labels:  charts, d3js
android-charts
A curated list of Android Chart libraries.
Stars: ✭ 69 (+60.47%)
Mutual labels:  charts, line
Laue
🖖📈 Modern charts for Vue 2.0
Stars: ✭ 245 (+469.77%)
Mutual labels:  charts, line
Nivo
nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
Stars: ✭ 9,550 (+22109.3%)
Mutual labels:  charts, d3js
D3vue
D3.js vs Vue.js examples
Stars: ✭ 225 (+423.26%)
Mutual labels:  d3v4, d3js
react-native-tcharts
基于React Native ART的图表组件库
Stars: ✭ 25 (-41.86%)
Mutual labels:  charts, line
D3js doc
D3js中文文档 D3中文 📊 📈 🎉
Stars: ✭ 1,599 (+3618.6%)
Mutual labels:  d3v4, d3js
Reaviz
📊 Data visualization library for React based on D3
Stars: ✭ 1,141 (+2553.49%)
Mutual labels:  charts, d3js
Awesome D3
A list of D3 libraries, plugins and utilities
Stars: ✭ 4,779 (+11013.95%)
Mutual labels:  charts, d3js
V Chart Plugin
Easily bind a chart to the data stored in your Vue.js components.
Stars: ✭ 188 (+337.21%)
Mutual labels:  d3v4, d3js
React Native Svg Charts
📈 One library to rule all charts for React Native 📊
Stars: ✭ 2,056 (+4681.4%)
Mutual labels:  charts, react-native-svg
D3tutorial
📊📈 A D3 v6 tutorial - interactive bar chart and multiple coordinated views (MCV)
Stars: ✭ 163 (+279.07%)
Mutual labels:  d3v4, d3js
deloominator
Shed the light on your data!
Stars: ✭ 47 (+9.3%)
Mutual labels:  charts, d3js
D3 Es6
D3 力导向图 增删改动态更新数据 点击生成节点 拖拽生成连线...
Stars: ✭ 155 (+260.47%)
Mutual labels:  d3v4, d3js
hiccup-d3
D3-Charts written in Clojure
Stars: ✭ 74 (+72.09%)
Mutual labels:  charts, d3js
D3 Dot Graph
This module provides D3js compatible library to parse and load files in graphviz DOT (.dot) (graph description language) format.
Stars: ✭ 23 (-46.51%)
Mutual labels:  d3v4, d3js
D3
This is the repository for my course, Learning Data Visualization with D3.js on LinkedIn Learning and Lynda.com.
Stars: ✭ 64 (+48.84%)
Mutual labels:  d3v4, d3js
Hxcharts
📊 Chart for iOS 仪表盘、柱状图、圆形图、折线图、环形图
Stars: ✭ 301 (+600%)
Mutual labels:  charts, line
Vue Visualization
Vue 结合 D3.js 进行数据可视化开发的练手案例
Stars: ✭ 125 (+190.7%)
Mutual labels:  charts, d3v4

react-native-d3multiline-chart

Android and iOS multiline/line/scatterPoint chart based on d3.js

Getting Started

  • Step 1- npm install react-native-d3multiline-chart --save or yarn add react-native-d3multiline-chart --save
  • Step 2- react-native link react-native-svg
  • Step 3- Build the project and watch the beauty.

Try the example app

Usage Note: In case of any misunderstanding please go through the example.

import { MultiLineChart } from 'react-native-d3multiline-chart'
//default data is available 
var data =[ [{
"y": "202",
"x": 2000
}, {
    "y": "215",
    "x": 2001
}, {
    "y": "179",
    "x": 2002
}, {
    "y": "199",
    "x": 2003
}, {
    "y": "134",
    "x": 2003
}, {
    "y": "176",
    "x": 2010
}],
[{
    "y": "152",
    "x": 2000
}, {
    "y": "189",
    "x": 2002
}, {
    "y": "179",
    "x": 2004
}, {
    "y": "199",
    "x": 2006
}, {
    "y": "134",
    "x": 2008
}, {
    "y": "176",
    "x": 2010
}]
]
//default data is available 
let leftAxisData = [
  134,144,154,164,174,184,194,204,215
]
//default data is available 
let bottomAxisData = [
  2000,2002,2004,2006,2008,2010
]
let legendColor = ['#00b7d4','red']
let legendText = ['sales','year']
let minX= 2000, maxX= 2010
let minY= 134, maxY= 215

//since there are only two lines
var Color = ['#00b7d4','red']

render() {
    return (
     <View style={styles.container}>
       <MultiLineChart data= {data} leftAxisData= {leftAxisData} bottomAxisData= {bottomAxisData} legendColor= {legendColor}
        legendText= {legendText} minX= {minX} maxX= {maxX} minY= {minY} maxY= {maxY} scatterPlotEnable= {false}   dataPointsVisible= {true} Color= {Color} />
     </View>
    );
  }
}

Features

  • Add line graph,multiline graph and scatter point graph (by enabling scatterPlotEnable)

  • Desired color to the lines as well as the data points, data points are apperaring at perfect positions with perfect fill color and highlight of radius is working fine, these functionality is not appropriately provided by react-native-charts and react-native-pathjs-charts

  • Legends are available in the chart, this is the missing feature in react-native-charts and react-native-pathjs-charts.

  • capitalone/react-native-pathjs-charts#40 enhancement is added in this library.

Properties

Name Type
data PropTypes.array
leftAxisData propTypes.array
bottomAxisData propTypes.array
leftAxisDataToShow propTypes.array
bottomAxisDataToShow propTypes.array
legendColor propTypes.array
legendText propTypes.array
minX propTypes.number
minY propTypes.number
maxX propTypes.number
maxY propTypes.number
scatterPlotEnable propTypes.bool
dataPointsVisible propTypes.bool
hideAxis propTypes.bool
hideXAxisLabels propTypes.bool
hideYAxisLabels propTypes.bool
showLegends propTypes.bool
axisColor propTypes.string
axisLabelColor propTypes.string
axisLineWidth propTypes.number
chartFontSize propTypes.number
Color propTypes.array
chartHeight propTypes.number
chartWidth propTypes.number
tickColorXAxis propTypes.string
tickColorYAxis propTypes.string
tickWidthXAxis propTypes.number
tickWidthYAxis propTypes.number
lineWidth propTypes.number
circleRadiusWidth propTypes.number
circleRadius propTypes.number
showTicks propTypes.bool
legendStyle propTypes.object
showDashedLine propTypes.bool
lineStrokeDashArray propTypes.array
lineStrokeOpacity propTypes.number
GraphWidth propTypes.number
GraphHeight propTypes.number
pointDataToShowOnGraph propTypes.string
circleLegendType propTypes.bool
fillArea propTypes.bool
yAxisGrid propTypes.bool
xAxisGrid propTypes.bool
hideXAxis propTypes.bool
hideYAxis propTypes.bool
inclindTick propTypes.bool
animation propTypes.bool
duration propTypes.number
delay propTypes.number
staggerLength propTypes.number
speed propTypes.number

Todo list:-

  • Add animation to the graph

  • Implement draw line animation - Check (Thanks Waheguruji 🙏)

  • Add Stagger animation in data points - Check

  • Add test

  • Add custom legend - Check (Two kind of legend available, circle and rectangle)


Author

Anoop Singh (codesingh)
Email: [email protected]
Stack Overflow: codesingh(username)

License

Apache-2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].