File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class App extends Component {
1616 const dataSourceOptions = [
1717 { value : 'col1' , label : 'CO2' } ,
1818 { value : 'col2' , label : 'NO2' } ,
19- { value : 'col2 ' , label : 'SiO2' } ,
19+ { value : 'col3 ' , label : 'SiO2' } ,
2020 ] ;
2121
2222 // A basic starting plotly.js figure object. Instead of assigning
@@ -66,14 +66,16 @@ class App extends Component {
6666 plotly = { plotly }
6767 revision = { this . state . editorRevision }
6868 />
69- < Plot
70- debug
71- data = { this . state . figure . data }
72- layout = { this . state . figure . layout }
73- onUpdate = { this . hub . handlePlotUpdate }
74- onInitialized = { this . hub . handlePlotInitialized }
75- revision = { this . state . plotRevision }
76- />
69+ < div className = "plotlyPlot" >
70+ < Plot
71+ debug
72+ data = { this . state . figure . data }
73+ layout = { this . state . figure . layout }
74+ onUpdate = { this . hub . handlePlotUpdate }
75+ onInitialized = { this . hub . handlePlotInitialized }
76+ revision = { this . state . plotRevision }
77+ />
78+ </ div >
7779 </ div >
7880 ) ;
7981 }
Original file line number Diff line number Diff line change 33 padding : 0 ;
44 font-family : sans-serif;
55}
6+
7+ .plotlyPlot {
8+ vertical-align : top;
9+ display : inline-block;
10+ }
You can’t perform that action at this time.
0 commit comments