thistogram
Version:
A simple text based histogram and chart generator
22 lines • 1.18 kB
JavaScript
export var BoxSymbol;
(function (BoxSymbol) {
BoxSymbol[BoxSymbol["topLeft"] = 0] = "topLeft";
BoxSymbol[BoxSymbol["topRight"] = 1] = "topRight";
BoxSymbol[BoxSymbol["bottomRight"] = 2] = "bottomRight";
BoxSymbol[BoxSymbol["bottomLeft"] = 3] = "bottomLeft";
BoxSymbol[BoxSymbol["vertical"] = 4] = "vertical";
BoxSymbol[BoxSymbol["horizontal"] = 5] = "horizontal";
BoxSymbol[BoxSymbol["leftT"] = 6] = "leftT";
BoxSymbol[BoxSymbol["rightT"] = 7] = "rightT";
BoxSymbol[BoxSymbol["bottomT"] = 8] = "bottomT";
BoxSymbol[BoxSymbol["topT"] = 9] = "topT";
BoxSymbol[BoxSymbol["cross"] = 10] = "cross";
})(BoxSymbol || (BoxSymbol = {}));
/**
* The characters used to draw the box plot.
* top-left, top-right, bottom-right, bottom-left, vertical, horizontal, left-T, right-T, bottom-T, top-T, cross
*/
export const boxSymbols = ['┏', '┓', '┛', '┗', '┃', '━', '┣', '┫', '┻', '┳', '╋'];
export const histoCharsBottomToTop = ['▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'];
export const histoCharsLeftToRight = ['▏', '▎', '▍', '▌', '▋', '▊', '▉', '█'];
//# sourceMappingURL=drawingCharacters.js.map