Jxls implements dynamic charts and jxls Dynamic Charts
This article is based on
1. jxls implements reports based on excel templates
I. Preparations
1. Click here to download the relevant files and place the files in the corresponding folder of the ims project.
2. Create an excel Dynamic Chart Template
1. install excel 2003 and create a new file named runRecord.xls.
2. Create two tables named "device operation record card" and "output load" respectively.
3. Set the output load table as follows:
Cell A3 is set to time format: h: mm, so that the X axis of the chart can be displayed by minute.
4. Click Insert --> name --> define the name of the created definition as follows:
Name: outTime reference location: = OFFSET (output load! $ A $1, 1, 0, COUNTA (output load! $ A: $ A)-1, 1)
Name: outLoadA reference location: = OFFSET (output load! $ B $1, 1, 0, COUNTA (output load! $ B: $ B)-1, 1)
Name: outLoadB reference location: = OFFSET (output load! $ C $1, 1, 0, COUNTA (output load! $ C: $ C)-1, 1)
Name: outLoadC reference position: = OFFSET (output load! $ D $1, 1, 0, COUNTA (output load! $ D: $ D)-1, 1)
5. Click Insert --> chart --> select line chart of data point --> next --> select series, and add series as follows:
Name: = output load! $ B $1 Value: Invalid runrecord.xls! OutLoadA
Name: = output load! $ C $1 Value: Invalid runrecord.xls! OutLoadB
Name: = output load! $ D $1 Value: Invalid runrecord.xls! OutLoadC
The classification (X) axis labels of all the above series are: Invalid runrecord.xls! OutTime
6. Click Next --> set chart title: output load --> set value (Y) axis: output load (KW) --> cancel main grid lines --> next --> finish
7. Double-click the X axis of the chart and set the X axis to the Time Format: m/d h: mm.
Iii. Test
Access: http: // localhost: 8090/ims/iot/test. do. Click the export button and export the "device operation record .xls" to the browser.
4. View charts