Releases: tradingview/lightweight-charts
Releases · tradingview/lightweight-charts
3.0.1
Fixed
- Correctly handle
overlay: true
in series options while create series to backward compat (see #475)
See issues assigned to this version's milestone or changes since the last published version.
3.0.0
Breaking changes
We have some breaking changes since the latest version due some features and API improvements:
- Methods
subscribeVisibleTimeRangeChange
andunsubscribeVisibleTimeRangeChange
has been moved from ChartApi to TimeScaleApi - Since 3.0 you can specify price axis you'd like to place the series on. The same for moving the series between price scales (see migration guide below)
See breaking changes doc with migration guide to migrate smoothly.
Enhancement
- Added ability to customize time scale tick marks formatter (see #226)
- Added ability to put text for series markers (see #207)
- Added ability to specify your own date formatter (see #368)
- Improved tick marks generation algorithm for the first point (see #387)
- Made inbound types weakly (outbound ones should be strict) (see #374)
- Removed non-exported const enum's JS code (see #432)
- Introduced ts-transformer-properties-rename instead of ts-transformer-minify-privates (see #436)
Added
- Add ability to override series' autoscale range (see #392)
- Add API to get price scale's width (see #452)
- Disabling/enabling scaling axis for both price and time (see #440)
- Get screen coordinate by a time point (see #435)
- Remove tick mark from price label (see #378)
- Support the second price axis (see #129)
- Visible time range should have bars count of the space from left/right (see #335)
Fixed
series.setMarkers
requires at least one data point (see #372)- Impossible to override the only width or height in constructor (see #353)
- Incorrect alignment of markers if series has gaps (see #464)
- Multiple series: error while trying to scroll the chart (see #373)
- Replace const enums with enums to let use them in projects with enabled isolatedModules option (see #375)
Thanks to our contributors:
- Ben Guidarelli @barnjamin
- gkaindl @gkaindl
- scrwdrv @scrwdrv
- Yusuf Sahin HAMZA @yusufsahinhamza
See issues assigned to this version's milestone or changes since the last published version.
2.0.0
Breaking changes
- Removed unused
lineWidth
property fromHistogramStyleOptions
interface (it affects nothing, but could break your compilation) - Changed order of
width
andheight
args inresize
method (#157) - Pattern for all non-solid (dotted, dashed, large dashed and sparse dotted) line styles was a bit changed (#274)
Enhancement
Added
- Disable all kinds of scrolls and touch with one option (#230)
- Added to the acceptable date formats (#296)
- Add option to show the "global" last value of the series instead of the last visible (#203)
Fixed
- Price line didn`t hightlight price (#273)
- CreatePriceLine not removed (#285)
- Crosshair line not visible when priceScale position set to none (#302)
- chart.resize parameter is inverted (#157)
- Removed unnecessary spacing from left/right (1 bar from each side) in
fitContent
(#345)
Thanks to our contributors:
- Andree Yosua @SuperPenguin
- kpaape @kpaape
- Matt Conway @RetWolf
See issues assigned to this version’s milestone or changes since the last published version.
1.2.2
1.2.1
Added
- Add custom price lines (#183)
- Migrate canvas-related logic to fancy-canvas library (#141)
- Add coordinateToPrice method to ISeriesApi (#171)
Fixed
- Scrolling by price is incorrect (#213)
- Histogram (volume) does not honor color setting (sometimes) (#233)
- Logarithmic scaling is applied to volume (#227)
- hoveredSeries in mouse events params is always undefined (#190)
lineType
option does not work for area/line series (#220)- Double clicking on time scale will reset fix left edge (#224)
- Series' marker does not aligned after autoscale (#212)
- Error on setData empty array for overlay histogram series (#267)
- Added some missing docs (#211 #193 #245)
See issues assigned to this version’s milestone or changes since the last published version.
1.1.0
Added
- Apply localization to specific series (#62)
- Series-based markers (#24)
- Reduced size of the library by using
ts-transformer-minify-privates
transformer (#98)
Fixed
- The chart can't start from the left (#144)
- OHLC charts render incorrect when
value
is provided (#165) - Price axis is not shown if series is created inside promise chain (#164)
- The line chart can't move to the left (#143)
- Lots of non-passive event listener warnings (#139)
- applyOptions of histogram series with color doesn't affect the data (#112)
- Price Axis Scaling Bug (#122)
- LineSeries is not displayed if starting x value is out of viewport (#116)
- Crosshair isn't updated when timescale is changed (#120)
- Pinch isn't prevented by long tap (#95)
Thanks to our contributors:
- zach @n8tb1t
- Chris Kaczor @krzkaczor
See issues assigned to this version’s milestone or changes since the last published version.