aboutsummaryrefslogtreecommitdiff
path: root/examples/two-scales.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/two-scales.rs')
-rw-r--r--examples/two-scales.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/two-scales.rs b/examples/two-scales.rs
index 33939e6..46f8976 100644
--- a/examples/two-scales.rs
+++ b/examples/two-scales.rs
@@ -11,7 +11,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.right_y_label_area_size(40)
.margin(5)
.caption("Dual Y-Axis Example", ("sans-serif", 50.0).into_font())
- .build_ranged(0f32..10f32, LogRange(0.1f32..1e10f32))?
+ .build_cartesian_2d(0f32..10f32, LogRange(0.1f32..1e10f32))?
.set_secondary_coord(0f32..10f32, -1.0f32..1.0f32);
chart
@@ -50,3 +50,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
Ok(())
}
+#[test]
+fn entry_point() {
+ main().unwrap()
+}