Skip to content

Commit

Permalink
feat(chord): add Chord component
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Benitte committed Oct 2, 2016
1 parent 4827b70 commit 427cf8a
Show file tree
Hide file tree
Showing 99 changed files with 314 additions and 116 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ it's built on top of d3.
- [`<ResponsiveTreeMap />`](https://plouc.github.io/nivo/#/treemap/react)
- [`<TreeMapPlaceholders />`](https://plouc.github.io/nivo/#/treemap/placeholders)
- [`<ResponsiveTreeMapPlaceholders />`](https://plouc.github.io/nivo/#/treemap/placeholders)
- TreeMap
- [`<Chord />`](https://plouc.github.io/nivo/#/treemap/chord)
- [`<ResponsiveChord />`](https://plouc.github.io/nivo/#/chord)


## Repositories

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nivo",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"author": {
"name": "Raphaël Benitte",
"url": "https://github.com/plouc"
Expand Down
2 changes: 1 addition & 1 deletion specs/bubble/Bubble.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion specs/bubble/BubbleD3.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion specs/bubble/bubbleData.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion specs/calendar/Calendar.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion specs/calendar/CalendarD3.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/ArcUtils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/ColorUtils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/DataUtils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/HierarchyUtils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/Nivo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/PropTypes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/Chart.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/axes/Axis.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/axes/AxisTick.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/axes/AxisX.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/axes/AxisY.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/axes/Grid.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/axes/GridLine.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/axes/GridLines.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
13 changes: 13 additions & 0 deletions src/components/axes/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict'


export Axis from './Axis'
export Grid from './Grid'
2 changes: 1 addition & 1 deletion src/components/charts/Tree.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/bars/Bars.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/bars/BarsD3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/bars/ResponsiveBars.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/bars/ResponsiveBarsD3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/bars/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/bubble/Bubble.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/bubble/BubbleD3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
3 changes: 1 addition & 2 deletions src/components/charts/bubble/BubblePlaceholders.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down Expand Up @@ -34,7 +34,6 @@ class BubblePlaceholders extends Component {
}

willLeave(styleThatLeft) {
console.log('styleThatLeft', styleThatLeft)
return {
r: spring(0),
x: spring(styleThatLeft.data.x),
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/bubble/BubbleProps.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
19 changes: 11 additions & 8 deletions src/components/charts/bubble/ResponsiveBubble.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict';
'use strict'

import React, { Component, PropTypes } from 'react';
import Dimensions from 'react-dimensions';
import Bubble from './Bubble';
import React, { Component, PropTypes } from 'react'
import Dimensions from 'react-dimensions'
import Bubble from './Bubble'


class ResponsiveBubble extends Component {
render() {
const { containerWidth, containerHeight } = this.props;
const {
containerWidth,
containerHeight,
} = this.props

return (
<Bubble
width={containerWidth}
height={containerHeight}
{...this.props}
/>
);
)
}
}


export default Dimensions()(ResponsiveBubble);
export default Dimensions()(ResponsiveBubble)
2 changes: 1 addition & 1 deletion src/components/charts/bubble/ResponsiveBubbleD3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/bubble/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/calendar/Calendar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) 2016 Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/calendar/CalendarCanvas.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/calendar/CalendarD3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/calendar/CalendarDay.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/calendar/CalendarMonthPath.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/calendar/CalendarProps.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/calendar/MotionCalendar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/calendar/ResponsiveCalendar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/calendar/ResponsiveCalendarCanvas.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/calendar/ResponsiveCalendarD3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/calendar/StaticCalendar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/calendar/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file is part of the nivo library.
* This file is part of the nivo project.
*
* (c) Raphaël Benitte
*
Expand Down
Loading

0 comments on commit 427cf8a

Please sign in to comment.