diff --git a/charts-rs-derive/Cargo.toml b/charts-rs-derive/Cargo.toml index aeec37a..6845879 100644 --- a/charts-rs-derive/Cargo.toml +++ b/charts-rs-derive/Cargo.toml @@ -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" @@ -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" diff --git a/charts-rs-derive/src/lib.rs b/charts-rs-derive/src/lib.rs index 1fa1e17..e1b4fc8 100644 --- a/charts-rs-derive/src/lib.rs +++ b/charts-rs-derive/src/lib.rs @@ -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, ) -> Vec> { if series_list.is_empty() { return vec![]; @@ -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{