Giter Club home page Giter Club logo

react-native-d3-graph-test's Introduction

Simple project to demo cross-platform d3-style svg graphs in react-native

Setup

npm install

npm install rnpm -g # React-Native package manager

rnpm link react-native-svg

Running

For iOS: react-native run-ios

For Android: react-native run-android

What it is

A very very very quick port of a D3-generated graph to react-native-svg, showing that it shouldn't be terribly difficult to port non-interactive D3 graphs, or even a subset of D3 itself.

Bad things

It's not super trivial to make the graph itself interactive :(

Hypothetically it should be possible to put an onPress hook on any SVG element, but this didn't work in the 60 seconds I played with it so I didn't do it.

I also suspect making interactive d3 graphs with a high-quality touch UX and a good mouse UX would be impossible, which kills my dream of sharing the exact same visualization code between desktop, android, and iOS.

Screenshot

react-native-d3-graph-test's People

Contributors

carbureted avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

react-native-d3-graph-test's Issues

Add react-native-d3-graph-test to reactnative.gallery ๐ŸŽจ

Hi @carbureted!

Sorry, this is not an issue...

I'm Xavier and Iโ€™ve been working as a freelance React Native developer for more than 2 years.
I try to help community when I can: sharing my works on open-source, like you do!

I want to help developers to have more visibility.
So, I've created a website where developers can share with entire
world their React Native projects, components, apps...

This website allow developers to show their works and get feedback.
Just like a Dribbble but for React Native developers.

https://reactnative.gallery

Or chat about it?
https://slack.reactnative.gallery

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.