It is a library that provides different types of charts to plot data points. Currently it supports only Radar Chart, but will support more types in the coming future.
A chart which plots the values in the form of a spider web or radar. It takes the @required values parameter which provides the data points and @required maxValue which defines the scale of the graph. E.g. The chart contains five levels, if maxValue=10, then each level will have the value '2'.
The other parameters are optional which define different behaviours for the chart like:
labels - which will be shown in the graph, if not provided, will default to the value of data points. If provided, it's length should be same as that of values
size - which defines the canvas area defaults to Size.infinite and is constrained by the parent widget.
fillColor - defines the background color of the plotted graph, if not provided, defaults to Colors.black26.
strokeColor - defines the color of the chart outlines, defaults to Colors.black87.
labelColor - defines the color of the chart labels, defaults to Colors.white.
maxHeight and maxWidth - defines the maximum width and height of the chart when no parent constraints are applied, otherwise ignored.
textScaleFactor - defines the factor by which the label's textSize should increase, if not provided defaults to 0.04
labelWidth - defines the maximum width of the labels, if not provided, defaults to internally calculated values based on the size of the chart.
maxLinesForLabels - defines the maximum lines for the label's text, if not provided, defaults to the hundredth part of the container height of the parent container. E.g.if height of the parent is 200, the maxLinesForLabels=2
animate - defines the animation toggle, if true, the chart will animate, else not. Defaults to true.
animationDuration - defines the duration of the animation for the graph. If not provided, defaults to 1500 milliseconds.
curve - defines the animation's progress in a non-linear fashion.
chartRadiusFactor - defines the factor by which the chart radius increases with respect to width or height (whatever is minimum). If not provided, defaults to 0.8 (80%)
- Foreign Function Interface for interoperability with the C programming language. [...]
- HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
- Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.