After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 605771 - joined plot areas
joined plot areas
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
git master
Other Linux
: Normal normal
: ---
Assigned To: Jean Bréfort
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2009-12-31 00:01 UTC by Andreas J. Guelzow
Modified: 2010-01-06 18:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample file (13.08 KB, application/gnumeric)
2009-12-31 00:01 UTC, Andreas J. Guelzow
  Details
patch (13.08 KB, patch)
2010-01-02 09:26 UTC, Jean Bréfort
committed Details | Review

Description Andreas J. Guelzow 2009-12-31 00:01:59 UTC
Created attachment 150594 [details]
sample file

In this attached file I have an area plot with two plotareas (plotarea1 and plotarea2). Each of them has a series attached to it.

I had expected that I could assign to them separate regions of the chart to obtain a graph as requested in bug 513137. 

Unfortuunately changing the plot area in plotarea1 also makes the corresponding changes in plotarea2. If one always need to specify the same plotarea, I think the plotarea tab should not appear when plotarea1 is sleected but at a higher level in the tree.
Comment 1 Jean Bréfort 2009-12-31 07:31:47 UTC
Each chart has only one plot area. You might try using two charts instead. I have no idea about how to attach the plot area tab to the chart instead of the plot (which would be logic).
Comment 2 Andreas J. Guelzow 2010-01-01 19:53:07 UTC
Looking at the code, there is an editor build in gog-chart.c and one in gog-plot.c. Since the plotarea is chart (not plot) it should be constructed as part of the editor in gog-chart.c rather than gog-plot.c.
Comment 3 Jean Bréfort 2010-01-02 09:01:59 UTC
It is not that simple. When using the mouse, one of the plots will be selected. And my first attempts to change things make gnumeric quite unstable.
Comment 4 Jean Bréfort 2010-01-02 09:26:14 UTC
Created attachment 150672 [details] [review]
patch

I'm not found of this patch, it somehow violates the GogObject hierarchy model.
Comment 5 Jean Bréfort 2010-01-02 09:28:37 UTC
Emmanuel, what's your opinion about that?
Comment 6 Andreas J. Guelzow 2010-01-02 09:54:24 UTC
I am not sure what you mean with that it violates the GogObject hierarchy model.

The plotarea, despite its name, is a property of the Chart. All plots of the same chart share the same plotarea.

In that case the editor is properly attached to the chart.

I think the current implementation does not follow the hierachy but your patch does.
Comment 7 Jean Bréfort 2010-01-06 18:49:56 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.