import React, { Component } from 'react';
import PropTypes from 'prop-types';
import HighchartsChart from '../HighchartsChart';
import Options3d from '../Options3d';

class Highcharts3dChart extends Component {

  render () {
    const {
      children, alpha, axisLabelPosition, beta, depth, fitToPlot, frame, viewDistance, ...rest
    } = this.props;

    const chart = {
      options3d: { enabled: true }
    };
    const zAxis = {
      id: 'zAxis'
    };

    return (
      <HighchartsChart chart={chart} zAxis={zAxis} {...rest}>
        <Options3d
          alpha={alpha}
          axisLabelPosition={axisLabelPosition}
          beta={beta}
          depth={depth}
          fitToPlot={fitToPlot}
          frame={frame}
          viewDistance={viewDistance} />
        {children}
      </HighchartsChart>
    );
  }
}

export default Highcharts3dChart;

@@ -39,44 +39,8 @@
 t';%0A
-import PropTypes from 'prop-types';%0A
 impo
@@ -169,16 +169,59 @@
 nent %7B%0A%0A
+  static propTypes = Options3d.propTypes;%0A%0A
   render

Add propTypes to Highcharts3dChart