mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add legend only to barchart and piechart plots, not to scatter plots, as there is currently no usage for it. Fix #337769.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13891 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
5e8b7bbc88
commit
6b75ce64fc
@ -1,3 +1,9 @@
|
||||
2006-05-01 Andreas Köhler <andi5.py@gmx.net>
|
||||
|
||||
* src/gnome-utils/gnc-html-graph-gog.c: Add legend only to
|
||||
barchart and piechart plots, not to scatter plots, as there is
|
||||
currently no usage for it. Fix #337769.
|
||||
|
||||
2006-04-30 Joshua Sled <jsled@asynchronous.org>
|
||||
|
||||
Bug#340197: reverse account opening balances when desired.
|
||||
|
@ -217,7 +217,6 @@ create_basic_plot_elements(const char *plot_type_name,
|
||||
return FALSE;
|
||||
}
|
||||
gog_object_add_by_name(*out_chart, "Plot", GOG_OBJECT(*out_plot) );
|
||||
gog_object_add_by_name(*out_chart, "Legend", NULL);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@ -341,6 +340,7 @@ handle_piechart(gnc_html * html, GtkHTMLEmbedded * eb, gpointer d)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
gog_object_add_by_name(chart, "Legend", NULL);
|
||||
|
||||
GOG_STYLED_OBJECT(graph)->style->outline.width = 5;
|
||||
GOG_STYLED_OBJECT(graph)->style->outline.color = RGBA_BLACK;
|
||||
@ -430,6 +430,7 @@ handle_barchart(gnc_html * html, GtkHTMLEmbedded * eb, gpointer d)
|
||||
if (!create_basic_plot_elements("GogBarColPlot", &graph, &chart, &plot)) {
|
||||
return FALSE;
|
||||
}
|
||||
gog_object_add_by_name(chart, "Legend", NULL);
|
||||
|
||||
if ( stacked ) {
|
||||
// when stacked, we want the bars on _top_ of eachother.
|
||||
|
Loading…
Reference in New Issue
Block a user