-
Fixes:
- Out-of-range error by validating start and end indices in candlestick chart.
-
Updates:
- Improved scaling.
-
Fixes:
- Y-axis offset of the current price mark below the candle area.
- Intersection of events between horizontal scroll and scaling.
-
New Features:
- Added
prevOffset
param intoXAxisOffsetDetails
. - Added
disableInteraction
toCandlestickChart
for disabling user interaction with the chart.
- Added
-
Updates:
- Horizontal scroll has been redesigned.
-
Fixes:
- Reset to initial state if the new widget has fewer candles.
- Increase offset to keep the current position when new candles are added.
-
New Features:
- Added
animationDuration
parameter to control the duration of animations.
- Added
-
Breaking Changes:
volumeColor
has been separated intovolumeGainColor
andvolumeLossColor
.
-
New Features:
- Added
enableGridLines
parameter to allow users to toggle the grid lines. - Added
lineColor
tocurrentPriceStyle
to customize the color of the current price line. - Added
logo
params to ChartStyle to allow users to add a logo to the chart. - Added
minVisibleCandleCount
andmaxVisibleCandleCount
to control the number of visible candles in the chart. - Added
volumeLabel
for better volume data representation. - Added
currentVolumeLabel
for real-time volume data representation. - Added
priceLabelPositions
toCandlestickChart
for better customization. - Added
distanceBetweenCandle
toCandlestickChart
for better customization.
- Added
-
Changes:
- Changed min candles length to 1.
- expose currentPrice to InteractiveChart.
- Added the ability to track changes in horizontal scrolling of the chart.
- Added the ability to display the current price on the right side of the chart.
- Now the chart is updated when the size of the list of candles changes.
- Update dependency: intl to ^0.19.0.
- Fix a potential crash if volume numbers are null.
- Fix an issue where
onTap
event was not firing. (Issue #8)
- Add
initialVisibleCandleCount
parameter for setting a default zoom level. (Issue #6)
- Allow web and desktop users to zoom the chart with mouse scroll wheel. (Issue #4)
- BREAKING: Add support for multiple trend lines. (Issue #2)
- The old
trend
property is changed totrends
, to support multiple data points perCandleData
. - The old
trendLineColor
property is changed totrendLineStyles
. - The
CandleData.computeMA
helper function no longer modifies data in-place. To migrate, changeCandleData.computeMA(data)
to the following two lines:final ma = CandleData.computeMA(data);
andfor (int i = 0; i < data.length; i++) { data[i].trends = [ma[i]]; }
. - Update example project to reflect above changes.
- Add
onTap
event andonCandleResize
event. - Allow
overlayInfo
to return an empty object. - Update example project.
- BREAKING: Organize folder structures, now you only need to
import
package:interactive_chart/interactive_chart.dart
. - BREAKING: Change CandleData
timestamp
to milliseconds, you might need to multiply your data by 1000 when creating CandleData objects. - Fix an issue where zooming was occasionally not smooth.
- Fix an issue where overlay panel was occasionally clipped.
- Improve performance.
- Allow
high
andlow
prices to be optional. - Align date/time labels towards vertical bottom.
- Initial Open Source release.