File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 14
14
"webpack-dev-server" : " ^3.9.0"
15
15
},
16
16
"dependencies" : {
17
- "@arction/lcjs" : " ^3.1 .0" ,
17
+ "@arction/lcjs" : " ^3.2 .0" ,
18
18
"@arction/xydata" : " ^1.4.0" ,
19
19
"clean-webpack-plugin" : " ^3.0.0" ,
20
20
"webpack" : " ^4.41.2" ,
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ let setViewNicely
74
74
const stockAxisY = chartOHLC . getDefaultAxisY ( )
75
75
. setScrollStrategy ( undefined )
76
76
. setTitle ( 'USD' )
77
+ // Synchronize left margins of the stacked charts by assigning a static Y Axis thickness for both.
78
+ . setThickness ( 80 )
79
+
77
80
// Add series.
78
81
const areaRange = chartOHLC . addAreaRangeSeries ( { yAxis : stockAxisY } )
79
82
. setName ( 'Bollinger band' )
@@ -144,6 +147,8 @@ const legendBoxVolume = chartVolume.addLegendBox(LegendBoxBuilders.VerticalLegen
144
147
// Create Y-axis for series (view is set manually).
145
148
const volumeAxisY = chartVolume . getDefaultAxisY ( )
146
149
. setTitle ( 'USD' )
150
+ // Synchronize left margins of the stacked charts by assigning a static Y Axis thickness for both.
151
+ . setThickness ( 80 )
147
152
const volume = chartVolume . addAreaSeries ( { yAxis : volumeAxisY } )
148
153
. setName ( 'Volume' )
149
154
You can’t perform that action at this time.
0 commit comments