Skip to main content

plot_twist 0.1.1 copy "plot_twist: ^0.1.1" to clipboard
plot_twist: ^0.1.1 copied to clipboard

Composable charts for Flutter. Line, bar, scatter and candlestick series, pan and zoom, and any widget as a tooltip, marker or axis label, in one data-space view.

0.1.1 #

Fixes. Nothing is removed or renamed.

  • Log scales: a log axis no longer gets stuck on the window 1 to 10 when the data, a bar's baseline of 0 or includeZero brings in a value of zero or less. Such values are missing data: automatic ranges leave them out, lines break there, and bars and filled areas grow from the edge of the plot. The fitted window reaches to the next power of the base below the smallest value, so the smallest bar still has a length.
  • Infinite values are missing data as well. One of them used to send every automatic range to its fallback.
  • LineSeries: zoomed far into sparse data, a stepped line and its fill drew the first run at the wrong height. A smooth line changed shape at the plot edges while panning, was drawn straight between two rows that bracket the window, and did not match valueAt.
  • LineSeries.dash is compared by value, so a list written in build no longer repaints the series on every rebuild.
  • TimeTicks: steps of one and two weeks fall on Mondays instead of Thursdays. In local time, steps of several days stay at midnight and steps of 3, 6 and 12 hours stay on the clock grid across a daylight saving change.
  • Ticks set on a scale or an axis to change a spacing or a format keep what the scale knows: UTC on a UTC TimeScale, the base of a LogScale, the labels of a BandScale.
  • ChartLoader: a failed load is reported to the new onError (or through FlutterError.reportError) and tried again when the window or the data changes; it used to leave that side loading for good. A load that says there is more but adds nothing is no longer repeated without end. A change of xScale is followed.
  • ChartPanZoom removed while a finger is down releases its scales, which stayed marked as interacting, also on linked charts.
  • AnimatedChartData respects reduced motion on first show too. Removing one that never animated no longer fails an assertion (seen on Flutter 3.41).
  • An axis gutter that grew during a gesture shrinks when the gesture ends.
  • ChartData.setValue updates the min/max index instead of rebuilding it, which makes a live last candle cheap on large stores.
  • FixedRange, FollowRange, LogScale and ChartLimits assert configurations that cannot work, such as a range the wrong way round or a logarithm base of 1. In release builds such values no longer throw later.

New, for custom scales and series: ChartScale.domain, ChartScale.resolveTicks, ChartData.valueExtent(within:) and ChartData.xExtentWithin. A series' bounds should leave out values outside the window it is given in each dimension, as the built-in ones now do.

0.1.0 #

First release.

  • Chart: one widget for every kind of chart. It has named scales, four side slots that take any widget, and a list of children that share one data-space view.
  • ChartController and ChartScaleController: the visible window per scale, readable, settable, animatable and listenable. Scale controllers and the crosshair focus can be shared between charts.
  • Scales: linear, logarithmic, time and band, with fit, fit-visible, fixed and follow range policies. Custom scales subclass ChartScale.
  • Widgets in data space: ChartPositioned, ChartLayoutBuilder, ChartAxis with widget labels and ChartAxisMarker.
  • Painting: ChartPaint with ChartPainter and ChartSeriesPainter.
  • Series: LineSeries, BarSeries, ScatterSeries and CandlestickSeries.
  • Behaviors: ChartPanZoom, ChartCrosshair, ChartTooltip, ChartLoader and AnimatedChartData. Custom ones use ChartGestureDetector.
  • ChartData: typed columns that grow at both ends, with an index for fast extent queries.
  • An example gallery with one demo for each of 26 aspects.
17
likes
0
points
76
downloads

Publisher

verified publisherglynskyi.com

Weekly Downloads

Composable charts for Flutter. Line, bar, scatter and candlestick series, pan and zoom, and any widget as a tooltip, marker or axis label, in one data-space view.

Homepage
Repository (GitHub)
View/report issues

Topics

#chart #visualization #graph #data-visualization #candlestick

License

unknown (license)

Dependencies

flutter

More

Packages that depend on plot_twist