Skip to content

Commit

Permalink
minor change: chart size opitimization
Browse files Browse the repository at this point in the history
  • Loading branch information
amc1999 committed May 4, 2019
1 parent 2eafcfc commit 538714d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -15,7 +15,7 @@
"axios": "^0.18.0",
"handsontable": "^6.2.2",
"material-components-web": "^1.1.0",
"plotly.js": "^1.46.0",
"plotly.js-basic-dist": "^1.47.4",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-pivottable": "^0.9.0",
Expand Down
7 changes: 5 additions & 2 deletions src/rv/PivotReact.jsx
@@ -1,12 +1,15 @@
import React from 'react';
import PivotTableUI from 'react-pivottable/PivotTableUI';
import TableRenderers from 'react-pivottable/TableRenderers';
import Plot from 'react-plotly.js';
import Plotly from 'plotly.js-basic-dist';
import createPlotlyRenderers from 'react-pivottable/PlotlyRenderers';
import {sortAs, numberFormat, aggregatorTemplates} from 'react-pivottable//Utilities';
import createPlotlyComponent from 'react-plotly.js/factory';
import {sortAs, numberFormat, aggregatorTemplates} from 'react-pivottable/Utilities';
// import 'react-pivottable/pivottable.css';
import './om-pivottable.css';

// create Plotly React component via dependency injection
const Plot = createPlotlyComponent(Plotly);
const PlotlyRenderers = createPlotlyRenderers(Plot);

export default class PivotReact extends React.Component {
Expand Down

0 comments on commit 538714d

Please sign in to comment.