Add feature of transition animation, see details in Mark.transition
. And thus the rendering engine is rewrited. The imperative Figure
classes are changed to declarative MarkElement
classes. See details in this folder: https://github.com/entronad/graphic/tree/main/lib/src/graffiti/element
Update terminology to keep same with modern mainstream data visualization libraries. Some class names have changed:
GeomElement -> Mark
Attr -> Encode
Signal -> Event
Channel -> Stream
Figure -> MarkElement
And thus some properties related are also changed, like elements -> marks
.
See in the documentation.
Some of the terminalogy has been changed in v2.0. Please follow the below guide to migrate your code.
old code | new code |
---|---|
GeomElement | Mark |
Attr | Encode |
Signal | Event |
Channel | Stream |
Figure | MarkElement |
element: | marks: |
ColorAttr | ColorEncode |
ShapeAttr | ShapeEncode |
element: | marks: |
IntervalElement | IntervalMark |
PointElement | PointMark |
LabelAttr | LabelEncode |
color | fillColor |
strokeStyle | PaintStyle |
Example of charts can be seen in the Example App. Please clone this repository and run the example project in example directory.
The Versatility of the Grammar of Graphics
How to Build Interactive Charts in Flutter
Graphic is MIT License.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。