CN117407613A - Histogram generation method, device, equipment and storage medium - Google Patents

Histogram generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN117407613A
CN117407613A CN202311402409.1A CN202311402409A CN117407613A CN 117407613 A CN117407613 A CN 117407613A CN 202311402409 A CN202311402409 A CN 202311402409A CN 117407613 A CN117407613 A CN 117407613A
Authority
CN
China
Prior art keywords
histogram
template
type
target
data
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.)
Pending
Application number
CN202311402409.1A
Other languages
Chinese (zh)
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.)
Ping An Chuangke Technology Beijing Co ltd
Original Assignee
Ping An Chuangke Technology Beijing Co ltd
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 Ping An Chuangke Technology Beijing Co ltd filed Critical Ping An Chuangke Technology Beijing Co ltd
Priority to CN202311402409.1A priority Critical patent/CN117407613A/en
Publication of CN117407613A publication Critical patent/CN117407613A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention relates to the field of data display, and discloses a bar graph generation method for displaying business data in the field of financial insurance business, which comprises the following steps: screening the columnar graph code templates in the preset columnar graph code template set based on the columnar graph type to obtain a target columnar graph code template; constructing a histogram generation area on a preset webpage based on the number of groups of data parameters in the acquired data parameter information and the target histogram code template; and importing all the data parameters in the data parameter information into a target histogram code template, and rendering the target histogram code template imported with the data parameters in the histogram generation area to obtain a target histogram. The invention also provides a histogram generation device, equipment and medium, which can be used in the financial field and can improve the histogram generation efficiency of insurance business statistics data.

Description

