CellWidth set the width of cells (or grids) in the heat map, not the terminal cell. The default height of each cell (grid) is 1 and the width is 3.
(w int)
| 68 | // CellWidth set the width of cells (or grids) in the heat map, not the terminal cell. |
| 69 | // The default height of each cell (grid) is 1 and the width is 3. |
| 70 | func CellWidth(w int) Option { |
| 71 | return option(func(opts *options) { |
| 72 | opts.cellWidth = w |
| 73 | }) |
| 74 | } |
| 75 | |
| 76 | // SquareCells configures each heatmap value to use two terminal columns, which |
| 77 | // reads closer to a square cell on typical terminals where character cells are |