CN109308204B - Chart generation method and device for responding to window clicking - Google Patents

Chart generation method and device for responding to window clicking Download PDF

Info

Publication number
CN109308204B
CN109308204B CN201810875277.7A CN201810875277A CN109308204B CN 109308204 B CN109308204 B CN 109308204B CN 201810875277 A CN201810875277 A CN 201810875277A CN 109308204 B CN109308204 B CN 109308204B
Authority
CN
China
Prior art keywords
window
parameters
parameter
chart
target
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.)
Active
Application number
CN201810875277.7A
Other languages
Chinese (zh)
Other versions
CN109308204A (en
Inventor
温军华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Heshan Junsheng Technology Co Ltd
Original Assignee
Individual
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201810875277.7A priority Critical patent/CN109308204B/en
Publication of CN109308204A publication Critical patent/CN109308204A/en
Application granted granted Critical
Publication of CN109308204B publication Critical patent/CN109308204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for generating a diagram responding to window clicking. When the fact that a user clicks the window is detected, reading a target parameter type and a preset formula corresponding to the window, reading teaching parameters in the database according to the target parameter type, calculating drawing parameters by combining the teaching parameters and the preset formula, and further completing drawing. The server requests data once only when the window is clicked, and the rest processing is finished in the local computer, so that the resources of the server are saved.

Description

Chart generation method and device for responding to window clicking
Technical Field
The invention relates to the field of window response methods, in particular to a method and a device for generating a chart responding to window clicking.
Background
At present, modern classrooms mostly use computer equipment for teaching, so that collected data such as answering situations are mostly stored in a database in an electronic form, and teachers want to analyze the data and make charts after class, which is a relatively intuitive method. Most of the prior art adopts the method that a table or a chart is generated in a server, and the corresponding table or chart is read when a user opens a window. Although the chart can be obtained by adopting the method, the teaching is continuously changed along with the completion of each class, if the method in the prior art needs to send an instruction to the server to obtain the latest chart every time data is updated, and the server generates all charts every time the server receives the update instruction, the resource of the server is greatly wasted.
Disclosure of Invention
In order to solve the above problems, an object of the present invention is to provide a method for setting a corresponding preset parameter type in a window, automatically reading a latest corresponding parameter from a database after detecting a window click, completing calculation in the window and generating a chart, which can ensure accuracy of data in practical application and avoid excessive data processing by a server.
The technical scheme adopted by the invention for solving the problems is as follows: a method for generating a chart in response to a window click includes:
when a user clicks a target window, reading a target parameter type and a preset formula corresponding to the target window;
reading teaching parameters corresponding to the target parameter types from a database;
calculating drawing parameters according to a preset formula and teaching parameters;
and generating a chart in the target window according to the obtained drawing parameters.
Further, the target parameter type and the preset formula are stored in the server and can be edited and modified in the server.
Further, the teaching parameters comprise parameter values and parameter attributes; and after the teaching parameters are successfully read in the target window, generating screening options according to the parameter attributes of the teaching parameters.
Further, when the user is detected to select the parameter attribute in the screening option, the teaching parameter corresponding to the selected parameter attribute is read and used for calculating the drawing parameter, and the chart is regenerated.
Further, when a plurality of windows exist in the same page, the current display window is set as the target window.
Further, when window switching is performed, the switched window is set as a target window to generate a chart, and the chart and all parameters in the original target window are deleted.
A chart generation apparatus responsive to a window click, comprising:
the target parameter type and preset formula reading device is used for reading the target parameter type and the preset formula corresponding to the target window when detecting that the user clicks the target window;
the teaching parameter reading device is used for reading teaching parameters corresponding to the target parameter types from the database;
the drawing parameter calculation device is used for calculating drawing parameters according to a preset formula and teaching parameters;
and the chart generating device is used for generating a chart in the target window according to the obtained drawing parameters.
Further, the device also comprises the following devices:
the screening option generating device is used for generating screening options according to the parameter attributes of the teaching parameters after the teaching parameters are successfully read from the target window;
the chart regenerating device is used for reading the teaching parameters corresponding to the selected parameter attributes and calculating drawing parameters when the user is detected to select the parameter attributes in the screening options, and regenerating the chart;
the target window setting device is used for setting the current display window as the target window when a plurality of windows exist in the same page;
and the window switching device is used for setting the switched window as a target window to generate a chart and deleting the chart and all parameters in the original target window when the window is switched.
A diagram generation apparatus responsive to a window click, comprising: at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of generating a graph in response to a window click as described above.
A computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of generating a graph in response to a window click as described above.
The invention has the beneficial effects that: the invention adopts a chart generation method and a chart generation device for responding to window clicking. And reading parameters required by the window and a preset formula to calculate drawing parameters when the window is clicked, and finishing the generation of the chart according to the drawing parameters. Compared with the scheme of generating all charts in advance in the server and reading the charts in the prior art, the method only reads the corresponding parameters from the server after entering the window, ensures the parameters to be the latest parameters, avoids carrying out a large amount of operation drawing in the server when the parameters are updated, does not need to store a large amount of pictures in the server, greatly lightens the burden of the server, and effectively improves the operation efficiency of the system.
Drawings
The invention is further illustrated with reference to the following figures and examples.
FIG. 1 is a flowchart of a method and apparatus for generating a graph in response to a window click according to the present invention;
FIG. 2 is a schematic diagram of a method and an apparatus for generating a graph in response to a window click according to an embodiment of the present invention.
The reference numbers illustrate: 1. screening an option list; 2. a window region; 3. a chart generation area.
Detailed Description
Referring to fig. 1 and 2, a method for generating a graph in response to a window click according to the present invention includes:
step A, when detecting that a user clicks a target window, reading a target parameter type and a preset formula corresponding to the target window;
b, reading teaching parameters corresponding to the target parameter types from a database;
step C, calculating drawing parameters according to a preset formula and teaching parameters;
and D, generating a chart in the target window according to the obtained drawing parameters.
When only one window exists in the page, the window is defaulted to be clicked when the page is opened, and when a plurality of windows exist in the page, a target window is set according to actual clicking of a user.
For example, if the window area 2 shown in fig. 2 includes a plurality of windows, when the "teaching link time chart" window is clicked, the target parameter type and the preset formula corresponding to the window are read.
And B, wherein the teaching parameters in the step B are the summary of various classroom data generated in the course of lessons. Each teaching parameter is stored in the database in the form of an independent database table, and when the teaching parameters are read from the database, the names of the target parameter types are matched with the names of the teaching parameters.
The preset formula in the step C is a corresponding relation between the numerical value of the teaching parameter and the numerical value of the drawing parameter, the corresponding relation includes calculating the numerical value of the drawing parameter through a mathematical formula according to the teaching parameter, and the preset formula also includes directly applying the numerical value of the teaching parameter as the numerical value of the drawing parameter.
For example, when a chart of question accuracy is to be generated, the teaching parameters read include the total number of respondents and the number of respondents, and the drawing parameter is the percentage of the number of respondents divided by the total number of respondents.
For example, when the chart to be generated is the statistics of the number of the answer-to-answer persons, the number of the answer-to-answer persons in the teaching parameters is read, the number value of the answer-to-answer persons is given to the drawing parameters, and the generation of the statistical chart is completed.
In the teaching analysis, the X axis of the statistical chart is mainly used for displaying the name of the parameter type, so the drawing parameter in the step D corresponds to the Y axis value in the chart.
Preferably, referring to fig. 2, a fixed chart generation area 3 is set in the page, and a chart is generated in the area when a window is clicked, which is beneficial to improving user experience.
Further, the target parameter type and the preset formula are stored in the server and can be edited and modified in the server.
The method comprises the steps that a target parameter type and a preset formula are set and edited in a server in order to achieve user-defined setting, and when the target parameter type is edited or newly built, a user selects required teaching parameters from all teaching parameters contained in a database and sets a specific preset formula at the same time.
Further, the teaching parameters comprise parameter values and parameter attributes; and after the teaching parameters are successfully read in the target window, generating screening options according to the parameter attributes of the teaching parameters.
Wherein the parameter values are statistics values of various data collected in the course of lessons, such as number of answering people and number of right-to-right people; the parameter attributes comprise the grade, the class and the subject corresponding to the parameter collection, and the teacher can conveniently screen the data by distinguishing according to the grade and the subject.
As shown in fig. 2, the attribute of the teaching parameter is displayed as a screening option list 1, and when the parameter attribute of the teaching parameter is 3, 3 specific options are displayed in the page, where each option corresponds to the attribute of the teaching parameter.
Preferably, when multiple windows exist and the windows are switched, the content in the screening options is regenerated according to the teaching parameters corresponding to the target window.
Further, when the user is detected to select the parameter attribute in the screening option, the teaching parameter corresponding to the selected parameter attribute is read and used for calculating the drawing parameter, and the chart is regenerated.
After the teaching parameters are read from the database, and the specific attributes are selected through the screening options, the parameters with the attributes are read from the existing teaching parameters, and calculation is carried out again.
Further, when a plurality of windows exist in the same page, the current display window is set as the target window.
Further, when window switching is performed, the switched window is set as a target window to generate a chart, and the chart and all parameters in the original target window are deleted.
The read teaching parameters and the calculated drawing parameters are stored in the page cache in order to accelerate the efficiency of drawing and screening, and the cache of the original page is removed in order to save computer resources when the page is switched.
A chart generation apparatus responsive to a window click, comprising:
the target parameter type and preset formula reading device is used for reading the target parameter type and the preset formula corresponding to the target window when detecting that the user clicks the target window;
the teaching parameter reading device is used for reading teaching parameters corresponding to the target parameter types from the database;
the drawing parameter calculation device is used for calculating drawing parameters according to a preset formula and teaching parameters;
and the chart generating device is used for generating a chart in the target window according to the obtained drawing parameters.
Further, the device also comprises the following devices:
the screening option generating device is used for generating screening options according to the parameter attributes of the teaching parameters after the teaching parameters are successfully read from the target window;
the chart regenerating device is used for reading the teaching parameters corresponding to the selected parameter attributes and calculating drawing parameters when the user is detected to select the parameter attributes in the screening options, and regenerating the chart;
the target window setting device is used for setting the current display window as the target window when a plurality of windows exist in the same page;
and the window switching device is used for setting the switched window as a target window to generate a chart and deleting the chart and all parameters in the original target window when the window is switched.
A diagram generation apparatus responsive to a window click, comprising: at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of generating a graph in response to a window click as described above.
A computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of generating a graph in response to a window click as described above.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and the present invention shall fall within the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means.

Claims (8)

1. A method for generating a graph in response to a window click, comprising:
when a user clicks a target window, reading a target parameter type and a preset formula corresponding to the target window;
reading teaching parameters corresponding to the types of the target parameters from a database, wherein the teaching parameters comprise parameter values and parameter attributes;
after the teaching parameters are successfully read in the target window, screening options are generated according to the parameter attributes of the teaching parameters;
calculating drawing parameters according to a preset formula and teaching parameters;
generating a chart in a target window according to the obtained drawing parameters;
and when the user is detected to select the parameter attribute in the screening option, reading the teaching parameter corresponding to the selected parameter attribute and calculating the drawing parameter, and regenerating the chart.
2. The method of claim 1, wherein the method further comprises: the target parameter type and the preset formula are stored in the server and can be edited and modified in the server.
3. The method of claim 1, wherein the method further comprises: and when a plurality of windows exist in the same page, setting the current display window as a target window.
4. A method for generating a chart in response to a window click as claimed in claim 3, wherein: when the window is switched, the switched window is set as a target window to generate a chart, and the chart and all parameters in the original target window are deleted.
5. A chart generating apparatus responsive to a window click, comprising:
the target parameter type and preset formula reading device is used for reading the target parameter type and the preset formula corresponding to the target window when detecting that the user clicks the target window;
the teaching parameter reading device is used for reading teaching parameters corresponding to the target parameter types from the database;
the drawing parameter calculation device is used for calculating drawing parameters according to a preset formula and teaching parameters;
and the chart generating device is used for generating a chart in the target window according to the obtained drawing parameters.
6. A diagram generating apparatus responsive to window clicks according to claim 5, further comprising:
the screening option generating device is used for generating screening options according to the parameter attributes of the teaching parameters after the teaching parameters are successfully read from the target window;
the chart regenerating device is used for reading the teaching parameters corresponding to the selected parameter attributes and calculating drawing parameters when the user is detected to select the parameter attributes in the screening options, and regenerating the chart;
the target window setting device is used for setting the current display window as the target window when a plurality of windows exist in the same page;
and the window switching device is used for setting the switched window as a target window to generate a chart and deleting the chart and all parameters in the original target window when the window is switched.
7. A chart generation apparatus responsive to a window click, comprising: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
8. A computer-readable storage medium having computer-executable instructions stored thereon for causing a computer to perform the method of any one of claims 1-4.
CN201810875277.7A 2018-08-02 2018-08-02 Chart generation method and device for responding to window clicking Active CN109308204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810875277.7A CN109308204B (en) 2018-08-02 2018-08-02 Chart generation method and device for responding to window clicking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810875277.7A CN109308204B (en) 2018-08-02 2018-08-02 Chart generation method and device for responding to window clicking

Publications (2)

Publication Number Publication Date
CN109308204A CN109308204A (en) 2019-02-05
CN109308204B true CN109308204B (en) 2021-09-10

Family

ID=65226051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810875277.7A Active CN109308204B (en) 2018-08-02 2018-08-02 Chart generation method and device for responding to window clicking

Country Status (1)

Country Link
CN (1) CN109308204B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326212B (en) * 2020-02-28 2023-11-03 加特兰微电子科技(上海)有限公司 Data processing method and device and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092621A (en) * 2013-03-08 2013-05-08 广州市西美信息科技有限公司 Chart creating method and device
CN103186516A (en) * 2011-12-29 2013-07-03 广州市中海达测绘仪器有限公司 Method, device and system for generating monitoring graph
CN103530340A (en) * 2013-10-08 2014-01-22 北京农业信息技术研究中心 Network thematic map making method and map making system
CN105653507A (en) * 2014-11-12 2016-06-08 北大方正集团有限公司 Chart generation method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101159247B1 (en) * 2010-06-30 2012-06-25 고려대학교 산학협력단 Modulation profile generator and spread spectrum clock generator having the same
JP6020161B2 (en) * 2012-12-28 2016-11-02 富士通株式会社 Graph creation program, information processing apparatus, and graph creation method
US10095389B2 (en) * 2014-08-22 2018-10-09 Business Objects Software Ltd. Gesture-based on-chart data filtering
US20160253308A1 (en) * 2015-02-27 2016-09-01 Microsoft Technology Licensing, Llc Analysis view for pivot table interfacing
CN106126489A (en) * 2016-06-23 2016-11-16 江苏中威科技软件系统有限公司 A kind of report file dynamic chart edit methods and system
US10025563B2 (en) * 2016-09-14 2018-07-17 International Business Machines Corporation Selecting COBOL perform statements for inlining
CN107329943B (en) * 2017-06-29 2020-11-06 江苏赛睿信息科技股份有限公司 Intelligent graph adding method, storage medium and application server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186516A (en) * 2011-12-29 2013-07-03 广州市中海达测绘仪器有限公司 Method, device and system for generating monitoring graph
CN103092621A (en) * 2013-03-08 2013-05-08 广州市西美信息科技有限公司 Chart creating method and device
CN103530340A (en) * 2013-10-08 2014-01-22 北京农业信息技术研究中心 Network thematic map making method and map making system
CN105653507A (en) * 2014-11-12 2016-06-08 北大方正集团有限公司 Chart generation method and device

Also Published As

Publication number Publication date
CN109308204A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
DE102017121758A1 (en) Intelligent assistant for repeated actions
DE112011102891T5 (en) Automatic adjustment of an input configuration
CN110610404A (en) Network course recommendation method, device, system, electronic equipment and storage medium
CN111125342B (en) Problem test data generation method and device
US11886529B2 (en) Systems and methods for diagnosing quality issues in websites
KR102150307B1 (en) Server for online creativity leaning management
CN112667834A (en) Image annotation method and related device
CN110609947A (en) Learning content recommendation method, terminal and storage medium of intelligent learning system
JP6123260B2 (en) Extraction method, extraction apparatus, and extraction program
CN117012345A (en) Semi-automatic labeling method, system, equipment and medium for medical image
CN109308204B (en) Chart generation method and device for responding to window clicking
CN107526589A (en) Page display method and device
CN109840867B (en) Intelligent teaching method, equipment and device
CN113627816A (en) Evaluation management method and device, electronic equipment and storage medium
CN106406842A (en) A method and a system for displaying histograms on webpages
CN113688334A (en) Content display method and device and computer readable storage medium
CN111158685A (en) Static page updating method and device, electronic equipment and storage medium
JP2020134753A (en) Information processing program, information processing method and information processing device
CN105528505A (en) Online automatic learning style diagnosis system and method
CN110764662B (en) Information processing method, information processing device, electronic equipment and storage medium
CN111949882B (en) Intelligent diagnosis method for domain knowledge point structure defects
CN114331388A (en) Salary calculation method, device, equipment and storage medium based on federal learning
CN112150097A (en) Learning design generation method and device, electronic equipment and storage medium
CN112000786A (en) Dialogue robot problem processing method, device and equipment combining RPA and AI
CN116562254B (en) System, method, electronic device and storage medium for rapidly generating report

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211112

Address after: 529799 No. 346, Xincheng Road, shaping Town, Heshan City, Jiangmen City, Guangdong Province

Patentee after: Heshan Junsheng Technology Co., Ltd

Address before: 529000 No. 346 Xincheng Road, shaping Town, Heshan, Jiangmen City, Guangdong Province

Patentee before: Jun Hua Wen

TR01 Transfer of patent right