Skip to content

Commit

Permalink
fix spacing issues in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyandrews committed Aug 17, 2023
1 parent 42d7965 commit 9480849
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,12 @@ impl<'a, T: Clone + TimeSeriesValue<T, U>, U: Serialize + Copy + PartialEq + Par

let formatted_line = format!(
r#"{{
name: '{label}',
type: 'line',
symbol: 'none',
sampling: 'lttb',
data: {values},
}},
name: '{label}',
type: 'line',
symbol: 'none',
sampling: 'lttb',
data: {values},
}},
"#,
label = label,
values = json!(self.add_timestamp_to_html_graph_data(
Expand All @@ -403,10 +403,10 @@ impl<'a, T: Clone + TimeSeriesValue<T, U>, U: Serialize + Copy + PartialEq + Par
(
format!(
r#"legend: {{
type: '{legend_type}',
width: '75%',
data: {data},
}},"#,
type: '{legend_type}',
width: '75%',
data: {data},
}},"#,
legend_type = if self.data.len() > 4 {
"scroll"
} else {
Expand Down

0 comments on commit 9480849

Please sign in to comment.