[package]
edition = "2024"
name = "charton"
version = "0.5.0"
authors = ["Jiawen Wang <wangjiawen2013@163.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance, layered charting system for Rust, featuring a flexible data core and multi-backend rendering."
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/wangjiawen2013/charton"
[features]
arrow = ["dep:arrow"]
bridge = [
"dep:polars",
"dep:serde",
"dep:serde_json",
"dep:base64",
"resvg",
]
default = ["parallel"]
parallel = ["dep:rayon"]
resvg = ["dep:resvg"]
[lib]
name = "charton"
path = "src/lib.rs"
[[example]]
name = "2d_density"
path = "examples/2d_density.rs"
[[example]]
name = "altair"
path = "examples/altair.rs"
[[example]]
name = "area"
path = "examples/area.rs"
[[example]]
name = "bar_with_errorbar"
path = "examples/bar_with_errorbar.rs"
[[example]]
name = "base"
path = "examples/base.rs"
[[example]]
name = "cumulative_frequency"
path = "examples/cumulative_frequency.rs"
[[example]]
name = "density"
path = "examples/density.rs"
[[example]]
name = "distribution"
path = "examples/distribution.rs"
[[example]]
name = "donut"
path = "examples/donut.rs"
[[example]]
name = "errorbar"
path = "examples/errorbar.rs"
[[example]]
name = "grouped_bar"
path = "examples/grouped_bar.rs"
[[example]]
name = "grouped_bar_with_errorbar_1"
path = "examples/grouped_bar_with_errorbar_1.rs"
[[example]]
name = "grouped_bar_with_errorbar_2"
path = "examples/grouped_bar_with_errorbar_2.rs"
[[example]]
name = "grouped_boxplot"
path = "examples/grouped_boxplot.rs"
[[example]]
name = "heatmap"
path = "examples/heatmap.rs"
[[example]]
name = "histogram"
path = "examples/histogram.rs"
[[example]]
name = "line"
path = "examples/line.rs"
[[example]]
name = "line_with_error"
path = "examples/line_with_error.rs"
[[example]]
name = "log_scale"
path = "examples/log_scale.rs"
[[example]]
name = "matplotlib"
path = "examples/matplotlib.rs"
[[example]]
name = "nightingale"
path = "examples/nightingale.rs"
[[example]]
name = "normalized_stacked_area_chart"
path = "examples/normalized_stacked_area_chart.rs"
[[example]]
name = "pie"
path = "examples/pie.rs"
[[example]]
name = "rose"
path = "examples/rose.rs"
[[example]]
name = "rule"
path = "examples/rule.rs"
[[example]]
name = "scatter"
path = "examples/scatter.rs"
[[example]]
name = "simple_stacked_area_chart"
path = "examples/simple_stacked_area_chart.rs"
[[example]]
name = "stacked_bar"
path = "examples/stacked_bar.rs"
[[example]]
name = "steamgraph"
path = "examples/steamgraph.rs"
[[example]]
name = "strip"
path = "examples/strip.rs"
[[example]]
name = "swapped_axes"
path = "examples/swapped_axes.rs"
[[example]]
name = "text"
path = "examples/text.rs"
[[example]]
name = "time_scale"
path = "examples/time_scale.rs"
[[example]]
name = "w"
path = "examples/w.rs"
[[example]]
name = "weight_loss_curve"
path = "examples/weight_loss_curve.rs"
[[test]]
name = "test_altair"
path = "tests/test_altair.rs"
[[test]]
name = "test_area"
path = "tests/test_area.rs"
[[test]]
name = "test_bar"
path = "tests/test_bar.rs"
[[test]]
name = "test_base"
path = "tests/test_base.rs"
[[test]]
name = "test_boxplot"
path = "tests/test_boxplot.rs"
[[test]]
name = "test_empty"
path = "tests/test_empty.rs"
[[test]]
name = "test_errorbar"
path = "tests/test_errorbar.rs"
[[test]]
name = "test_histogram"
path = "tests/test_histogram.rs"
[[test]]
name = "test_line"
path = "tests/test_line.rs"
[[test]]
name = "test_pie"
path = "tests/test_pie.rs"
[[test]]
name = "test_rect"
path = "tests/test_rect.rs"
[[test]]
name = "test_rule"
path = "tests/test_rule.rs"
[[test]]
name = "test_scatter"
path = "tests/test_scatter.rs"
[[test]]
name = "test_text"
path = "tests/test_text.rs"
[[test]]
name = "test_tick"
path = "tests/test_tick.rs"
[[test]]
name = "test_to_svg"
path = "tests/test_to_svg.rs"
[[test]]
name = "test_transform_calculate"
path = "tests/test_transform_calculate.rs"
[[test]]
name = "test_transform_window"
path = "tests/test_transform_window.rs"
[dependencies.ahash]
version = "0.8"
[dependencies.arrow]
version = "58.1"
optional = true
default-features = false
[dependencies.base64]
version = "0.22"
optional = true
[dependencies.csscolorparser]
version = "0.8"
[dependencies.html-escape]
version = "0.2"
[dependencies.kernel-density-estimation]
version = "0.2"
[dependencies.polars]
version = "0.53"
features = [
"lazy",
"parquet",
"ipc",
]
optional = true
default-features = false
[dependencies.rayon]
version = "1.11"
optional = true
[dependencies.resvg]
version = "0.47"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1.0"
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.time]
version = "0.3"
features = [
"macros",
"formatting",
]