Histogram generation method, device, equipment and storage medium
Technical Field
The present invention relates to data visualization technologies, and in particular, to a histogram generating method, apparatus, electronic device, and storage medium.
Background
With the development of economy and society, the requirements of people on the form of acquired information are higher and higher, particularly in the field of insurance business, in order to more clearly introduce the progress of related business, related insurance business statistics data need to be displayed to customers, in order to more facilitate the customers to understand different data difference conditions in the insurance business statistics data, the complicated form of generating a histogram of the financial insurance business statistics data is often displayed to the customers (for example, the insurance amounts of different property insurance products are presented to the users in the form of a histogram).
However, in the existing histogram generation method, when the insurance service statistics of the generated histogram change (for example, when the statistics insurance service statistics are the insurance amounts of different property insurance products, two property insurance products are changed into three property insurance products), the corresponding histogram generation codes need to be re-developed, so that the histogram generation efficiency of the insurance service statistics is low.
Disclosure of Invention
The invention provides a histogram generation method, a device, electronic equipment and a storage medium, and mainly aims to improve the histogram generation efficiency of insurance business statistics data.
Acquiring data parameter information and a histogram type of insurance business statistic data to be generated into a histogram, wherein the data parameter information comprises one or more groups of data parameters;
screening the columnar graph code templates in the preset columnar graph code template set based on the columnar graph types to obtain a target columnar graph code template;
constructing a histogram generation area on a preset webpage based on the group number of the data parameters in the data parameter information and the target histogram code template;
and importing all the data parameters in the data parameter information into a target histogram code template, and rendering the target histogram code template imported with the data parameters in the histogram generation area to obtain a target histogram.
Optionally, the screening the histogram code templates in the preset histogram code template set based on the histogram type to obtain a target histogram code template includes:
acquiring a template type of each histogram code template in the histogram code template set;
determining the template type which is the same as the histogram type as a target template type;
and determining the histogram code template corresponding to the target template type as the target histogram code template.
Optionally, the screening the histogram code templates in the preset histogram code template set based on the histogram type to obtain a target histogram code template includes:
acquiring a template type of each histogram code template in the histogram code template set;
calculating the correlation degree between the histogram type and each template type to obtain a template correlation degree corresponding to each template type;
and screening all the histogram code templates based on the template correlation degree to obtain the target histogram code template.
Optionally, the calculating the correlation between the histogram type and each template type to obtain a template correlation corresponding to each template type includes:
converting the histogram type into a vector form to obtain a histogram type vector;
converting the template type into a vector form to obtain a template type vector;
and calculating the vector similarity between the histogram type vector and each template type vector to obtain the template correlation corresponding to each template type.
Optionally, the converting the histogram type into a vector form to obtain a histogram type vector includes:
performing word segmentation processing on the histogram type to obtain type word segmentation words;
converting each word of the type word into a vector to obtain a corresponding word vector;
combining all the word vectors according to the sequence of the corresponding type word segmentation words in the histogram type to obtain a histogram type matrix;
and performing dimension reduction on the histogram type matrix to obtain the histogram type vector.
Optionally, the screening all the histogram code templates based on the template relevance to obtain the target histogram code template includes:
determining the template type corresponding to the maximum template correlation degree as a target template type;
and screening the histogram code templates corresponding to the target template types in the histogram code template set to obtain the target histogram code templates.
Optionally, the constructing a histogram generating area on a preset web page based on the number of groups of data parameters in the data parameter information and the target histogram code template includes:
acquiring display parameters of the webpage;
inquiring the corresponding page display proportion in a preset page display proportion table based on the target histogram code template and the group number of the data parameters in the data parameter information;
calculating an area display parameter based on the display parameter and the page display proportion;
and updating the display parameters of a preset chart generation area in the webpage to the area display parameters to obtain the histogram generation area.
In order to solve the above problems, the present invention also provides a histogram generating apparatus, the apparatus comprising:
the data acquisition module is used for acquiring data parameter information and a histogram type of insurance business statistical data of a histogram to be generated, wherein the data parameter information comprises one or more groups of data parameters;
the template screening module is used for screening the columnar graph code templates in the preset columnar graph code template set based on the columnar graph type to obtain a target columnar graph code template;
the histogram generation module is used for constructing a histogram generation area on a preset webpage based on the group number of the data parameters in the data parameter information and the target histogram code template; and importing all the data parameters in the data parameter information into a target histogram code template, and rendering the target histogram code template imported with the data parameters in the histogram generation area to obtain a target histogram.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
a memory storing at least one computer program; a kind of electronic device with high-pressure air-conditioning system
And a processor executing the computer program stored in the memory to implement the histogram generation method described above.
In order to solve the above-described problems, the present invention also provides a computer-readable storage medium having stored therein at least one computer program that is executed by a processor in an electronic device to implement the above-described histogram generation method.
According to the embodiment of the invention, the histogram code templates in the preset histogram code template set are screened based on the histogram type to obtain the target histogram code templates; constructing a histogram generation area on a preset webpage based on the group number of the data parameters in the data parameter information and the target histogram code template; and importing all the data parameters in the data parameter information into a target histogram code template, and rendering the target histogram code template imported with the data parameters in the histogram generation area to obtain a target histogram. Compared with the background technology, the method does not need to repeatedly develop corresponding codes every time the histogram is generated, can be directly matched with a needed code template to carry out code multiplexing, and improves the efficiency of generating the histogram of insurance business statistical data. Therefore, the histogram generation method, the device, the electronic equipment and the readable storage medium provided by the embodiment of the invention improve the efficiency of generating the insurance business statistic data histogram.
Drawings
FIG. 1 is a flowchart illustrating a histogram generation method according to an embodiment of the present invention;
FIG. 2 is a schematic block diagram of a histogram generating apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an internal structure of an electronic device for implementing a histogram generation method according to an embodiment of the present invention;
the achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention provides a histogram generation method. The execution subject of the histogram generation method includes, but is not limited to, at least one of a server, a terminal, and the like, which can be configured to execute the method provided by the embodiments of the present application. In other words, the histogram generation method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: the server can be an independent server, or can be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDNs), basic cloud computing services such as big data and artificial intelligent platforms, and the like.
Referring to fig. 1, which is a schematic flow chart of a histogram generation method according to an embodiment of the present invention, in an embodiment of the present invention, the histogram generation method includes the following steps:
s1, acquiring data parameter information and a histogram type of insurance business statistical data of a histogram to be generated, wherein the data parameter information comprises one or more groups of data parameters;
in order to generate a histogram of the insurance service statistics data (e.g., the insurance service statistics data are the insurance amounts of different property insurance products, the number of participating users of different insurance products of an insurance company), the comparison of the different data in the insurance service statistics data is shown more clearly (e.g., the insurance service statistics data are the insurance amounts of different property insurance products, then the insurance amount data of the different property insurance products are converted into a histogram, so that the insurance amount difference of the different property insurance products can be known more clearly), data parameter information of the insurance service statistics data to be generated in the histogram is obtained, the data parameter information is data to be embodied in the histogram and some parameters of the histogram to be generated in the insurance service statistics data, and the data parameter information is set into one or more groups of data parameters according to a preset data format, wherein each group of data parameters corresponds to one column in the histogram to be generated, and the data parameter comprises: data fields, data values, patterns of columns, colors, layouts, etc. require the generation of relevant attribute parameters for columns in a histogram, such as: the insurance business statistical data is the insurance amount of different types of insurance products, and then the data field is the insurance type and the data value is the insurance amount; the histogram type is text that characterizes requirements for the type of histogram to be generated.
S2, screening the columnar graph code templates in a preset columnar graph code template set based on the columnar graph type to obtain a target columnar graph code template;
in the embodiment of the invention, in order to generate the appropriate histogram pattern for the insurance statistical data, a better statistical comparison effect is shown, and an appropriate histogram template is required to be selected, so that a target histogram code template is obtained by screening the histogram code templates in a preset histogram code template set based on the histogram type, wherein the histogram code template set comprises a plurality of histogram code templates, and the histogram code templates are template codes which can generate a histogram after relevant parameters are imported.
Further, in order to screen a suitable histogram code template in the embodiment of the present invention, screening a histogram code template in a preset histogram code template set based on the histogram type to obtain a target histogram code template, including:
acquiring a template type of each histogram code template in the histogram code template set;
determining the template type which is the same as the histogram type as a target template type;
and determining the histogram code template corresponding to the target template type as the target histogram code template.
In order to ensure a difference in type description, which results in failure to screen a template type consistent with the histogram type, in another embodiment of the present invention, the step of screening a histogram code template in a preset histogram code template set based on the histogram type to obtain a target histogram code template includes:
acquiring a template type of each histogram code template in the histogram code template set;
calculating the correlation degree between the histogram type and each template type to obtain a template correlation degree corresponding to each template type;
and screening all the histogram code templates based on the template correlation degree to obtain the target histogram code template.
In detail, in the embodiment of the present invention, calculating the correlation between the histogram type and each template type to obtain a template correlation corresponding to each template type includes:
converting the histogram type into a vector form to obtain a histogram type vector;
converting the template type into a vector form to obtain a template type vector;
and calculating the vector similarity between the histogram type vector and each template type vector to obtain the template correlation corresponding to each template type.
Specifically, in another embodiment of the present invention, the converting the histogram type into a vector form to obtain a histogram type vector includes:
performing word segmentation processing on the histogram type to obtain type word segmentation words;
converting each word of the type word into a vector to obtain a corresponding word vector;
combining all the word vectors according to the sequence of the corresponding type word segmentation words in the histogram type to obtain a histogram type matrix;
and performing dimension reduction on the histogram type matrix to obtain the histogram type vector.
In the embodiment of the invention, the word vectors are used as columns of a matrix to be combined to obtain a histogram type matrix; alternatively, the method of converting each Word of the type into a vector is not limited in the embodiment of the present invention, and in particular, a method of using a distributed representation, such as Word2Vec or Doc2Vec, may be used to convert each Word of the type into a vector. Further, in the embodiment of the present invention, the dimension of the histogram type matrix is reduced to obtain a one-dimensional histogram type vector, and in the embodiment of the present invention, the dimension reduction method is not limited, for example, a dimension reduction algorithm such as principal component analysis or singular value decomposition may be used to reduce the dimension.
Further, in the embodiment of the present invention, screening all the histogram code templates based on the template correlation degree to obtain the target histogram code template includes:
determining the template type corresponding to the maximum template correlation degree as a target template type;
and screening the histogram code templates corresponding to the target template types in the histogram code template set to obtain the target histogram code templates.
S3, constructing a histogram generation area on a preset webpage based on the group number of the data parameters in the data parameter information and the target histogram code template;
in the embodiment of the invention, the size of the area of the histogram to be displayed can be determined after the histogram is rendered, so that the subsequent elements can be loaded, and the loading of the webpage is realized.
In detail, in the embodiment of the present invention, a histogram generation area is constructed on a preset web page based on the number of groups of data parameters in the data parameter information and the target histogram code template, including:
acquiring display parameters of the webpage;
inquiring the corresponding page display proportion in a preset page display proportion table based on the target histogram code template and the group number of the data parameters in the data parameter information;
calculating an area display parameter based on the display parameter and the page display proportion;
and updating the display parameters of a preset chart generation area in the webpage to the area display parameters to obtain the histogram generation area.
Specifically, in the embodiment of the present invention, the display parameters are length and width pixel parameters of the web page, further, different target histogram code templates and the number of groups of data parameters in the data parameter information correspond to different display proportions, and the correspondence is established in advance according to service requirements, and is embodied in the form of the page display proportion table, where in the embodiment of the present invention, the page display proportion includes: occupying the proportion of the webpage and the aspect ratio of the display.
In detail, in the embodiment of the invention, the display parameters of the chart generation area are updated by adjusting the div element parameters corresponding to the chart generation area, so as to obtain the histogram generation area.
S4, importing all the data parameters in the data parameter information into a target histogram code template, and rendering the target histogram code template imported with the data parameters in the histogram generation area to obtain a target histogram.
In the embodiment of the invention, in order to draw a histogram in the histogram generation area, all data parameters in the data parameter information are imported into a target histogram code template, and the target histogram code template imported with the data parameters is rendered in the histogram generation area to obtain a target histogram.
In detail, in the embodiment of the present invention, importing all the data parameters in the data parameter information into a target histogram code template, and rendering the target histogram code template into which the data parameters are imported in the histogram generation area to obtain a target histogram, including:
importing all data parameters in the data parameter information into a target histogram code template to obtain a code to be rendered;
and rendering and executing the code to be rendered in the histogram generation area by using a preset rendering method to obtain the target histogram.
Alternatively, the rendering function in the embodiment of the present invention may be a setOption method.
In another embodiment of the present invention, the step of importing all the data parameters in the data parameter information into a target histogram code template, and rendering the target histogram code template into which the data parameters are imported in the histogram generation area to obtain a target histogram includes:
importing all data parameters in the data parameter information into a target histogram code template to obtain a code to be rendered;
calling and executing the code to be rendered to generate a histogram, and outputting the generated histogram into a picture format to obtain an initial histogram;
and embedding and pushing the initial histogram into the histogram generation area for display to obtain the target histogram.
Optionally, the embodiment of the invention can use a matplotlib library or a pyechorts library of Python to call and execute the code to be rendered, generate a histogram at the back end and output the histogram as a picture format, and then use a template function of a web frame to generate html to push the picture embedding to the front end for displaying in the histogram generation area.
In the embodiment of the invention, the comparison of different data in the insurance business statistical data can be more clearly displayed in a straight pipe by generating the histogram of the insurance business statistical data, for example: if the insurance business statistical data is the insurance amount of the 5-money property insurance products, the generated target histogram is a target histogram containing five columns, and the height of each column represents the amount of the insurance amount of the corresponding property insurance product.
As shown in fig. 2, a functional block diagram of the histogram generating apparatus of the present invention is shown.
The histogram generating apparatus 100 of the present invention may be installed in an electronic device. Depending on the implemented functions, the histogram generating apparatus may include a data acquisition module 101, a template screening module 102, and a histogram generating module 103, which may also be referred to as a unit, refers to a series of computer program segments capable of being executed by a processor of an electronic device and of performing a fixed function, which are stored in a memory of the electronic device.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the data obtaining module 101 is configured to obtain data parameter information and a histogram type of insurance service statistics data to be generated into a histogram, where the data parameter information includes one or more groups of data parameters;
the template screening module 102 is configured to screen a histogram code template in a preset histogram code template set based on the histogram type to obtain a target histogram code template;
the histogram generation module 103 is configured to construct a histogram generation area on a preset web page based on the number of groups of data parameters in the data parameter information and the target histogram code template; and importing all the data parameters in the data parameter information into a target histogram code template, and rendering the target histogram code template imported with the data parameters in the histogram generation area to obtain a target histogram.
In detail, each module in the histogram generating apparatus 100 in the embodiment of the present invention adopts the same technical means as the histogram generating method described in fig. 1 and can generate the same technical effects when in use, which is not described herein.
Fig. 3 is a schematic structural diagram of an electronic device for implementing the histogram generation method according to the present invention.
The electronic device may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as a histogram generation program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, such as a mobile hard disk of the electronic device. The memory 11 may in other embodiments also be an external storage device of the electronic device, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only for storing application software installed in an electronic device and various types of data, such as codes of a histogram generation program, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing Unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the entire electronic device using various interfaces and lines, and executes various functions of the electronic device and processes data by running or executing programs or modules (e.g., a histogram generation program, etc.) stored in the memory 11, and calling data stored in the memory 11.
The communication bus 12 may be a peripheral component interconnect standard (PerIPheralComponent Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The communication bus 12 is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
Fig. 3 shows only an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 3 is not limiting of the electronic device and may include fewer or more components than shown, or may combine certain components, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power source (such as a battery) for supplying power to the respective components, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure classification circuit, power converter or inverter, power status indicator, etc. The electronic device may further include various sensors, bluetooth modules, wi-Fi modules, etc., which are not described herein.
Optionally, the communication interface 13 may comprise a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the communication interface 13 may further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The histogram generation program stored in the memory 11 in the electronic device is a combination of a plurality of computer programs, which when run in the processor 10, can realize:
acquiring data parameter information and a histogram type of insurance business statistic data to be generated into a histogram, wherein the data parameter information comprises one or more groups of data parameters;
screening the columnar graph code templates in the preset columnar graph code template set based on the columnar graph types to obtain a target columnar graph code template;
constructing a histogram generation area on a preset webpage based on the group number of the data parameters in the data parameter information and the target histogram code template;
and importing all the data parameters in the data parameter information into a target histogram code template, and rendering the target histogram code template imported with the data parameters in the histogram generation area to obtain a target histogram.
In particular, the specific implementation method of the processor 10 on the computer program may refer to the description of the relevant steps in the corresponding embodiment of fig. 1, which is not repeated herein.
Further, the electronic device integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. The computer readable medium may be non-volatile or volatile. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
Embodiments of the present invention may also provide a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, may implement:
acquiring data parameter information and a histogram type of insurance business statistic data to be generated into a histogram, wherein the data parameter information comprises one or more groups of data parameters;
screening the columnar graph code templates in the preset columnar graph code template set based on the columnar graph types to obtain a target columnar graph code template;
constructing a histogram generation area on a preset webpage based on the group number of the data parameters in the data parameter information and the target histogram code template;
and importing all the data parameters in the data parameter information into a target histogram code template, and rendering the target histogram code template imported with the data parameters in the histogram generation area to obtain a target histogram.
Further, the computer-usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. A histogram generation method, the method comprising:
acquiring data parameter information and a histogram type of insurance business statistic data to be generated into a histogram, wherein the data parameter information comprises one or more groups of data parameters;
screening the columnar graph code templates in the preset columnar graph code template set based on the columnar graph types to obtain a target columnar graph code template;
constructing a histogram generation area on a preset webpage based on the group number of the data parameters in the data parameter information and the target histogram code template;
and importing all the data parameters in the data parameter information into a target histogram code template, and rendering the target histogram code template imported with the data parameters in the histogram generation area to obtain a target histogram.
2. The method for generating a histogram according to claim 1, wherein the screening the histogram code templates in the preset histogram code template set based on the histogram type to obtain a target histogram code template includes:
acquiring a template type of each histogram code template in the histogram code template set;
determining the template type which is the same as the histogram type as a target template type;
and determining the histogram code template corresponding to the target template type as the target histogram code template.
3. The method for generating a histogram according to claim 1, wherein the screening the histogram code templates in the preset histogram code template set based on the histogram type to obtain a target histogram code template includes:
acquiring a template type of each histogram code template in the histogram code template set;
calculating the correlation degree between the histogram type and each template type to obtain a template correlation degree corresponding to each template type;
and screening all the histogram code templates based on the template correlation degree to obtain the target histogram code template.
4. The histogram generation method of claim 3, wherein said calculating a correlation between the histogram type and each of the template types to obtain a template correlation corresponding to each of the template types includes:
converting the histogram type into a vector form to obtain a histogram type vector;
converting the template type into a vector form to obtain a template type vector;
and calculating the vector similarity between the histogram type vector and each template type vector to obtain the template correlation corresponding to each template type.
5. The method of generating a histogram according to claim 4, wherein said converting the histogram type into a vector form, to obtain a histogram type vector, includes:
performing word segmentation processing on the histogram type to obtain type word segmentation words;
converting each word of the type word into a vector to obtain a corresponding word vector;
combining all the word vectors according to the sequence of the corresponding type word segmentation words in the histogram type to obtain a histogram type matrix;
and performing dimension reduction on the histogram type matrix to obtain the histogram type vector.
6. The histogram generation method of claim 3, wherein said screening all of said histogram code templates based on said template correlation to obtain said target histogram code template comprises:
determining the template type corresponding to the maximum template correlation degree as a target template type;
and screening the histogram code templates corresponding to the target template types in the histogram code template set to obtain the target histogram code templates.
7. The histogram generation method of any one of claims 1 to 6, wherein the constructing a histogram generation area on a preset web page based on the number of sets of data parameters in the data parameter information and the target histogram code template includes:
acquiring display parameters of the webpage;
inquiring the corresponding page display proportion in a preset page display proportion table based on the target histogram code template and the group number of the data parameters in the data parameter information;
calculating an area display parameter based on the display parameter and the page display proportion;
and updating the display parameters of a preset chart generation area in the webpage to the area display parameters to obtain the histogram generation area.
8. A histogram generation apparatus, comprising:
the data acquisition module is used for acquiring data parameter information and a histogram type of insurance business statistical data of a histogram to be generated, wherein the data parameter information comprises one or more groups of data parameters;
the template screening module is used for screening the columnar graph code templates in the preset columnar graph code template set based on the columnar graph type to obtain a target columnar graph code template;
the histogram generation module is used for constructing a histogram generation area on a preset webpage based on the group number of the data parameters in the data parameter information and the target histogram code template; and importing all the data parameters in the data parameter information into a target histogram code template, and rendering the target histogram code template imported with the data parameters in the histogram generation area to obtain a target histogram.
9. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the histogram generation method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the histogram generation method of any one of claims 1 to 7.
CN202311402409.1A 2023-10-26 2023-10-26 Histogram generation method, device, equipment and storage medium Pending CN117407613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311402409.1A CN117407613A (en) 2023-10-26 2023-10-26 Histogram generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311402409.1A CN117407613A (en) 2023-10-26 2023-10-26 Histogram generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117407613A true CN117407613A (en) 2024-01-16

Family

ID=89488595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311402409.1A Pending CN117407613A (en) 2023-10-26 2023-10-26 Histogram generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117407613A (en)

Similar Documents

Publication Publication Date Title
CN112052370A (en) Message generation method and device, electronic equipment and computer readable storage medium
CN112380859A (en) Public opinion information recommendation method and device, electronic equipment and computer storage medium
CN112418798A (en) Information auditing method and device, electronic equipment and storage medium
CN114979120B (en) Data uploading method, device, equipment and storage medium
CN112115145A (en) Data acquisition method and device, electronic equipment and storage medium
CN112949443A (en) Table structure identification method and device, electronic equipment and storage medium
CN113868528A (en) Information recommendation method and device, electronic equipment and readable storage medium
CN114491047A (en) Multi-label text classification method and device, electronic equipment and storage medium
CN114707474A (en) Report generation method and device, electronic equipment and computer readable storage medium
CN113868529A (en) Knowledge recommendation method and device, electronic equipment and readable storage medium
CN112579621A (en) Data display method and device, electronic equipment and computer storage medium
CN113837631B (en) Employee evaluation method and device, electronic equipment and readable storage medium
CN113468175B (en) Data compression method, device, electronic equipment and storage medium
CN115982454A (en) User portrait based questionnaire pushing method, device, equipment and storage medium
CN116578696A (en) Text abstract generation method, device, equipment and storage medium
CN113705686B (en) Image classification method, device, electronic equipment and readable storage medium
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN112233194B (en) Medical picture optimization method, device, equipment and computer readable storage medium
CN115409041A (en) Unstructured data extraction method, device, equipment and storage medium
CN117407613A (en) Histogram generation method, device, equipment and storage medium
CN115496166A (en) Multitasking method and device, electronic equipment and storage medium
CN115048920A (en) Front-end data exporting method, device, equipment and storage medium
CN111553133B (en) Report generation method and device, electronic equipment and storage medium
CN114490666A (en) Chart generation method, device and equipment based on data requirements and storage medium
CN113486646A (en) Product report issuing method and device, electronic equipment and readable storage medium

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