[gnumeric] Export radial plot axes to xlsx.



commit cd5a96916c13ee5b5a8796700df7d1ef5f5eea19
Author: Jean Brefort <jean brefort normalesup org>
Date:   Mon Mar 14 14:34:36 2011 +0100

    Export radial plot axes to xlsx.

 plugins/excel/ChangeLog            |    5 +++++
 plugins/excel/xlsx-write-drawing.c |    8 +++++---
 2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 46f43cb..dbf38ce 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-14  Jean Brefort  <jean brefort normalesup org>
+
+	* xlsx-write-drawing.c (xlsx_write_chart): export radial plot axes,
+	anf fix overlap in barcol plots.
+
 2011-03-13  Morten Welinder  <terra gnome org>
 
 	* xlsx-utils.c (xlsx_lookup_external_wb): It looks like [0] is
diff --git a/plugins/excel/xlsx-write-drawing.c b/plugins/excel/xlsx-write-drawing.c
index 9989adb..6410df4 100644
--- a/plugins/excel/xlsx-write-drawing.c
+++ b/plugins/excel/xlsx-write-drawing.c
@@ -231,12 +231,12 @@ xlsx_write_chart (XLSXWriteState *state, GsfOutput *chart_part, SheetObject *so)
 		xlsx_write_plot_1_5_type (xml, plot);
 
 		gsf_xml_out_start_element (xml, "c:overlap");
-		gsf_xml_out_add_int (xml, "val", -overlap_percentage);
-		gsf_xml_out_end_element (xml); /* </c:grouping> */
+		gsf_xml_out_add_int (xml, "val", overlap_percentage);
+		gsf_xml_out_end_element (xml);
 		
 		gsf_xml_out_start_element (xml, "c:gapWidth");
 		gsf_xml_out_add_int (xml, "val", gap_percentage);
-		gsf_xml_out_end_element (xml); /* </c:grouping> */
+		gsf_xml_out_end_element (xml);
 	} else if (0 == strcmp (plot_type, "GogLinePlot")) {
 		gsf_xml_out_start_element (xml, "c:lineChart");
 		xlsx_write_plot_1_5_type (xml, plot);
@@ -268,6 +268,8 @@ xlsx_write_chart (XLSXWriteState *state, GsfOutput *chart_part, SheetObject *so)
 	} else if (0 == strcmp (plot_type, "GogRadarPlot") ||
 		   0 == strcmp (plot_type, "GogRadarAreaPlot")) {
 		gsf_xml_out_start_element (xml, "c:radarChart");
+		axis_type[0] = GOG_AXIS_CIRCULAR;
+		axis_type[1] = GOG_AXIS_RADIAL;
 	} else if (0 == strcmp (plot_type, "GogBubblePlot")) {
 		gboolean show_neg = FALSE, in_3d = FALSE, as_area = TRUE;
 		g_object_get (G_OBJECT (plot),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]