projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FREQUENCIES BARCHART: Honour then PERCENT option
[pspp]
/
src
/
output
/
charts
/
barchart.h
diff --git
a/src/output/charts/barchart.h
b/src/output/charts/barchart.h
index d47ce165bb24d641f67ced9f2dcf9ea0e260f903..b8b2122cb9b6bc9c50bad79d899553ef66d13359 100644
(file)
--- a/
src/output/charts/barchart.h
+++ b/
src/output/charts/barchart.h
@@
-37,6
+37,9
@@
struct barchart
{
struct chart_item chart_item;
{
struct chart_item chart_item;
+ /* Should the chart be displayed as percentages */
+ bool percent;
+
/* The categories */
struct freq **cats;
/* The categories */
struct freq **cats;
@@
-49,6
+52,9
@@
struct barchart
/* The largest count of all the categories */
double largest;
/* The largest count of all the categories */
double largest;
+ /* The sum of all the counts */
+ double total_count;
+
/* The label for the ordinate (vertical axis) */
char *ylabel;
/* The label for the ordinate (vertical axis) */
char *ylabel;
@@
-75,7
+81,7
@@
struct variable;
struct freq;
struct chart_item *barchart_create (const struct variable **, int n_vars,
struct freq;
struct chart_item *barchart_create (const struct variable **, int n_vars,
- const char *ylabel,
+ const char *ylabel,
bool percent,
struct freq *const *, int n_cats);
\f
/* This boilerplate for barchart, a subclass of chart_item, was
struct freq *const *, int n_cats);
\f
/* This boilerplate for barchart, a subclass of chart_item, was