Skip to Content
WidgetsCanvas

Canvas

Canvas is the lowest-level plotting widget in this group.

Canvas
Canvas terminal preview
Terminal preview of Canvas

Smallest example

let canvas = Canvas::new() .size(20, 8) .point(2, 2, '•') .point(10, 5, '•') .build();

Use Canvas when

  • you want explicit coordinates
  • the higher-level chart widgets are too opinionated
Last updated on