From 3f0b72d8777ae89902dcf069f850fe557d5323b5 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Tue, 16 Jun 2015 17:51:25 +0200 Subject: [PATCH] Correct and expand comment to barchart_create --- src/output/charts/barchart.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/output/charts/barchart.c b/src/output/charts/barchart.c index 5d35719a86..07a39e818f 100644 --- a/src/output/charts/barchart.c +++ b/src/output/charts/barchart.c @@ -75,7 +75,14 @@ compare_freq_2level_ptr_3way (const void *a_, const void *b_, const void *bc_) /* Creates and returns a chart that will render a barchart with - the given TITLE and the N_BARS described in CATS. */ + the given TITLE and the N_CATS described in CATS. + + VAR is an array containing the categorical variables, and N_VAR + the number of them. N_VAR must be exactly 1 or 2. + + CATS are the counts of the values of those variables. N_CATS is the + number of distinct values. +*/ struct chart_item * barchart_create (const struct variable **var, int n_vars, const char *ylabel, -- 2.30.2