Skip to content

Commit 079f65d

Browse files
committed
Update LCJS version
1 parent 650440e commit 079f65d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"webpack-dev-server": "^3.9.0"
1515
},
1616
"dependencies": {
17-
"@arction/lcjs": "^3.1.0",
17+
"@arction/lcjs": "^3.2.0",
1818
"@arction/xydata": "^1.4.0",
1919
"clean-webpack-plugin": "^3.0.0",
2020
"webpack": "^4.41.2",

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ let setViewNicely
7474
const stockAxisY = chartOHLC.getDefaultAxisY()
7575
.setScrollStrategy(undefined)
7676
.setTitle('USD')
77+
// Synchronize left margins of the stacked charts by assigning a static Y Axis thickness for both.
78+
.setThickness(80)
79+
7780
// Add series.
7881
const areaRange = chartOHLC.addAreaRangeSeries({ yAxis: stockAxisY })
7982
.setName('Bollinger band')
@@ -144,6 +147,8 @@ const legendBoxVolume = chartVolume.addLegendBox(LegendBoxBuilders.VerticalLegen
144147
// Create Y-axis for series (view is set manually).
145148
const volumeAxisY = chartVolume.getDefaultAxisY()
146149
.setTitle('USD')
150+
// Synchronize left margins of the stacked charts by assigning a static Y Axis thickness for both.
151+
.setThickness(80)
147152
const volume = chartVolume.addAreaSeries({ yAxis: volumeAxisY })
148153
.setName('Volume')
149154

0 commit comments

Comments
 (0)