|
GnuCash 2.4.99
|
00001 /******************************************************************** 00002 * gnc-html_graph_gog.h -- display html with gnc special * 00003 * tags * 00004 * Copyright (C) 2000 Bill Gribble <grib@billgribble.com> * 00005 * Copyright (C) 2009 Phil Longstaff <plongstaff@rogers.com> * 00006 * * 00007 * This program is free software; you can redistribute it and/or * 00008 * modify it under the terms of the GNU General Public License as * 00009 * published by the Free Software Foundation; either version 2 of * 00010 * the License, or (at your option) any later version. * 00011 * * 00012 * This program is distributed in the hope that it will be useful, * 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00015 * GNU General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License* 00018 * along with this program; if not, contact: * 00019 * * 00020 * Free Software Foundation Voice: +1-617-542-5942 * 00021 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * 00022 * Boston, MA 02110-1301, USA gnu@gnu.org * 00023 \********************************************************************/ 00024 00025 #ifndef GNC_HTML_GRAPH_GOG_H 00026 #define GNC_HTML_GRAPH_GOG_H 1 00027 00028 typedef struct 00029 { 00030 gint width; 00031 gint height; 00032 const gchar* title; 00033 const gchar* subtitle; 00034 gint datasize; 00035 gdouble* data; 00036 gchar** labels; 00037 gchar** colors; 00038 } GncHtmlPieChartInfo; 00039 00040 typedef struct 00041 { 00042 gint width; 00043 gint height; 00044 const gchar* title; 00045 const gchar* subtitle; 00046 gint data_rows; 00047 gint data_cols; 00048 gdouble* data; 00049 gchar** col_labels; 00050 gchar** row_labels; 00051 gchar** col_colors; 00052 const gchar* x_axis_label; 00053 const gchar* y_axis_label; 00054 gboolean rotate_row_labels; 00055 gboolean stacked; 00056 } GncHtmlBarChartInfo; 00057 00058 typedef struct 00059 { 00060 gint width; 00061 gint height; 00062 const gchar* title; 00063 const gchar* subtitle; 00064 gint data_rows; 00065 gint data_cols; 00066 gdouble* data; 00067 gchar** col_labels; 00068 gchar** row_labels; 00069 gchar** col_colors; 00070 gboolean rotate_row_labels; 00071 gboolean stacked; 00072 gboolean markers; 00073 gboolean major_grid; 00074 gboolean minor_grid; 00075 const gchar* x_axis_label; 00076 const gchar* y_axis_label; 00077 gint line_width; 00078 } GncHtmlLineChartInfo; 00079 00080 typedef struct 00081 { 00082 gint width; 00083 gint height; 00084 const gchar* title; 00085 const gchar* subtitle; 00086 const gchar* x_axis_label; 00087 const gchar* y_axis_label; 00088 gint datasize; 00089 gdouble* xData; 00090 gdouble* yData; 00091 const gchar* marker_str; 00092 const gchar* color_str; 00093 } GncHtmlScatterPlotInfo; 00094 00095 void gnc_html_graph_gog_init( void ); 00096 GdkPixbuf* gnc_html_graph_gog_create_piechart( GncHtmlPieChartInfo* info ); 00097 GdkPixbuf* gnc_html_graph_gog_create_barchart( GncHtmlBarChartInfo* info ); 00098 GdkPixbuf* gnc_html_graph_gog_create_linechart( GncHtmlLineChartInfo* info ); 00099 GdkPixbuf* gnc_html_graph_gog_create_scatterplot( GncHtmlScatterPlotInfo* info ); 00100 00101 #endif /* GNC_HTML_GRAPH_GOG_H */
1.7.4