Giter Site home page Giter Site logo

example-react-app's Introduction

Hello. ๐Ÿ‘‹

This is a GitHub profile. There's content here.

Some Visuals

Overview

A collection of repositories and code exists below. There are several languages, tools, and more.

Technologies

Languages and tools are used here. Specifics exist.

GitHub Stats

Additional Data Points

GitHub offers metrics and stats. Some might be viewed here.

Top Languages Card

Contact

Connections can be made through appropriate channels.


Thank you for visiting.

None of this has been written by an AI. All human-made. Thank you.

example-react-app's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

example-react-app's Issues

issue with the data in the csv() XHR function

Hey Jerome

Great series. I'm following along and I'm hitting a bit of a roadblock with the csv() function. My componentWillMount looks exactly like yours:

    csv('./data/birthdeathrates.csv', (error, data) => {
      if (error) {
        this.setState({ loadError: true })
      }

      this.setState({
        data: data.map(d => ({ ...d, x: Number(d.birth), y: Number(d.death)}))
      })
    })

But instead of returning the data, it seems to be returning the very page that this JS runs on. If I move this csv() function to the render() block and console log each of the data iterations, I get the following console output:

screen shot 2016-11-15 at 3 08 38 pm

My directory structure is like yours too:

./src/App.js
./data/birthdeathrates.csv

My package.json file has locked the following lib versions but I can't find any obvious changes in those that would cause this:

{
  "devDependencies": {
    "react-scripts": "0.7.0",
    "react-addons-shallow-compare": ">=0.14.0"
  },
  "dependencies": {
    "d3-request": "^1.0.2",
    "react": "^15.3.2",
    "react-dom": "^15.3.2",
    "react-vis": "^0.6.5"
  }
  ...
}

I'm just thinking out loud while I try debug this, in case anyone else following this tutorial runs into the same problem. If/when I figure this out, I'll provide the solution to this issue.

NAN for cx

I am new to React and javascript, and this is the one of the best data analysis tutorials I have found. However, I am getting a data error for all my data values. I copied and pasted the relevant code from your repository. Any thoughts? Thank you.
From my console:
image

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.