-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Raphaël Benitte
authored and
Raphaël Benitte
committed
Apr 17, 2019
1 parent
5dcebd6
commit aa07469
Showing
43 changed files
with
240 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-67 Bytes
(97%)
website/src/assets/icons/parallel-coordinates-light-neutral.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
/* | ||
* 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. | ||
*/ | ||
import React from 'react' | ||
import { SwarmPlot } from '@nivo/swarmplot' | ||
import swarmplotLightNeutralImg from '../../assets/icons/swarmplot-light-neutral.png' | ||
import swarmplotLightColoredImg from '../../assets/icons/swarmplot-light-colored.png' | ||
import swarmplotDarkNeutralImg from '../../assets/icons/swarmplot-dark-neutral.png' | ||
import swarmplotDarkColoredImg from '../../assets/icons/swarmplot-dark-colored.png' | ||
import { ICON_SIZE, Icon, colors, IconImg } from './styled' | ||
|
||
const values = [ | ||
1, | ||
1, | ||
2, | ||
2, | ||
2, | ||
2, | ||
2, | ||
3, | ||
3, | ||
3, | ||
3, | ||
3, | ||
3, | ||
3, | ||
3, | ||
4, | ||
4, | ||
4, | ||
5, | ||
5, | ||
6, | ||
6, | ||
6, | ||
6, | ||
6, | ||
7, | ||
7, | ||
8, | ||
9, | ||
] | ||
|
||
const chartProps = { | ||
width: ICON_SIZE, | ||
height: ICON_SIZE, | ||
scale: { | ||
type: 'linear', | ||
min: 1, | ||
max: 9, | ||
}, | ||
forceStrength: 6, | ||
simulationIterations: 400, | ||
data: [ | ||
{ | ||
id: 'A', | ||
data: values.map((v, i) => ({ | ||
id: i, | ||
value: v, | ||
})), | ||
}, | ||
], | ||
margin: { | ||
top: 6, | ||
right: 6, | ||
bottom: 6, | ||
left: 6, | ||
}, | ||
layout: 'vertical', | ||
enableGridX: false, | ||
enableGridY: false, | ||
axisTop: null, | ||
axisRight: null, | ||
axisBottom: null, | ||
axisLeft: null, | ||
nodeSize: 10, | ||
nodePadding: 1, | ||
isInteractive: false, | ||
animate: true, | ||
} | ||
|
||
const SwarmPlotIconItem = ({ type }) => ( | ||
<Icon id={`swarmplot-${type}`} type={type}> | ||
<SwarmPlot {...chartProps} colors={[colors[type].colors[3]]} /> | ||
</Icon> | ||
) | ||
|
||
const SwarmPlotIcon = () => ( | ||
<> | ||
<SwarmPlotIconItem type="lightNeutral" /> | ||
<IconImg url={swarmplotLightNeutralImg} /> | ||
<SwarmPlotIconItem type="lightColored" /> | ||
<IconImg url={swarmplotLightColoredImg} /> | ||
<SwarmPlotIconItem type="darkNeutral" /> | ||
<IconImg url={swarmplotDarkNeutralImg} /> | ||
<SwarmPlotIconItem type="darkColored" /> | ||
<IconImg url={swarmplotDarkColoredImg} /> | ||
</> | ||
) | ||
|
||
export default SwarmPlotIcon |
Oops, something went wrong.