summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js/graph_widget.js
AgeCommit message (Collapse)Author
2015-05-04[FIX] web_graph: graduations on Y axeGoffin Simon
For bar chart, the graduations along Y axe must be in language format of the user. opw:631659
2015-01-09[FIX] web_graph: format pivot cells with correct precisionkevin wang
fields received by the fields_get call sometimes have a digit precision. This commit makes sure that it is used when formatting the cells to be displayed.
2014-11-27[FIX] web_graph: pass context to fields_get for translationDenis Ledoux
In graph views, fields from the pivot table were not translated in the user language We pass the context, containing the user language, to fields_get in order to get the translation This is also done by the search view, in search.js line 1978 at this rev. opw-616713
2014-10-23[MERGE] forward port of branch saas-3 up to c89d1a0Christophe Simonis
2014-10-21[IMP] web_graph: renamed Quantity field into Count to avoid ambiguitiesDavid Monjoie
2014-09-16[FIX] display problem in graph view in some casesGéry Debongnie
Recently, the graph view was changed to prevent changing groupbys for active custom filters. Unfortunately, I did not take into account the fact that pivot table can be drawn in part when expanding rows. The "frozen" parameter was then undefined and caused display problems, this patch should fix the issue.
2014-09-15[FIX] web: fixes issues with custom filters and search viewGéry Debongnie
The problem was that when the user manipulates the graph view (in pivot table mode), the graph view resetted the group by facet in the search view. It was not a problem unless a custom filter with a groupby was already there, in which case, the group bys were duplicated. The search view is now smarter, it only resets the additional groupbys (and col_groupbys). Also, to prevent usability problems, the graph view disable the '+/-' groupbys added by a custom filters. Note that this fix is only temporary: a revamp of custom filters, facets, search view is coming in the next months. (at least, that's the idea). Right now, too much 'search logic' is in the graph view. Another note: this fix is somewhat fragile: it makes some assumptions about the search query (mainly that the custom filter is the first facet, also, that no other filters add groupbys/col_groupbys)
2014-08-22[FIX] css fix in graph viewGéry Debongnie
The field selection menu was not positioned correctly when there was a long list. (was not displayed at the position clicked)
2014-08-21[IMP] Graph views: show always measure + filters record measures in contextqdc
2014-07-30[IMP] improve graph view layout and groupbysGéry Debongnie
* add a 'total' foldable button to allow the user to control the column in pivot table view * in the dropdown menu, add all fields from the model instead of only those from the search view groupbys
2014-06-13[FIX] removes non stored fields from measuresGéry Debongnie
Non stored functional fields cannot be grouped by read_group, so it is useless, and even harmful, to display them in the measure list (in graph view).
2014-05-30[FIX] correctly compute mouse click coordsGéry Debongnie
in graph view, when the user click on the pivot table. It was calculated with pageX, pageY and positioned with 'absolute'. However, the main view is now also positionod, so the dropdown menu was not where it should be.
2014-05-20[FIX] fix the graphview field selectionGéry Debongnie
searchview has been split in two parts, and the inputs are now located in the drawer
2014-05-09[IMP] optimizes pivot table rendering when expanding rows (addon web_graph)Gery Debongnie
This patch makes the graph widget only add the rows that were new instead of redrawing the full table when expanding bzr revid: ged@openerp.com-20140509090935-sje3u6i4x1luswwn
2014-05-08[IMP] optimize the pivot table rendering when folding rows (addon web_graph)Gery Debongnie
don't redraw the full table when folding rows. instead, it removes from the dom the corresponding rows. This should give a big speed boost when folding rows on big tables. bzr revid: ged@openerp.com-20140508124002-yaa383rq4c0qhrf8
2014-05-08[FIX] render the pivot table correctly (addon web_graph)Gery Debongnie
The code was bugged: it added a <tbody> tag around each rows instead of adding the rows to a single tbody. bzr revid: ged@openerp.com-20140508112723-b6ffkmufwux1z0a7
2014-05-08[FIX] add $ to jquery variables (addon web_graph)Gery Debongnie
the rendering code of the pivot table didn't use $ in jquery variables, this commit fixes that issue and slightly simplify their names. bzr revid: ged@openerp.com-20140508111311-kargzvzlttutwt47
2014-05-08[IMP] improve the way indentation is done in pivot table (addon web_graph)Gery Debongnie
Previously, it was done in a ugly way: added several spans with the class .graph_indent. Now, it simply sets the margin of the content. bzr revid: ged@openerp.com-20140508110027-bdjdzlpfptjuf4fa
2014-05-07[FIX] Graph - Add context in fields_get to have the right translation in ↵Kersten Jeremy
col_header and other places where terms was not translate. lp bug: https://launchpad.net/bugs/1317079 fixed bzr revid: jke@openerp.com-20140507154758-0vkq9rywjyl55f5w
2014-05-01[MERGE] saas-4 up to dle@openerp.com-20140501121915-q88k37nd25ietw8cAntony Lesuisse
bzr revid: al@openerp.com-20140501172508-tjennzht30ktw3nz
2014-04-30[MERGE] merge from trunkGery Debongnie
bzr revid: ged@openerp.com-20140430085942-umusyhp4cs2ffezj bzr revid: ged@openerp.com-20140430140423-kq0vdboq1mux4zfn
2014-04-30[FIX] fix a crash in graphview when user clicked rapidly twice on menu itemGery Debongnie
The issue was that the get_search_fields method tried to get the view's corresponding searchview after a rpc (fields_get). Sadly, if the user had meanwhile clicked again on the menu item, the first view would be detached from the view manager and would be unable to reach the search view. The solution is to move the lookup for the search view in the start method, where it is guaranteed to exist. bzr revid: ged@openerp.com-20140430084927-m11dxqg9ko0dnu08
2014-04-30[IMP] large optimizations to the graph view rendering (pivot table)Gery Debongnie
The pivot table rendering was slow with large tables : it appended to the table each line, so the browser had to rerender each time the page. This was solved by rendering the table to a document fragment, then only add the fragment to the main document. This speeds up considerably the process (from 2600ms to 420ms in one test) Also, uses basic loops instead of underscore maps in the build_rows method bzr revid: ged@openerp.com-20140430074733-quhfkzz33rlpahps
2014-04-28[IMP] add the expand all button back to the graph viewGery Debongnie
It was removed a long time ago, but it looks like the 'expand all' button is useful enough to make a comeback. Also, this commit removes a few useless lines in graph_widget about the grouped/stacked status of bar charts bzr revid: ged@openerp.com-20140428090221-po3ksrd73093w3qm
2014-04-22[FIX] fix line chart x-axis labels: it now correctly uses the name of the ↵Gery Debongnie
row, and not a number (addon web_graph) bzr revid: ged@openerp.com-20140422150441-3vll2jw69z319yza
2014-04-22[FIX] correct the scaling problem of graph bar charts: nvd3 needs a numeric ↵Gery Debongnie
value and was given a [value]. Also, improves the margin of bar/line/pie charts (addon web_graph) bzr revid: ged@openerp.com-20140422150401-p0t9xmittp73j7hx
2014-04-22[FIX] correct fix for the scrolling problem in graph view: the view now ↵Gery Debongnie
saves its scrolling position before redrawing itself (addon web_graph) bzr revid: ged@openerp.com-20140422150316-m51u750732re8qib
2014-04-22[FIX] in graph view, save the scrolling position and use it when redrawing ↵Gery Debongnie
the table (addon web_graph) bzr revid: ged@openerp.com-20140422150209-f06ffxry1h46cpfh
2014-04-22[FIX] disable export to xls button in graph view when there are no data to ↵Gery Debongnie
export, this prevent a crash (addon web) bzr revid: ged@openerp.com-20140422145955-vfls1hxktnq8m67b
2014-04-22[FIX] only hide the export button (and not all the config buttons) in graph ↵Gery Debongnie
view when the module xlwt is not installed (addon web) bzr revid: ged@openerp.com-20140422145918-s20n3qla1nfte5dj
2014-04-09[IMP] massive optimization of the graph view code: more efficient access to ↵Gery Debongnie
values and smarter code to avoid reading uselessly many cells (graph view in web_graph) bzr revid: ged@openerp.com-20140409093920-xqls2o6j6tocgf6l
2014-04-04[FIX] skip undefined and keep formating as empty stringMartin Trigaux
bzr revid: mat@openerp.com-20140404151739-u61resk70xoih5he
2014-04-04[IMP] web_graph: when exporting to xls, export float data as raw instead of ↵Martin Trigaux
string lp bug: https://launchpad.net/bugs/1279803 fixed bzr revid: mat@openerp.com-20140404085504-t9np8xok33rb0mow
2014-03-11[MERGE] forward port of branch saas-3 up to revid 3967 ↵Christophe Simonis
jke@openerp.com-20140311093515-02xw8phrcqhgz6zx bzr revid: chs@openerp.com-20140311132200-1bln6gaj80njyh18
2014-02-26[FIX] adds a missing semicolon... :/ (addon web_graph)Gery Debongnie
bzr revid: ged@openerp.com-20140226144032-st0eqbkzco8n2unk
2014-02-26[IMP] this commit adds two css classes (graph_pivot_mode and ↵Gery Debongnie
graph_chart_mode) to better separate the ui from the code in graph view (addon web_graph) bzr revid: ged@openerp.com-20140226143919-cejqoq2kd4iwrq04
2014-02-26[IMP] optimizes pivot table so that it doesn't reload data when the groupbys ↵Gery Debongnie
have been changed in such a way that it should only fold some headers (addon web_graph) bzr revid: ged@openerp.com-20140226130424-rtb5iof0c14caf56
2014-02-26[FIX] fixes various problems with the graph view and the filters in the ↵Gery Debongnie
searchbar. Now, it should properly compute and update the groupby/col_groupby in the search bar (addon web_graph) bzr revid: ged@openerp.com-20140226111710-q11qx1tb2l0nryxf
2014-02-25[FIX] fixes the tooltip position in chart mode (graph view). The position ↵Gery Debongnie
was wrong because the parent position was not 'relative'. (addon web_graph) bzr revid: ged@openerp.com-20140225141623-cawr7yur38zhjcz4
2014-02-25[IMP] optimizes graph view to avoid reloading data in some cases (such as ↵Gery Debongnie
removing a filter from the search view) (addon web_graph) bzr revid: ged@openerp.com-20140225104233-zidrw03dh2hlwrng
2014-02-20[MERGE] forward port of branch saas-2 up to revid 3950 ↵Christophe Simonis
dle@openerp.com-20140220141302-3paib80ixiyi66qg bzr revid: chs@openerp.com-20140220161753-ec6l9ser1pbnmzgk
2014-02-10[FIX] fixes an issue in graph view (addon web_graph)Gery Debongnie
when the user clicked several times on a field name to expand it, the dropdown menu was displayed several times, overlapping, instead of being reset to the last click location bzr revid: ged@openerp.com-20140210091716-of9w9xhjnpmaa5td
2014-02-07[IMP] removes the 'expand all' buttons, it was confusing and not really ↵Gery Debongnie
useful (addon web_graph) bzr revid: ged@openerp.com-20140207142223-pc31xwv7kckt99a0
2014-02-05[FIX] many small tweaks, add some comment, rename variables to have better ↵Gery Debongnie
more informative names in excel export functionality in graph view (addon web_graph) bzr revid: ged@openerp.com-20140205131406-kdw5ht9u8gct9xbo
2014-02-05[IMP] completes the excel export functionality in graph view (addon web_graph)Gery Debongnie
bzr revid: ged@openerp.com-20140205095808-8lzwv0yqcsjnvff9
2014-02-04[IMP] separates the pivot table drawing from the pivot table 'computing' ↵Gery Debongnie
(width, cells, colors,...). This will be useful for the export functionality : the table can be easily serialized in json (addon web_graph) bzr revid: ged@openerp.com-20140204113135-1igakgqdxewey3aj
2014-02-03[IMP] work in progress: adds the export functionality in graph view (addon ↵Gery Debongnie
web_graph) bzr revid: ged@openerp.com-20140203154704-t2i3uvezupw7kn3n
2014-02-03[IMP] work in progress: adds the export functionality in graph view (addon ↵Gery Debongnie
web_graph) bzr revid: ged@openerp.com-20140203113332-fvr9cra2dhj4h0ju
2014-01-28[IMP] css changes to improve look and usability of pivot table view (addon ↵Gery Debongnie
web_graph) bzr revid: ged@openerp.com-20140128151113-g8yxl3lphpht4d89
2014-01-28[IMP] makes the graph view in pivot table mode always display 'Total' ↵Gery Debongnie
instead of the current measure/title (addon web_graph) bzr revid: ged@openerp.com-20140128132625-pk21iuhuffvx6814