Skip to content

Commit

Permalink
chore: version 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed May 1, 2024
1 parent 03050a3 commit c7872c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts-rs-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "charts-rs-derive"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
keywords = ["charts", "svg"]
description = "A derive library for charts-rs"
Expand All @@ -14,5 +14,5 @@ repository = "https://github.com/vicanso/charts-rs"
proc-macro = true

[dependencies]
quote = "1.0.35"
syn = "2.0.49"
quote = "1.0.36"
syn = "2.0.60"
3 changes: 3 additions & 0 deletions charts-rs-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ pub fn my_default(input: TokenStream) -> TokenStream {
y_axis_values_list: &[&AxisValues],
max_height: f32,
series_data_count: usize,
radius: Option<f32>,
) -> Vec<Vec<SeriesLabel>> {
if series_list.is_empty() {
return vec![];
Expand Down Expand Up @@ -589,6 +590,8 @@ pub fn my_default(input: TokenStream) -> TokenStream {
top: y,
width: bar_width,
height: max_height - y,
rx: radius,
ry: radius,
..Default::default()
});
series_labels.push(SeriesLabel{
Expand Down

0 comments on commit c7872c1

Please sign in to comment.