EasyUI Forum
October 16, 2025, 06:28:14 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: datagrid and bar graphs  (Read 10067 times)
Fabrice
Jr. Member
**
Posts: 62


View Profile
« 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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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
Logged
Fabrice
Jr. Member
**
Posts: 62


View Profile
« Reply #2 on: April 24, 2015, 02:07:27 AM »

thank's, that's perfect.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!