charts-rs
charts-rs
It is a chart library implemented in pure rust. It is easy to use and has high performance. The generated svg is less than 10ms, and the png is less than 50ms. Provides a simple way to generate charts, it supports svg
two png
output formats, and supports light
, dark
, grafana
and ant
themes, and the default theme is light
. The following chart types are now supported: Bar
, HorizontalBar
, Line
, Pie
, Radar
, Scatter
, Candlestick
and Table
.
Version 0.1.20 mainly adds the following features:
- Added support for scatter charts and candle charts
- Line graph supports specifying start point
- Added a margin that supports three sets of attributes: X-axis, Y-axis, and example graph
- Added support for setting the maximum and minimum values of the Y axis
- Y-axis formatting adds thousandths form `{t}`
Online demo address
You can directly try to modify the parameters online to preview the effect, the address is as follows: https://charts.npmtrend.com/
Project source address:
https://github.com/vicanso/charts-rs