@@ -65,7 +65,7 @@ impl CanvasBackend {
6565 /// Sets the stroke style and line width in the underlying context.
6666 fn set_line_style ( & mut self , style : & impl BackendStyle ) {
6767 self . context
68- . set_stroke_style ( & make_canvas_color ( style. as_color ( ) ) ) ;
68+ . set_stroke_style ( & make_canvas_color ( style. color ( ) ) ) ;
6969 self . context . set_line_width ( style. stroke_width ( ) as f64 ) ;
7070 }
7171}
@@ -346,7 +346,7 @@ mod test {
346346 let mut chart = ChartBuilder :: on ( & root)
347347 . caption ( "This is a test" , ( "sans-serif" , 20 ) )
348348 . set_all_label_area_size ( 40 )
349- . build_ranged ( 0 ..10 , 0 ..10 )
349+ . build_cartesian_2d ( 0 ..10 , 0 ..10 )
350350 . unwrap ( ) ;
351351
352352 chart
@@ -381,7 +381,7 @@ mod test {
381381 let mut chart = ChartBuilder :: on ( & root)
382382 . caption ( "All anchor point positions" , ( "sans-serif" , 20 ) )
383383 . set_all_label_area_size ( 40 )
384- . build_ranged ( 0 ..100 , 0 ..50 )
384+ . build_cartesian_2d ( 0 ..100 , 0 ..50 )
385385 . unwrap ( ) ;
386386
387387 chart
@@ -464,7 +464,7 @@ mod test {
464464 let mut chart = ChartBuilder :: on ( & root)
465465 . caption ( "All series label positions" , ( "sans-serif" , 20 ) )
466466 . set_all_label_area_size ( 40 )
467- . build_ranged ( 0 ..50 , 0 ..50 )
467+ . build_cartesian_2d ( 0 ..50 , 0 ..50 )
468468 . unwrap ( ) ;
469469
470470 chart
0 commit comments