Le vendredi 14 avril 2017 à 09:18 +0000, PICCA Frederic-Emmanuel a
écrit :
> > There are sample codes in the goffice source tree:
> > https://git.gnome.org/browse/goffice/tree/tests/go-demo.c
> > https://git.gnome.org/browse/goffice/tree/tests/pie-demo.c
> 
> Re-Hello
> 
> So now I can plot  an XY curve
> 
> I would like to give my users the possibility to modify the graph
> like in gnumeric via the graphical interface.
> Select the color of the graph, change the title, etc...
> 
> what is the appropriate way to do this goffice.
> 
> Is there a propriety in order to avec an inter-active widget instead
> of a static view like I have now.
> 
Yes, you can use the GogGuru which is also used in gnumeric. You'll
need to derive your own GogDataAllocator (which provide the widget used
to select the data which, in your case might be a label or a list of
available data). I wrote a demonstrator several years ago, you can find
the code in:
http://svn.savannah.gnu.org/viewvc/gchemutils/trunk/gchemutils/programs/table/gchemtable-curve.cc?revision=1969&view=markup
(look at GChemTableCurve::OnProperties ())

The allocator code is in
http://svn.savannah.gnu.org/viewvc/gchemutils/trunk/gchemutils/programs/table/gchemtable-data-allocator.cc?revision=1718&view=markup
http://svn.savannah.gnu.org/viewvc/gchemutils/trunk/gchemutils/programs/table/gchemtable-data-allocator.h?revision=1718&view=markup

Regards,
Jean
_______________________________________________
gnumeric-list mailing list
gnumeric-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnumeric-list

Reply via email to