Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf Grubenmann committed Jan 2, 2024
1 parent 5308542 commit 76eb5d5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/axis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ pub fn YAxis(ticks: Memo<Vec<(f64, String)>>) -> impl IntoView {
.width();
let target_width = parent_width * 0.069;
let text_size = elem.get_bounding_client_rect();
console_log(
format!(
"{},{},{}", text_size.width(), target_width, parent_width
)
.as_str(),
);
if text_size.width() > target_width {
let factor = target_width / text_size.width();
console_log(format!("{:?}", factor).as_str());
Expand Down
1 change: 1 addition & 0 deletions src/legend.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 0 additions & 1 deletion src/pie.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use itertools::Itertools;
use leptos::{svg::*, *};
use leptos_use::*;
use num_traits::ToPrimitive;
Expand Down

0 comments on commit 76eb5d5

Please sign in to comment.