[gnumeric] xlsx: start work on writing surface charts.



commit 0359b22af12d5cf5286c3e45c6d1cce3724c4b4b
Author: Morten Welinder <terra gnome org>
Date:   Tue Oct 24 13:25:58 2017 -0400

    xlsx: start work on writing surface charts.
    
    Nowhere near done yet.  Expect criticals.

 plugins/excel/ChangeLog            |    1 +
 plugins/excel/xlsx-utils.c         |    4 +++-
 plugins/excel/xlsx-utils.h         |    4 +++-
 plugins/excel/xlsx-write-drawing.c |    6 ++++++
 4 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 6f55449..db7aeba 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -2,6 +2,7 @@
 
        * xlsx-write-drawing.c (xlsx_write_axis): Write a pseudo-3d axis
        as a serAx.
+       (xlsx_write_one_plot): Start work on surface charts.
 
 2017-10-23  Morten Welinder  <terra gnome org>
 
diff --git a/plugins/excel/xlsx-utils.c b/plugins/excel/xlsx-utils.c
index 58ed4d6..13b673e 100644
--- a/plugins/excel/xlsx-utils.c
+++ b/plugins/excel/xlsx-utils.c
@@ -724,7 +724,9 @@ xlsx_plottype_from_type_name (const char *type_name)
                "GogBubblePlot",
                "GogXYPlot",
                "GogContourPlot",
-               "XLContourPlot"
+               "XLContourPlot",
+               "GogSurfacePlot",
+               "XLSurfacePlot"
        };
        unsigned plot_type;
 
diff --git a/plugins/excel/xlsx-utils.h b/plugins/excel/xlsx-utils.h
index b975f5f..bc8d34b 100644
--- a/plugins/excel/xlsx-utils.h
+++ b/plugins/excel/xlsx-utils.h
@@ -70,7 +70,9 @@ typedef enum {
        XLSX_PT_GOGBUBBLEPLOT,
        XLSX_PT_GOGXYPLOT,
        XLSX_PT_GOGCONTOURPLOT,
-       XLSX_PT_XLCONTOURPLOT
+       XLSX_PT_XLCONTOURPLOT,
+       XLSX_PT_GOGSURFACEPLOT,
+       XLSX_PT_XLSURFACEPLOT
 } XLSXPlotType;
 XLSXPlotType xlsx_plottype_from_type_name (const char *type_name);
 
diff --git a/plugins/excel/xlsx-write-drawing.c b/plugins/excel/xlsx-write-drawing.c
index 836de0a..22583e9 100644
--- a/plugins/excel/xlsx-write-drawing.c
+++ b/plugins/excel/xlsx-write-drawing.c
@@ -1010,6 +1010,12 @@ xlsx_write_one_plot (XLSXWriteState *state, GsfXMLOut *xml,
                axis_type[2] = GOG_AXIS_PSEUDO_3D;
                gsf_xml_out_start_element (xml, "c:surfaceChart");
                break;
+
+       case XLSX_PT_GOGSURFACEPLOT:
+       case XLSX_PT_XLSURFACEPLOT:
+               axis_type[2] = GOG_AXIS_Z;
+               gsf_xml_out_start_element (xml, "c:surface3DChart");
+               break;
        }
 
        for (series = gog_plot_get_series (GOG_PLOT (plot));


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