Skip to content

Commit

Permalink
fix: fix font family for image
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Aug 27, 2023
1 parent 18e6b8a commit ac3dc8d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified asset/image/line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion asset/line_chart/basic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion asset/line_chart/basic_json.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/charts/line_chart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ impl LineChart {
let line_height = 20.0;
c1.text(Text {
text: format_float(value),
font_family: Some(self.font_family.clone()),
font_size: Some(self.series_label_font_size),
line_height: Some(line_height),
font_color: Some(self.series_label_font_color),
x: Some(c1.width() + 2.0),
// arrow底部高风高度 5.0
y: Some(y + 5.0),
y: Some(y - line_height / 2.0 + 1.0),
..Default::default()
});
}
Expand Down

0 comments on commit ac3dc8d

Please sign in to comment.