canvasjs-react-charts
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,9 +6,9 @@ var React = require('react'); | ||
class CanvasJSChart extends React.Component { | ||
static _cjsContainerId = 0 | ||
constructor(props) { | ||
super(props); | ||
super(props); | ||
this._cjsContainerId = new window.Date().getTime(); | ||
this.options = props.options ? props.options : {}; | ||
this.containerProps = props.containerProps ? props.containerProps : {width: "100%", position: "relative"}; | ||
this.containerProps.height = props.containerProps && props.containerProps.height ? props.containerProps.height : this.options.height ? this.options.height + "px" : "400px"; | ||
this.chartContainerId = "canvasjs-react-chart-container-" + CanvasJSChart._cjsContainerId++; | ||
this.chartContainerId = "canvasjs-react-chart-container-" + this._cjsContainerId; | ||
} | ||
@@ -15,0 +15,0 @@ componentDidMount() { |
{ | ||
"name": "canvasjs-react-charts", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A package for React CanvasJS Charts", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
461482
4
1
8