New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-d3-core

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-d3-core - npm Package Compare versions

Comparing version

to
0.1.2

4

package.json
{
"name": "react-d3-core",
"version": "0.1.0",
"version": "0.1.2",
"description": "react chart core component",

@@ -8,3 +8,3 @@ "main": "./lib/index.js",

"test": "echo \"Error: no test specified\" && exit 1",
"publish": "rm -rf ./lib && babel --stage 0 src --out-dir lib"
"es5": "rm -rf ./lib && babel --stage 0 src --out-dir lib"
},

@@ -11,0 +11,0 @@ "author": "ElixirDoc team",

# react-d3-core
[![Dependency Status](https://gemnasium.com/react-d3/react-d3-core.svg)](https://gemnasium.com/react-d3/react-d3-core)
react d3 core components for reusability.

@@ -4,0 +6,0 @@

@@ -27,3 +27,3 @@ "use strict"

static defaultProps = Object.assign(CommonProps, {
showXaxis: true,
showXAxis: true,
xAxisClassName: 'react-d3-core__axis__xAxis',

@@ -30,0 +30,0 @@ xScale: 'linear',

@@ -16,2 +16,6 @@ "use strict"

import {
default as CommonProps,
} from '../commonProps';
export default class Yaxis extends Component {

@@ -22,2 +26,30 @@ constructor (props) {

static defaultProps = Object.assign(CommonProps, {
showYAxis: true,
yAxisClassName: 'react-d3-core__axis__xAxis',
yScale: 'linear',
yOrient: 'bottom',
yTickOrient: 'bottom'
})
static propTypes = {
height: PropTypes.number.isRequired,
width: PropTypes.number.isRequired,
margins: PropTypes.object.isRequired,
showXAxis: PropTypes.bool,
y: PropTypes.func.isRequired,
yDomain: PropTypes.array,
yRange: PropTypes.array,
yScale: PropTypes.string.isRequired,
yOrient: PropTypes.oneOf(['left', 'right']),
yTickOrient: PropTypes.oneOf(['left', 'right']),
yAxisClassName: PropTypes.string,
yInnerTickSize: PropTypes.number,
yOuterTickSize: PropTypes.number,
yTickPadding: PropTypes.number,
yTickFormat: PropTypes.func,
yTicks: PropTypes.number,
setScale: PropTypes.func
}
render() {

@@ -24,0 +56,0 @@ const {