package matrix

  1. Overview
  2. Docs

Module Matrix_charts.CharsetSource

Character sets for chart rendering.

Each preset provides a complete set of glyphs for frames, axes, ticks, gridlines, data points, and tooltips.

Sourcetype line_pattern = [
  1. | `Solid
  2. | `Dashed
  3. | `Dotted
]

The type for line rendering patterns.

Sourcetype frame = {
  1. tl : string;
    (*

    Top-left corner.

    *)
  2. tr : string;
    (*

    Top-right corner.

    *)
  3. bl : string;
    (*

    Bottom-left corner.

    *)
  4. br : string;
    (*

    Bottom-right corner.

    *)
  5. h : string;
    (*

    Horizontal segment.

    *)
  6. v : string;
    (*

    Vertical segment.

    *)
  7. tee_up : string;
    (*

    Upward tee junction.

    *)
  8. tee_down : string;
    (*

    Downward tee junction.

    *)
  9. tee_left : string;
    (*

    Leftward tee junction.

    *)
  10. tee_right : string;
    (*

    Rightward tee junction.

    *)
  11. cross : string;
    (*

    Cross junction.

    *)
}

The type for box-drawing character sets.

Sourcetype t = {
  1. frame : frame;
    (*

    Primary frame characters.

    *)
  2. axis_h : string;
    (*

    Horizontal axis line.

    *)
  3. axis_v : string;
    (*

    Vertical axis line.

    *)
  4. tick_h : string;
    (*

    Horizontal tick mark.

    *)
  5. tick_v : string;
    (*

    Vertical tick mark.

    *)
  6. grid_h_solid : string;
    (*

    Horizontal solid gridline.

    *)
  7. grid_v_solid : string;
    (*

    Vertical solid gridline.

    *)
  8. grid_h_dashed : string;
    (*

    Horizontal dashed gridline.

    *)
  9. grid_v_dashed : string;
    (*

    Vertical dashed gridline.

    *)
  10. grid_h_dotted : string;
    (*

    Horizontal dotted gridline.

    *)
  11. grid_v_dotted : string;
    (*

    Vertical dotted gridline.

    *)
  12. point_default : string;
    (*

    Default scatter point glyph.

    *)
  13. point_heavy : string;
    (*

    Heavy scatter point glyph.

    *)
  14. bar_fill : string;
    (*

    Bar fill character.

    *)
  15. shade_levels : string array;
    (*

    Shade density levels, lightest to heaviest.

    *)
  16. tooltip_frame : frame;
    (*

    Tooltip border characters.

    *)
  17. diag_up : string;
    (*

    Upward diagonal.

    *)
  18. diag_down : string;
    (*

    Downward diagonal.

    *)
}

The type for complete chart character sets.

Sourceval ascii : t

ASCII-only characters.

Sourceval unicode_light : t

Light Unicode box-drawing characters.

Sourceval unicode_heavy : t

Heavy Unicode box-drawing characters.

Sourceval unicode_rounded : t

Rounded Unicode box-drawing characters.

Sourceval default : t

default is unicode_light.