X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fbarchart.h;h=b8b2122cb9b6bc9c50bad79d899553ef66d13359;hb=389df78f3bf8c730238f4ed5e5ae09d14c7bff5d;hp=d47ce165bb24d641f67ced9f2dcf9ea0e260f903;hpb=488ddc764e6f35217240ca0418080c08d4b14070;p=pspp diff --git a/src/output/charts/barchart.h b/src/output/charts/barchart.h index d47ce165bb..b8b2122cb9 100644 --- a/src/output/charts/barchart.h +++ b/src/output/charts/barchart.h @@ -37,6 +37,9 @@ struct barchart { struct chart_item chart_item; + /* Should the chart be displayed as percentages */ + bool percent; + /* The categories */ struct freq **cats; @@ -49,6 +52,9 @@ struct barchart /* 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; @@ -75,7 +81,7 @@ struct variable; 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); /* This boilerplate for barchart, a subclass of chart_item, was