()
| 75 | }; |
| 76 | |
| 77 | render() { |
| 78 | const { width, height, style } = this.props; |
| 79 | const styleParams = { |
| 80 | ...style, |
| 81 | width: width ? this.styleFormat(width) : '100%', |
| 82 | height: height ? this.styleFormat(height) : '300px', |
| 83 | }; |
| 84 | return ( |
| 85 | <div |
| 86 | ref={(chart) => { |
| 87 | this.chart = chart; |
| 88 | }} |
| 89 | style={styleParams} |
| 90 | /> |
| 91 | ); |
| 92 | } |
| 93 | } |
no outgoing calls
no test coverage detected