ASCII and Braille backends — 6.0.0

Compare both plot-cell backends using identical data and terminal dimensions.

Signature

Signature
type Renderer = 'ascii' | 'braille'

Executable examples

ASCII backend

Source
plot(data, { renderer: 'ascii', width: 30, height: 8 });
Terminal output

 ▲                               
8┤                            ┏━ 
 │                            ┃  
 │                            ┃  
5┤         ┏━━━━━━━━┓         ┃  
 │         ┃        ┃         ┃  
 │         ┃        ┃         ┃  
3┤         ┃        ┗━━━━━━━━━┛  
2┤━━━━━━━━━┛                     
 └┬─────────┬────────┬─────────┬▶
  0         1        2         3 

Braille backend

Source
plot(data, { renderer: 'braille', width: 30, height: 8 });
Terminal output

 ▲                               
8┤                             ⡏ 
 │                             ⡇ 
 │                             ⡇ 
5┤         ⢀⣀⣀⣀⣀⣀⣀⣀⣀⣀⡀         ⡇ 
 │         ⢸         ⡇         ⡇ 
 │         ⢸         ⡇         ⡇ 
3┤         ⢸         ⠧⠤⠤⠤⠤⠤⠤⠤⠤⠤⠇ 
2┤⣀⣀⣀⣀⣀⣀⣀⣀⣀⣸                     
 └┬─────────┬────────┬─────────┬▶
  0         1        2         3