EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Fabrice on April 23, 2015, 05:27:51 AM



Title: datagrid and bar graphs
Post by: Fabrice on April 23, 2015, 05:27:51 AM
Is-it possible to draw bar graphs in datagrid columns like this :
+---------------------------+--------+-----------+-------------------------+
|                                  | Males  | Females  |                               |
+---------------------------+--------+-----------+-------------------------+
|          OOOOOOOOOOOO|  12     |      5       |OOOOO                     |
|                            OOO|    3     |      7      |OOOOOOO                  |
+---------------------------+--------+-----------+-------------------------+

OOO will be filled rectangles.


Title: Re: datagrid and bar graphs
Post by: stworthy on April 23, 2015, 08:44:45 AM
You can use the column's 'formatter' function to format the cell value, please refer to http://www.jeasyui.com/demo/main/index.php?plugin=TreeGrid&theme=default&dir=ltr&pitem=TreeGrid%20Actions


Title: Re: datagrid and bar graphs
Post by: Fabrice on April 24, 2015, 02:07:27 AM
thank's, that's perfect.