CN104317600A - Configurable graph generation method and system - Google Patents
Configurable graph generation method and system Download PDFInfo
- Publication number
- CN104317600A CN104317600A CN201410602657.5A CN201410602657A CN104317600A CN 104317600 A CN104317600 A CN 104317600A CN 201410602657 A CN201410602657 A CN 201410602657A CN 104317600 A CN104317600 A CN 104317600A
- Authority
- CN
- China
- Prior art keywords
- curve
- configuration file
- curve map
- parameter
- coordinate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The invention relates to a configurable graph generation method. The method includes: configuring a graph configuration file and storing the same to a locale; reading the graph configuration file at the locale, and analyzing the graph configuration file to acquire graph displaying parameters; reading the graph displaying parameters into a memory; creating a graph drawing area according to width and height parameters of a drawing area described in the graph configuration file; drawing a curve frame in the graph drawing area according to the parameters in the graph configuration file; drawing curves in the curve frame according to SQL (structured query language) statements of a database table in the graph configuration file. The configurable graph generation method has the advantages that graphs required for report statistical analysis can be automatically displayed in batches in a configurable manner, changes in service statistical data are visually fed back, and the use of the configurable graphs leads to higher development efficiency of statistical analytical reports and higher quality of report data analysis.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of configurable curve map and generate method and system.
Background technology
Along with the rise that enterprise information systems integration and Enterprise e-commerce system based are built, form has extremely important effect in systems in which as a kind of important information carrier, and curve map as statistical forms important component part also be more and more software developer pay close attention to research.Along with increasing of data, the raising of demand, in traditional form, application curves figure shows that the application of analysis result also gets more and more.
But the displaying of curve map at present greatly generally needs to utilize instrument to draw (such as utilizes the picture icon instrument carried in Excel, or utilize business professional cartography instrument etc.), adopt and draw in this way, drawing efficiency is low, and this method can not realize batch curve plotting figure.These methods rely on business software drafting mostly in addition, use and need through relevant training and study.
Summary of the invention
Technical matters to be solved by this invention is for the deficiencies in the prior art, and provide a kind of configurable curve map to generate method and system, the curve map that can be used for various report form statistics analysis is shown.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of configurable curve drawing generating method, comprises the steps:
Step 1, configuration curve map configuration file is also stored in this locality;
Step 2, reads local curve map configuration file, and analytic curve figure configuration file obtains curve map presentation parameter;
Step 3, reads in internal memory by curve map presentation parameter;
Step 4, creates curve map drawing area by the drawing area width in curve map configuration file and height parameter;
Step 5, by the curve map presentation parameter in curve map configuration file at curve map drawing area curve plotting framework;
Step 6, by SQL statement curve plotting in curve framework of the database table in curve map configuration file.
The invention has the beneficial effects as follows: the curve map that the present invention can need with the displaying report form statistics analysis of the configurable mode robotization of batch, feed back the situation of change of business statistics data intuitively; And use configurable curve map, the development efficiency of statistical forms can be improved, improve the quality of report data analysis.
On the basis of technique scheme, the present invention can also do following improvement.
Described curve map presentation parameter comprises context parameter, coordinate axis parameter, coordinate grid parameter, header parameter, database SQL statement that curve data is corresponding.
Further, being implemented as of described step 5:
Step 51, according to the context parameter in curve map configuration file in curve map drawing area space filling curve figure background;
Step 52, sets up the reference axis of X-axis and Y-axis by the coordinate axis parameter in curve map configuration file;
Step 53, creates X-axis coordinate net ruling and Y-axis coordinate net ruling by the coordinate axis mesh lines parameter in curve map configuration file;
Step 54, by the header parameter curve plotting graph title in curve map configuration file.
Further, being implemented as of step 6: the database SQL statement that the curve data in execution curve map configuration file is corresponding, transfers to the curve data in database for a series of X, Y-coordinate, generate coordinate record collection, according to X, Y-coordinate record set curve plotting.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of configurable curve map generation system, comprises parameter configuration module, configuration file memory module, configuration file read module, configuration file parsing module, memory modules and curve map drafting module;
Described parameter configuration module, it for configuring curve map presentation parameter as required, and sends to configuration file memory module;
Described configuration file memory module, its curve map configuration file completed for stored configuration;
Described configuration file read module, it for reading required curve map configuration file and sending to configuration file parsing module from configuration file memory module;
Described configuration file parsing module, it obtains curve map presentation parameter for analytic curve figure configuration file, reads in memory modules by curve map presentation parameter;
Described memory modules, it is for the curve map presentation parameter of storing and resolving;
Described curve map drafting module, it is for according to the curve map presentation parameter curve plotting figure stored in internal memory.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described curve map presentation parameter comprises context parameter, coordinate axis parameter, coordinate grid parameter, header parameter, database SQL statement that curve data is corresponding.
Further, described curve map drafting module comprises background filler cells, coordinate axis drawing unit, coordinate axis grid drawing unit and title drawing unit;
Background filler cells, its for according to the context parameter in curve map configuration file in curve map drawing area space filling curve figure background;
Described coordinate axis drawing unit, it is for setting up the reference axis of X-axis and Y-axis by the coordinate axis parameter in curve map configuration file;
Described coordinate axis grid drawing unit, it creates X-axis coordinate net ruling and Y-axis coordinate net ruling for the coordinate axis mesh lines parameter of pressing in curve map configuration file;
Described title drawing unit, it is for pressing the header parameter curve plotting graph title in curve map configuration file.
Further, curve map drafting module comprises SQL statement performance element, it is for performing database SQL statement corresponding to curve data in curve map configuration file, curve data in database is transferred to for a series of X, Y-coordinate, generate coordinate record collection, according to X, Y-coordinate record set curve plotting.
Accompanying drawing explanation
Fig. 1 is one of the present invention configurable curve map generation system block diagram;
Fig. 2 is curve map drafting module structured flowchart of the present invention;
Fig. 3 is that the configurable curve map of one of the present invention generates method flow diagram.
In accompanying drawing, the list of parts representated by each label is as follows:
100, parameter configuration module, 100, configuration file memory module,, 200, configuration file read module, 400, configuration file parsing module, 500, memory modules, 600, curve map drafting module, 601, background filler cells, 602, coordinate axis drawing unit, 603, coordinate axis grid drawing unit, 604, title drawing unit.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As shown in Figure 1, a kind of configurable curve map generation system, comprises parameter configuration module 100, configuration file memory module 200, configuration file read module 300, configuration file parsing module 400, memory modules 500 and curve map drafting module 600; Described parameter configuration module 100, it for configuring curve map presentation parameter as required, and sends to configuration file memory module 200; Described configuration file memory module 200, its curve map configuration file completed for stored configuration; Described configuration file read module 300, it for reading required curve map configuration file and sending to configuration file parsing module from configuration file memory module; Described configuration file parsing module 400, it obtains curve map presentation parameter for analytic curve figure configuration file, reads in memory modules by curve map presentation parameter; Described memory modules 500, it is for the curve map presentation parameter of storing and resolving; Described curve map drafting module 600, it is for according to the curve map presentation parameter curve plotting figure stored in internal memory.
Described curve map presentation parameter comprises context parameter, coordinate axis parameter, coordinate grid parameter, header parameter, database SQL statement that curve data is corresponding.Coordinate axis parameter comprises the color of coordinate axis dotted line.
As shown in Figure 2, described curve map drafting module comprises background filler cells 601, coordinate axis drawing unit 602, coordinate axis grid drawing unit 603 and title drawing unit 604; Described background filler cells 601, its for according to the context parameter in curve map configuration file in curve map drawing area space filling curve figure background; Described coordinate axis drawing unit 602, it is for setting up the reference axis of X-axis and Y-axis by the coordinate axis parameter in curve map configuration file; Described coordinate axis grid drawing unit 603, it creates X-axis coordinate net ruling and Y-axis coordinate net ruling for the coordinate axis mesh lines parameter of pressing in curve map configuration file; Described title drawing unit 604, it is for pressing the header parameter curve plotting graph title in curve map configuration file.
Described curve map drafting module comprises SQL statement performance element, and the curve data in database, for performing database SQL statement corresponding to curve data in curve map configuration file, transfers to for a series of X by it, Y-coordinate, generate coordinate record collection, according to X, Y-coordinate record set curve plotting.
As shown in Figure 3, a kind of configurable curve drawing generating method, comprises the steps:
Step 1, configuration curve map configuration file is also stored in this locality;
Step 2, reads local curve map configuration file, and analytic curve figure configuration file obtains curve map presentation parameter;
Step 3, reads in internal memory by curve map presentation parameter;
Step 4, creates curve map drawing area by the drawing area width in curve map configuration file and height parameter;
Step 5, by the curve map presentation parameter in curve map configuration file at curve map drawing area curve plotting framework;
Step 6, by SQL statement curve plotting in curve framework of the database table in curve map configuration file.
Wherein, being implemented as of described step 5:
Step 51, according to the context parameter in curve map configuration file in curve map drawing area space filling curve figure background;
Step 52, sets up the reference axis of X-axis and Y-axis by the coordinate axis parameter in curve map configuration file;
Step 53, creates X-axis coordinate net ruling and Y-axis coordinate net ruling by the coordinate axis mesh lines parameter in curve map configuration file;
Step 54, by the header parameter curve plotting graph title in curve map configuration file.
Step 6 be implemented as database SQL statement corresponding to the curve data performed in curve map configuration file, the curve data in database is transferred to for a series of X, Y-coordinate, generates coordinate record collection, according to X, Y-coordinate record set curve plotting.
Introduce the codes implement of three core procedures of curve plotting figure below:
One, the drawing area of curve map is set up
Two, picture background is filled:
Three, set up coordinate axis, draw reference axis:
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (8)
1. a configurable curve drawing generating method, is characterized in that, comprise the steps:
Step 1, configuration curve map configuration file is also stored in this locality;
Step 2, reads local curve map configuration file, and analytic curve figure configuration file obtains curve map presentation parameter;
Step 3, reads in internal memory by curve map presentation parameter;
Step 4, creates curve map drawing area by the drawing area width in curve map configuration file and height parameter;
Step 5, by the curve map presentation parameter in curve map configuration file at curve map drawing area curve plotting framework;
Step 6, by SQL statement curve plotting in curve framework of the database table in curve map configuration file.
2. a kind of configurable curve drawing generating method according to claim 1, is characterized in that, described curve map presentation parameter comprises context parameter, coordinate axis parameter, coordinate grid parameter, header parameter, database SQL statement that curve data is corresponding.
3. a kind of configurable curve drawing generating method according to claim 2, is characterized in that, being implemented as of described step 5:
Step 51, according to the context parameter in curve map configuration file in curve map drawing area space filling curve figure background;
Step 52, sets up the reference axis of X-axis and Y-axis by the coordinate axis parameter in curve map configuration file;
Step 53, creates X-axis coordinate net ruling and Y-axis coordinate net ruling by the coordinate axis mesh lines parameter in curve map configuration file;
Step 54, by the header parameter curve plotting graph title in curve map configuration file.
4. a kind of configurable curve drawing generating method according to claim 1, it is characterized in that, being implemented as of step 6: the database SQL statement that the curve data in execution curve map configuration file is corresponding, curve data in database is transferred to for a series of X, Y-coordinate, generate coordinate record collection, according to X, Y-coordinate record set curve plotting.
5. a configurable curve map generation system, is characterized in that, comprises parameter configuration module, configuration file memory module, configuration file read module, configuration file parsing module, memory modules and curve map drafting module;
Described parameter configuration module, it for configuring curve map presentation parameter as required, and sends to configuration file memory module;
Described configuration file memory module, its curve map configuration file completed for stored configuration;
Described configuration file read module, it for reading required curve map configuration file and sending to configuration file parsing module from configuration file memory module;
Described configuration file parsing module, it obtains curve map presentation parameter for analytic curve figure configuration file, reads in memory modules by curve map presentation parameter;
Described memory modules, it is for the curve map presentation parameter of storing and resolving;
Described curve map drafting module, it is for according to the curve map presentation parameter curve plotting figure stored in internal memory.
6. a kind of configurable curve drawing generating method according to claim 5, is characterized in that, described curve map presentation parameter comprises context parameter, coordinate axis parameter, coordinate grid parameter, header parameter, database SQL statement that curve data is corresponding.
7. a kind of configurable curve drawing generating method according to claim 6, it is characterized in that, described curve map drafting module comprises background filler cells, coordinate axis drawing unit, coordinate axis grid drawing unit and title drawing unit;
Background filler cells, its for according to the context parameter in curve map configuration file in curve map drawing area space filling curve figure background;
Described coordinate axis drawing unit, it is for setting up the reference axis of X-axis and Y-axis by the coordinate axis parameter in curve map configuration file;
Described coordinate axis grid drawing unit, it creates X-axis coordinate net ruling and Y-axis coordinate net ruling for the coordinate axis mesh lines parameter of pressing in curve map configuration file;
Described title drawing unit, it is for pressing the header parameter curve plotting graph title in curve map configuration file.
8. a kind of configurable curve drawing generating method according to claim 5, it is characterized in that, curve map drafting module comprises SQL statement performance element, it is for performing database SQL statement corresponding to curve data in curve map configuration file, curve data in database is transferred to for a series of X, Y-coordinate, generate coordinate record collection, according to X, Y-coordinate record set curve plotting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410602657.5A CN104317600B (en) | 2014-10-31 | 2014-10-31 | A kind of configurable curve drawing generating method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410602657.5A CN104317600B (en) | 2014-10-31 | 2014-10-31 | A kind of configurable curve drawing generating method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104317600A true CN104317600A (en) | 2015-01-28 |
CN104317600B CN104317600B (en) | 2018-02-13 |
Family
ID=52372835
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410602657.5A Active CN104317600B (en) | 2014-10-31 | 2014-10-31 | A kind of configurable curve drawing generating method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104317600B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105068807A (en) * | 2015-08-07 | 2015-11-18 | 北京思特奇信息技术股份有限公司 | Generation method and system for multi-axis curve graph |
CN105389170A (en) * | 2015-11-20 | 2016-03-09 | 中国农业大学 | Drawing method and system |
CN116168115A (en) * | 2023-04-20 | 2023-05-26 | 山东省地震工程研究院 | Automatic plotting method and system for bedrock reaction spectrum and override probability curve |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096688A (en) * | 2009-12-11 | 2011-06-15 | 中国移动通信集团山西有限公司 | Method and device for generating data report |
CN102664749A (en) * | 2012-04-09 | 2012-09-12 | 北京航空航天大学 | Monitoring system capable of configuring telemetering data |
CN103268335A (en) * | 2013-05-13 | 2013-08-28 | 中国农业银行股份有限公司 | Report data filling method and system |
CN103530401A (en) * | 2013-10-23 | 2014-01-22 | 山东大学 | Method for obtaining data and drawing graph based on web service |
-
2014
- 2014-10-31 CN CN201410602657.5A patent/CN104317600B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096688A (en) * | 2009-12-11 | 2011-06-15 | 中国移动通信集团山西有限公司 | Method and device for generating data report |
CN102664749A (en) * | 2012-04-09 | 2012-09-12 | 北京航空航天大学 | Monitoring system capable of configuring telemetering data |
CN103268335A (en) * | 2013-05-13 | 2013-08-28 | 中国农业银行股份有限公司 | Report data filling method and system |
CN103530401A (en) * | 2013-10-23 | 2014-01-22 | 山东大学 | Method for obtaining data and drawing graph based on web service |
Non-Patent Citations (3)
Title |
---|
刘世雄: "基于VML与XML实现Web图形展示系统", 《电脑开发与应用》 * |
沈晓星等: "基于VML和AJAX绘制站点的实况曲线图", 《科技信息》 * |
邓卫华等: "利用VML语言绘制气象曲线图", 《电脑编程技巧与维护》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105068807A (en) * | 2015-08-07 | 2015-11-18 | 北京思特奇信息技术股份有限公司 | Generation method and system for multi-axis curve graph |
CN105389170A (en) * | 2015-11-20 | 2016-03-09 | 中国农业大学 | Drawing method and system |
CN116168115A (en) * | 2023-04-20 | 2023-05-26 | 山东省地震工程研究院 | Automatic plotting method and system for bedrock reaction spectrum and override probability curve |
Also Published As
Publication number | Publication date |
---|---|
CN104317600B (en) | 2018-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019095424A1 (en) | Data acquisition method and device, storage medium and terminal | |
CN105138501A (en) | Configurable dynamic report generating method and system | |
CN104133772A (en) | Automatic test data generation method | |
CN107220274B (en) | Visual data interface market realization method | |
CN111126019B (en) | Report generation method and device based on mode customization and electronic equipment | |
CN104731588B (en) | Page layout document generating method and page layout file creating apparatus | |
CN104573065A (en) | Report display engine based on metadata | |
CN111078702A (en) | SQL sentence classification management and unified query method and device | |
CN103399848B (en) | Engine test data normalization specific format imports processing method | |
CN103617496A (en) | Informatization report automatic generating method and system | |
CN104317600A (en) | Configurable graph generation method and system | |
CN109213480A (en) | A kind of method, storage medium, equipment and system for developing the back-stage management page | |
CN109542438A (en) | One kind being based on visual chart development approach | |
CN106407172A (en) | XML (Extensible Markup Language)-based report generating method | |
CN105760172A (en) | Statement generation method based on itext | |
CN108182965B (en) | Electronic medical record generation system and method | |
CN111401023B (en) | Report generation method, report generation device, server and storage medium | |
CN104346378B (en) | A kind of method, apparatus and system for realizing complex data processing | |
CN103678401A (en) | Metadata based report group summarizing method and device | |
CN112000322A (en) | Processing system based on business scene template | |
CN106776522A (en) | A kind of hybrid-type user-defined mobile phone end reporting system and method | |
CN102866985A (en) | Data formatting device and method for on-line analytical processing system | |
CN102541551B (en) | A kind of easy-to-use page report design method and system | |
CN105302567A (en) | Device and method for dynamically generating report template | |
CN113779941B (en) | Configurable dynamic report generation device, system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |