/* PSPP - a program for statistical analysis.
- Copyright (C) 2004, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2009, 2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#ifndef PIECHART_H
#define PIECHART_H
-#include <libpspp/str.h>
-#include <output/chart-item.h>
+#include "libpspp/str.h"
+#include "output/chart-item.h"
+#include "language/stats/freq.h"
struct piechart
{
double magnitude;
};
-struct chart_item *piechart_create (const char *title,
- const struct slice *, int n_slices);
+struct variable;
+
+struct chart_item *piechart_create (const struct variable *var,
+ const struct freq *, int n_slices);
\f
/* This boilerplate for piechart, a subclass of chart_item, was
autogenerated by mk-class-boilerplate. */
#include <assert.h>
-#include <libpspp/cast.h>
+#include "libpspp/cast.h"
extern const struct chart_item_class piechart_class;