; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Doc fix.

This commit is contained in:
Eli Zaretskii 2024-10-12 08:44:28 +03:00
parent 6dbe4e99ac
commit fb155bcfb6

View file

@ -574,11 +574,16 @@ R1 and R2 are dotted pairs. Colorize it with FACE."
(defun chart-bar-quickie (dir title namelst nametitle numlst numtitle (defun chart-bar-quickie (dir title namelst nametitle numlst numtitle
&optional max sort-pred) &optional max sort-pred)
"Create a bar chart in direction DIR [`horizontal' `vertical'] named TITLE. "Create a bar chart named TITLE in direction DIR [`horizontal' `vertical'].
NAMELST is the list of bar names and NAMETITLE is the name the of axis containing NAMELST is the list of bar names and NAMETITLE is the name the of axis
them. NUMLST is the list of values and NUMTITLE is the name of the value containing them.
axis. Optional arguments: Set the chart's max element display to MAX, and sort NUMLST is the list of values and NUMTITLE is the name of the value
lists with SORT-PRED if desired." axis.
Optional argument MAX limits the chart's max element display to MAX by
passing it as second argument to `chart-trim', otherwise the chart's
display is unlimited.
Optional argument SORT-PRED is a predicate function passed as second
argument to `chart-sort' to sort the lists if desired."
(let ((nc (make-instance 'chart-bar (let ((nc (make-instance 'chart-bar
:title title :title title
:key-label "8-m" ; This is a text key pic :key-label "8-m" ; This is a text key pic