Skip to content

Commit

Permalink
revert line test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KG32 committed Dec 13, 2024
1 parent 31eecc7 commit de84e8c
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions charming/tests/line.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
use assert_json_diff::assert_json_eq;
use charming::{
component::Axis,
element::{AxisType, Emphasis},
series::Line,
Chart,
};
use charming::{component::Axis, element::AxisType, series::Line, Chart};
use serde_json::json;

#[test]
Expand All @@ -23,11 +18,6 @@ fn basic_line_chart() {
{
"data": [150, 230, 224, 218, 135, 147, 260],
"type": "line",
"silent": false,
"z": 3,
"emphasis": {
"disabled": false
}
}
],
}
Expand All @@ -40,13 +30,7 @@ fn basic_line_chart() {
.data(vec!["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]),
)
.y_axis(Axis::new().type_(AxisType::Value))
.series(
Line::new()
.silent(false)
.z(3)
.emphasis(Emphasis::new().disabled(false))
.data(vec![150, 230, 224, 218, 135, 147, 260]),
);
.series(Line::new().data(vec![150, 230, 224, 218, 135, 147, 260]));

let charming_json = serde_json::from_str::<serde_json::Value>(&chart.to_string()).unwrap();
println!("{}", serde_json::to_string_pretty(&echarts_json).unwrap());
Expand Down

0 comments on commit de84e8c

Please sign in to comment.