/* PSPP - a program for statistical analysis.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 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
#include <config.h>
-#include <output/charts/piechart.h>
+#include "output/charts/piechart.h"
#include <math.h>
-#include <output/cairo-chart.h>
+#include "output/cairo-chart.h"
#include "gl/minmax.h"
const double segment_angle =
pie->slices[i].magnitude / total_magnitude * 2 * M_PI ;
- const double label_x = centre_x -
- radius * sin(angle + segment_angle/2.0);
+ const double label_x = centre_x +
+ radius * cos (angle + segment_angle/2.0);
const double label_y = centre_y +
- radius * cos(angle + segment_angle/2.0);
+ radius * sin (angle + segment_angle/2.0);
/* Fill the segment */
draw_segment (cr,