2011/12/21 Cédric Krier <[email protected]>

> On 20/12/11 09:08 -0800, oscar_andres_col wrote:
> > Hi,
> >
> > I have been testing graph view in tryton and I think could to
> > improvement it, about follow items:
> >
> > - More Flexibility: The user built in easy view in client with add
> > fields on "x" axis and "y" axis (for line a Bar chart), and choose the
> > type graph (Bar, Multibar Chart, Line Chart, Pie Chart), the tryton
> > client render the graph.
>
> I don't think it is doable. Most of the Graph comes from a SQL query.
> But fill free to write a module that generate it on the fly.
>

Cedk, I have a doubt "But fill free" or "But feel free"?

so anyway I'd like write the module that generate it on the fly,
and maybe install it as plugin (I don't sure if it is possible), and like
that have available  two options for graph reports in client,
maybe when the plugin works good and be stable, we can to include it in
main stream Tryton, if you agree.?


>
> > - More Dinamics: When it change number records searched update the
> > graph,
>
> It does.
>
> > and showing min-max, average or sum value.
>
> It must and could be done in the SQL query. But in any way, it must be
> done on the client side.
>
> > - Mode Editable: For example change default colors used, grid or not
> > grid, change attributes for type line chart
>
> This is a good idea, it could be made more dynamic by using a PYSON
> expression.
>
> > (dotted, line and dotted),
> > position title of axis, etc, rotation of Pie Chart, (very nice), etc.
>
> Agree it is a posible improvement.
>
> > - More Beautiful: Sorry  ;)
>
> Matter of taste: Sorry ;-)
>
> > - Extension: The graph could be included in Reports (ODF, PDF), so
> > after or before the tables o datas.
>
> Don't want to depend on GTK on the server side but if you want you can
> have almost the same report as the client using
> http://www.lorenzogil.com/projects/pycha/
>
> > And the graph view start  for (almost) all modules, from action in a
> > main Toolbar button (new button).
>

That I say is that graph view action would be activated from a New Button
in tool bar, for example side of Report Button, and this show a wizard for
to configure easy graph view.


> So then programming each view graph
> > would be zero.
>
> I don't understand.
>

Then this code would not be necessary for example:
                <graph string="Invoice By Product" type="line">
                    <x>
                        <field name="invoice_date"/>
                    </x>
                    <y>
                        <field name="unit_price"/>
                    </y>
                </graph>

Because in the wizard the customer define it.


> > I think that this nice project in pure python and Gtk as Graph Module:
> >
> > http://notmyname.github.com/pygtkChart/
> >
> > It is perfect for incorporate in Tryton Client/Server (obviously
> > replacing the current graph modules), I seem that our the customer
> > would be impact it and happies.
>
> I don't see any major difference with the current implementation.
> Except that this project did not get any commits since 2 years and have
> no release.
>

This is last commit: 29 july 2011

https://github.com/SvenFestersen/pygtkChart/commit/c6bc58e7536fd0e8b328a5f8926b623d43b1caf6

And the project has good API documentation.


> It will faster to just improve the current one than changing the all
> engine because you just have minor request.
>

> --
> Cédric Krier
>
> B2CK SPRL
> Rue de Rotterdam, 4
> 4000 Liège
> Belgium
> Tel: +32 472 54 46 59
> Email/Jabber: [email protected]
> Website: http://www.b2ck.com/
>

-- 
[email protected] mailing list

Reply via email to