Jxls implements dynamic charts and jxls Dynamic Charts

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.