File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
2
npm-debug.log
3
3
examples /bundle.js
4
+ yarn.lock
Original file line number Diff line number Diff line change 73
73
"react-dom" : " >=15.0.0" ,
74
74
"react-dropzone" : " ^4.2.1" ,
75
75
"react-hot-loader" : " ^3.1.1" ,
76
- "react-plotly.js" : " ^1 .0.2 " ,
76
+ "react-plotly.js" : " ^2 .0.0 " ,
77
77
"style-loader" : " ^0.19.0" ,
78
78
"webpack" : " ^3.8.1" ,
79
79
"webpack-dev-server" : " ^2.9.3"
Original file line number Diff line number Diff line change @@ -70,15 +70,16 @@ function makeRenderer(
70
70
width : window . innerWidth / 1.5 ,
71
71
height : window . innerHeight / 1.4 - 50 ,
72
72
/* eslint-enable no-magic-numbers */
73
+ xaxis : {
74
+ title : transpose ? fullAggName : null ,
75
+ automargin : true ,
76
+ } ,
77
+ yaxis : {
78
+ title : transpose ? null : fullAggName ,
79
+ automargin : true ,
80
+ } ,
73
81
} ;
74
82
75
- if ( transpose ) {
76
- // eslint-disable-next-line no-magic-numbers
77
- layout . xaxis = { domain : [ 0.1 , 1.0 ] , title : fullAggName } ;
78
- } else {
79
- layout . yaxis = { title : fullAggName } ;
80
- }
81
-
82
83
return (
83
84
< PlotlyComponent
84
85
data = { data }
You can’t perform that action at this time.
0 commit comments