Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwalley authored Nov 9, 2017
1 parent 3f81761 commit cc87448
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# d3-bumps-chart

[![Build Status](https://travis-ci.org/johnwalley/d3-bumps-chart.svg?branch=master)](https://travis-ci.org/johnwalley/d3-bumps-chart)
[![npm Version](https://img.shields.io/npm/v/d3-bumps-chart.svg)](https://www.npmjs.com/package/d3-bumps-chart)
[![Dependency Status](https://gemnasium.com/badges/github.com/johnwalley/d3-bumps-chart.svg)](https://gemnasium.com/github.com/johnwalley/d3-bumps-chart)

Draw Bumps charts using d3.

Expand All @@ -18,7 +16,7 @@ If you use NPM, `npm install d3-bumps-chart`. Otherwise, download the [latest re

<script>
var el = document.getElementById('bumps-chart');
var chart = d3_bumps_chart.bumpsChart();
var chart = d3.chart();
chart.setup(el);
d3.json("./example/results.json", function(error, events) {
Expand All @@ -30,9 +28,9 @@ If you use NPM, `npm install d3-bumps-chart`. Otherwise, download the [latest re
.filter(e => e.gender.toLowerCase() === gender.toLowerCase())
.filter(e => e.set === set)
.sort((a, b) => a.year - b.year)
.map(event => bumpsChart.transformData(event));
.map(event => d3.transformData(event));
var data = bumpsChart.joinEvents(transformedEvents, set, gender);
var data = d3.joinEvents(transformedEvents, set, gender);
var props = {
data: data,
Expand Down Expand Up @@ -61,4 +59,4 @@ Sets up the svg elements which are independent of any data. Selects the *element

<a name="chart_update" href="#chart_update">#</a> <i>chart</i>.<b>update</b>(<i>props</i>) [<>](https://github.com/johnwalley/d3-bumps-chart/blob/master/src/chart.js#L28 "Source")

Renders the bumps chart based on *props*.
Renders the bumps chart based on *props*.

0 comments on commit cc87448

Please sign in to comment.