CN117056413A - Data view generation method and device, electronic equipment and storage medium - Google Patents

Data view generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117056413A
CN117056413A CN202310914244.XA CN202310914244A CN117056413A CN 117056413 A CN117056413 A CN 117056413A CN 202310914244 A CN202310914244 A CN 202310914244A CN 117056413 A CN117056413 A CN 117056413A
Authority
CN
China
Prior art keywords
data
display
view
field
data source
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
CN202310914244.XA
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.)
Dingdao Zhilian Beijing Technology Co ltd
Original Assignee
Dingdao Zhilian Beijing Technology 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 Dingdao Zhilian Beijing Technology Co ltd filed Critical Dingdao Zhilian Beijing Technology Co ltd
Priority to CN202310914244.XA priority Critical patent/CN117056413A/en
Publication of CN117056413A publication Critical patent/CN117056413A/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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a data view generation method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring customized data view configuration information; accessing a data source to obtain target data corresponding to the data view configuration information; converting the target data to meet the requirements of the data display assembly; and drawing a data view containing a data display component, wherein the display content of the data display component comprises target data. The technical scheme provided by the embodiment of the invention is applicable to various scenes needing to visualize, analyze and display the data, and can solve the problems of large data view drawing and developing workload and high complexity in the prior art.

Description

Data view generation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data view generating method, a device, an electronic apparatus, and a storage medium.
Background
A data view is a transformation of the original database data, another way to view the data, which hides the actual structure and details of the underlying data table, and can be viewed as a logical organization and presentation of the underlying data, only to the part of the data that is needed by the user or application. It is a virtual table or set of query results that does not actually store data, but rather is generated based on the definition of certain tables or other views in the database. Thus, the user can acquire the required data by accessing the data view without concern for the specific table structure of the underlying data, and the operation on the underlying data is simplified.
In the prior art, when the data view generation function is realized, program codes are required to be independently written for different data views, and the front end accesses data in a background database through different interfaces designed for the different data views and executes corresponding data logic processing. However, this approach requires writing a separate set of program code for each data view, which results in that no matter how many data views need to be generated, a corresponding set of program code must be written, and each set of program code needs to implement the conventional interface development joint debugging and data logic processing procedure, which increases the workload and complexity of development, and is not beneficial to maintenance and expansion of the system.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a data view generating method, apparatus, electronic device, and storage medium, so as to solve the problems of large development workload and high complexity in the prior art.
In a first aspect, an embodiment of the present invention provides a data view generating method, where the method includes:
acquiring customized data view configuration information;
accessing a data source to obtain target data corresponding to the data view configuration information;
converting the target data to meet the requirements of the data display assembly;
and drawing a data view containing a data display component, wherein the display content of the data display component comprises target data.
Further, obtaining customized data view configuration information includes:
a configuration interface for presenting a data view, wherein the configuration interface includes a data source display area;
and determining target fields in the data source to be displayed according to the setting operation of the display fields of the data source display area.
Further, the configuration interface of the data view also displays a custom area;
according to the setting operation of the display field of the data source display area, determining the target field in the data source to be displayed comprises the following steps:
detecting gesture operation of dragging the display field of the selected data source display area to the customization area;
and displaying the field in the data source display area dragged to the custom area as a target field in the data source to be displayed.
Further, the customization area comprises a dimension subarea and an index subarea;
detecting a gesture operation of dragging the selected data source display field to the custom region, comprising: for each sub-region: gesture operations are detected that drag a selected data source display field to the sub-region.
Further, obtaining the customized data view configuration information further includes:
acquiring at least one of the following configuration information of the data view: data screening conditions, data ordering rules, a data aggregation mode, a data calculation mode, data view access rights, a data display mode and a data connection relation.
In a second aspect, an embodiment of the present invention provides a data view generating apparatus, including:
the view configuration unit is used for acquiring customized data view configuration information;
the data acquisition unit is used for accessing the data source to obtain target data corresponding to the data view configuration information;
the conversion processing unit is used for carrying out conversion processing on the target data so as to meet the requirements of the data display assembly;
and the view drawing unit is used for drawing a data view containing a data display component, wherein the display content of the data display component comprises target data.
Further, the view configuration unit includes:
an interface display subunit for presenting a configuration interface of the data view, wherein the configuration interface comprises a data source display area;
and the field determination subunit is used for determining the target field in the data source to be displayed according to the setting operation of the display field of the data source display area.
Further, the configuration interface of the data view also displays a custom area;
the field determining subunit is configured to determine, according to a setting operation on a display field of a display area of a data source, a target field in the data source to be displayed, and specifically includes:
detecting gesture operation of dragging the display field of the selected data source display area to the customization area;
and displaying the field in the data source display area dragged to the custom area as a target field in the data source to be displayed.
Further, the customization area comprises a dimension subarea and an index subarea;
the field determination subunit is configured to detect a gesture operation of dragging the selected data source display field to the custom area, and specifically includes: for each sub-region: gesture operations are detected that drag a selected data source display field to the sub-region.
Further, the view configuration unit is further configured to:
acquiring at least one of the following configuration information of the data view: data screening conditions, data ordering rules, a data aggregation mode, a data calculation mode, data view access rights, a data display mode and a data connection relation.
In a third aspect, an embodiment of the present invention provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space surrounded by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the data view generating method described in the foregoing first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium storing one or more programs executable by one or more central processing units to implement the data view generation method described in the foregoing first aspect.
According to the technical scheme provided by the embodiment of the invention, various data view configuration information can be customized according to user preference and requirements, and then the data view is drawn after corresponding data is acquired from a data source according to the configuration information by executing a unified data logic processing flow, so that repeated writing of data logic processing codes is reduced, the efficiency of developing codes is improved, meanwhile, the interface development and joint debugging processes are simplified, and the operation is very simple and convenient for users.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a data view generating method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for generating a data view in a specific example provided in accordance with the first embodiment of the present invention;
FIG. 3 is a schematic diagram of a database field structure in a specific example provided in a first embodiment of the present invention;
FIG. 4 is a schematic diagram of a data view configuration interface according to a specific example provided in a first embodiment of the present invention;
FIG. 5 is a schematic diagram of a data view presentation effect in a specific example provided in the first embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data view generating device according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
The present embodiment provides a data view generation method that can be executed by a corresponding data view generation apparatus. Referring to fig. 1, the method includes the following steps 101-104.
And 101, acquiring customized data view configuration information.
Wherein, the data view is a view for screening, organizing and presenting specific data in the data source, and the configuration information can comprise the following configuration contents:
data source: the data sources required to configure the data view, i.e., the underlying data table, view, or other data source on which the data view is based;
field selection: configuring target fields in a data source to be displayed in a data view;
and (3) data filtering: configuring data screening conditions of the data view, and filtering out data meeting specific conditions in a data source;
data sorting: configuring a data ordering rule of the data view, and ordering the data according to specified conditions;
data aggregation: configuring data aggregation modes of the data view, such as summation, counting, average value and the like, and performing statistical analysis on the data;
and (3) data calculation: configuring a data calculation mode of the data view, calculating and deriving new fields from data in the data source by defining expressions or functions, wherein the derived fields can be used as the new fields in the data source for field selection;
data rights: configuring access rights of a data view, determining which users or roles can access and operate the data view;
and (3) data display: configuring display formats of fields in the data view, such as date format, currency format, etc., to make the data more readable and visual;
and (3) data connection: and configuring the association relation between the data view and other data views or tables, and performing connection inquiry and association analysis of the data.
In practical applications, one or more of the above configuration contents may be flexibly selected as the final data view configuration information according to a specific scenario, which is not particularly limited in this embodiment.
In this step 101, the data view configuration information may be customized in advance and then stored, and then the customized data view configuration information may be obtained by reading the stored content. In addition, the user-customized data view configuration information can be determined in real time through a man-machine interaction mode. Illustratively, step 101 specifically includes:
a configuration interface for presenting a data view, wherein the configuration interface includes a data source display area;
and determining target fields in the data source to be displayed according to the setting operation of the display fields of the data source display area.
The fields displayed in the data source display area may include all fields in the data source (e.g., number, name, age, gender, class, score, etc.), and the user may view the displayed fields in the data source display area presented by the configuration interface and select, by a setting operation, the target fields to be displayed in the data view from among them. The setting operation may include a check box selection, a drop down menu selection, a drag, a text input, a shortcut button, or a custom script, etc. These setup operations provide a flexible way to enable a user to customize the display fields of the data view according to their own needs. As a preferred embodiment, the configuration interface of the data view further displays a custom area, and correspondingly, the determining, according to the setting operation on the display field of the data source display area, the target field in the data source to be displayed specifically includes:
detecting gesture operation of dragging the display field of the selected data source display area to the customization area;
and displaying the field in the data source display area dragged to the custom area as a target field in the data source to be displayed.
The gesture operation is used as a man-machine interaction mode, and allows a user to move a selected field from a data source display area to a custom area through dragging, and the gesture operation can be an operation performed by using a mouse or a touch screen. When the user drags the fields displayed in the data source display area to the custom area, these fields will be identified as target fields in the data source that need to be displayed. In other words, the user designates a field to be displayed in the data view by dragging it from the data source display area to the custom area. The operation of dragging the field to the customizing region provides an intuitive and flexible mode for customizing the display field of the data view, can help a user to quickly and simply customize the display content of the data view, and improves user experience and working efficiency.
More preferably, the customization area includes a dimension sub-area and an index sub-area, and correspondingly, detecting a gesture operation of dragging the selected data source display area display field to the customization area includes:
for each sub-region: gesture operations are detected that drag a selected data source display field to the sub-region.
The dimension sub-region is used for selecting an attribute or a characteristic field for classifying or grouping data, and can be an actual physical attribute (such as geographic position, time, product category and the like) or an abstract concept (such as gender, user type, order state and the like); the index sub-region is then a field used to select an index that describes the object in the corresponding dimension. The gesture operation types of the two areas can be the same or different, and the gesture operation types are determined according to actual requirements.
And 102, accessing a data source to obtain target data corresponding to the data view configuration information.
In step 102, the data source may be various databases, files, etc., depending on the storage mode and the acquisition path of the data. Typically, the databases may be MySQL, oracle, SQL Server, mongoDB, doris, hive, etc. Databases store structured or semi-structured data that can be accessed and extracted through SQL or other query languages. A common file format (such as CSV, excel, JSON, XML) can be used as a data source, and the file stores flattened or layered data, so that the data can be imported and processed by reading the file content.
Specifically, the process of obtaining the target data may include the following operations:
analyzing the customized data view configuration information, and knowing key information such as defined data sources, table names, fields, screening conditions, ordering rules and the like;
connecting a data source: establishing connection with a data source according to the data source specified in the data view configuration information;
querying data: executing corresponding query operation according to the target field and the screening condition specified in the data view configuration information;
processing data: after the query result is obtained, converting, aggregating or other processing operations are carried out on the data according to the processing rules in the data view configuration information;
sequencing data: if the data view configuration information contains an ordering rule, the data can be ordered according to the ordering rule to ensure that the returned data are arranged according to the appointed sequence;
returning target data: and returning the data subjected to query, processing and sequencing as target data for further analysis and display.
It should be noted that the specific steps and implementation of obtaining the target data may vary according to different data view configuration information and data source types. Therefore, in practical application, the adjustment and implementation are required according to the specific situation.
Step 103, performing conversion processing on the target data so as to meet the requirements of the data display assembly.
First, parsing the target data, converting it from an original format into a processable data structure, such as a dictionary, list or object; secondly, converting the format of the analyzed target data according to the requirement of the data display assembly so as to ensure that the target data accords with the expected format of the data display assembly; then, according to the requirements of the data display component, the data is reorganized according to a specific hierarchical structure (for example, splicing of JSON data structures is performed), or the data is converted into a structure suitable for display of components such as a table, a chart, a list and the like. Through the steps, the target data format is converted into the format meeting the requirements of the data display assembly, so that the data can be ensured to be correctly displayed in the data display assembly.
Step 104, drawing a data view containing a data display component, wherein the display content of the data display component comprises target data.
In this embodiment, the data display component can be selected or designed by those skilled in the art according to the user's requirements, the display requirements of the target data, and the data characteristics. Typically, the data presentation component is a User Interface (UI) component, including forms, charts, lists, cards, and the like. Further, the attributes of the data presentation component may be configured according to the structure and content of the target data. For example, for a data presentation component of a table class, attributes such as column number, column width, ordering, paging, etc. may be set to ensure that data is properly displayed and interacted with. After the target data is obtained, the target data and the data display assembly can be bound, so that the data can be accurately transmitted and displayed, and then the target data is mapped to specific attributes or fields of the data display assembly according to the requirements of the data display assembly. It should be noted that, if the data view configuration information includes view drawing related content (such as font color of the target data), the data view including the data display component is also drawn according to the data view configuration information.
The data view generation method provided by the embodiment of the invention is described in detail below by taking a data source as an example of a bright screen duration distribution table. Referring to fig. 2, the data view generation method in this example includes the steps of:
first step, field acquisition
Acquiring a database field, comprising: a time section represents a bright screen time dividing section; number, which indicates the number of the screens in the corresponding time period of the bright screen duration;
the relevant field structure is shown in fig. 3;
second, data view configuration
A configuration interface for presenting a data view, wherein the interface comprises a data source display area and a customization area, and the customization area comprises a dimension subarea and an index subarea;
for dimension subregions: detecting gesture operation of dragging a selected data source display area time_section field to the sub-area; taking the time_section field as a target field in a data source to be displayed;
for the index subregion: detecting gesture operation of dragging a number field of the selected data source display area to the sub-area; taking the number field as another target field in the data source to be displayed;
as shown in fig. 4, in the data view configuration interface, the left side is a data source display area, the right side is a custom area, and a user can drag a number field of the left side area into a dimension sub-area of the right side area by dragging a time_section field of the left side area into the dimension sub-area of the right side area;
third step, data conversion processing
Accessing a database to obtain target data corresponding to the data view configuration information;
converting the target data format into a JSON format conforming to a UI component (such as a time line component), and carrying out JSON data structure combination according to the requirement of the UI component;
fourth step, content display
Rendering a data view containing a UI component (e.g., a timeline component) for presentation, wherein presentation content of the UI component includes target data, a particular presentation interface may be as shown in FIG. 5.
Example two
The embodiment provides a data view generation device which is realized by software and is used for executing the data view generation method. Referring to fig. 6, the apparatus specifically includes the following units:
a view configuration unit 601, configured to obtain customized data view configuration information;
a data acquisition unit 602, configured to access a data source to obtain target data corresponding to the data view configuration information;
the conversion processing unit 603 is configured to perform conversion processing on the target data so as to meet the requirement of the data display component;
and a view drawing unit 604 for drawing a data view including a data presentation component, wherein the presentation content of the data presentation component includes the target data.
Exemplary, the view configuration unit 601 includes:
an interface display subunit 6011 configured to present a configuration interface of the data view, wherein the configuration interface includes a data source display area;
a field determination subunit 6012 configured to determine, according to a setting operation for the display field of the data source display area, a target field in the data source to be displayed.
Further, the configuration interface of the data view also displays a custom area;
the field determination subunit 6012 is configured to determine, according to a setting operation on a display field of a data source display area, a target field in a data source to be displayed, and specifically includes:
detecting gesture operation of dragging the display field of the selected data source display area to the customization area;
and displaying the field in the data source display area dragged to the custom area as a target field in the data source to be displayed.
Illustratively, the custom region includes a dimension sub-region and an index sub-region; the field determination subunit 6012 is configured to detect a gesture operation of dragging the selected data source display field to the custom region, and specifically includes: for each sub-region: gesture operations are detected that drag a selected data source display field to the sub-region.
On the basis of the above scheme, the view configuration unit 601 is further configured to obtain at least one of the following configuration information of the data view: data screening conditions, data ordering rules, a data aggregation mode, a data calculation mode, data view access rights, a data display mode and a data connection relation.
The data view generating device provided in this embodiment belongs to the same inventive concept as the foregoing method embodiment, and technical details not described in this embodiment may refer to related descriptions in the foregoing method embodiment, which are not repeated herein.
Fig. 7 is a schematic structural diagram of an embodiment of an electronic device according to the present invention, where the flow of the embodiment shown in fig. 1 of the present invention may be implemented, and as shown in fig. 7, the electronic device may include: the processor 72 and the memory 73 are arranged on the circuit board 74, wherein the circuit board 74 is arranged in a space surrounded by the shell 71; a power supply circuit 75 for supplying power to the respective circuits or devices of the above-described electronic apparatus; memory 73 is used to store executable program code; the processor 72 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 73 for performing the data view generation method described in any of the foregoing embodiments.
The specific implementation of the above steps by the processor 72 and the further implementation of the steps by the processor 72 by running executable program codes may be referred to the description of the embodiment of fig. 1 of the present invention, and will not be repeated here.
The electronic device exists in a variety of forms including, but not limited to:
(1) A mobile communication device: the equipment is characterized by having a mobile communication function and mainly aims at providing voice and data communication; such terminals include: smart phones (e.g., iPhone), multimedia phones, functional phones, and low-end phones, etc.;
(2) Ultra mobile personal computer device: such devices are in the category of personal computers, having computing and processing functions, and generally also having mobile internet access characteristics. Such terminals include: PDA, MID, and UMPC devices, etc., such as iPad;
(3) Portable entertainment device: such devices may display and play multimedia content. The device comprises: audio, video players (e.g., iPod), palm game consoles, electronic books, and smart toys and portable car navigation devices;
(4) And (3) a server: the device for providing the computing service, the server comprises a processor, a hard disk, a memory, a system bus and the like, and the server has similar structure as a general computer, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing highly reliable service;
(5) Other electronic devices having data processing functions.
Furthermore, the embodiment of the present invention also provides a computer readable storage medium storing one or more programs executable by one or more central processing units to implement the data view generation method described in the foregoing embodiment.
In summary, the technical scheme provided by the embodiment of the invention has the following advantages:
the configuration information of the data view can be customized, and the unified logic processing flow is driven based on the configuration information to generate the personalized data view meeting the user requirement, so that repeated work of logic code writing and interface joint debugging is avoided, and the development efficiency is improved;
through simple gesture actions, target fields required by the data view can be selected from fields provided by a data source, so that a data structure required by the data view is combined, and a person who does not understand technical development can easily go up to customize content required to be displayed by himself through dynamically configuring the fields, so that the operation is simple and convenient, and additional learning cost is not required.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the embodiment of the invention, the term "and/or" describes the association relation of the association objects, which means that three relations can exist, for example, a and/or B can be expressed as follows: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
For convenience of description, the above apparatus is described as being functionally divided into various units/modules, respectively. Of course, the functions of the various elements/modules may be implemented in the same piece or pieces of software and/or hardware when implementing the present invention.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps 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 (Random Access Memory, RAM), or the like.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A method of generating a data view, the method comprising:
acquiring customized data view configuration information;
accessing a data source to obtain target data corresponding to the data view configuration information;
converting the target data to meet the requirements of the data display assembly;
and drawing a data view containing a data display component, wherein the display content of the data display component comprises target data.
2. The method of claim 1, wherein obtaining customized data view configuration information comprises:
a configuration interface for presenting a data view, wherein the configuration interface includes a data source display area;
and determining target fields in the data source to be displayed according to the setting operation of the display fields of the data source display area.
3. The method of claim 2, wherein the configuration interface of the data view further displays a custom region;
according to the setting operation of the display field of the data source display area, determining the target field in the data source to be displayed comprises the following steps:
detecting gesture operation of dragging the display field of the selected data source display area to the customization area;
and displaying the field in the data source display area dragged to the custom area as a target field in the data source to be displayed.
4. A method according to claim 3, wherein the custom region comprises a dimension sub-region and an index sub-region;
detecting a gesture operation of dragging the selected data source display field to the custom region, comprising:
for each sub-region: gesture operations are detected that drag a selected data source display field to the sub-region.
5. The method of claim 2, wherein obtaining customized data view configuration information further comprises:
acquiring at least one of the following configuration information of the data view: data screening conditions, data ordering rules, a data aggregation mode, a data calculation mode, data view access rights, a data display mode and a data connection relation.
6. A data view generation apparatus, the apparatus comprising:
the view configuration unit is used for acquiring customized data view configuration information;
the data acquisition unit is used for accessing the data source to obtain target data corresponding to the data view configuration information;
the conversion processing unit is used for carrying out conversion processing on the target data so as to meet the requirements of the data display assembly;
and the view drawing unit is used for drawing a data view containing a data display component, wherein the display content of the data display component comprises target data.
7. The apparatus of claim 6, wherein the view configuration unit comprises:
an interface display subunit for presenting a configuration interface of the data view, wherein the configuration interface comprises a data source display area;
and the field determination subunit is used for determining the target field in the data source to be displayed according to the setting operation of the display field of the data source display area.
8. The apparatus of claim 7, wherein the configuration interface of the data view further displays a custom region;
the field determining subunit is configured to determine, according to a setting operation on a display field of a display area of a data source, a target field in the data source to be displayed, and specifically includes:
detecting gesture operation of dragging the display field of the selected data source display area to the customization area;
and displaying the field in the data source display area dragged to the custom area as a target field in the data source to be displayed.
9. The apparatus of claim 8, wherein the custom region comprises a dimension sub-region and an index sub-region;
the field determination subunit is configured to detect a gesture operation of dragging the selected data source display field to the custom area, and specifically includes:
for each sub-region: gesture operations are detected that drag a selected data source display field to the sub-region.
10. The apparatus of claim 7, wherein the view configuration unit is further configured to:
acquiring at least one of the following configuration information of the data view: data screening conditions, data ordering rules, a data aggregation mode, a data calculation mode, data view access rights, a data display mode and a data connection relation.
CN202310914244.XA 2023-07-25 2023-07-25 Data view generation method and device, electronic equipment and storage medium Pending CN117056413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310914244.XA CN117056413A (en) 2023-07-25 2023-07-25 Data view generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310914244.XA CN117056413A (en) 2023-07-25 2023-07-25 Data view generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117056413A true CN117056413A (en) 2023-11-14

Family

ID=88659957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310914244.XA Pending CN117056413A (en) 2023-07-25 2023-07-25 Data view generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117056413A (en)

Similar Documents

Publication Publication Date Title
US10466971B2 (en) Generation of an application from data
US9870362B2 (en) Interactive data-driven presentations
US9842102B2 (en) Automatic ontology generation for natural-language processing applications
US9411482B2 (en) Visualizing user interfaces
Khan et al. Blind-friendly user interfaces–a pilot study on improving the accessibility of touchscreen interfaces
CN110045953A (en) Generate the method and computing device of business rule expression formula
US9218324B2 (en) Method of encapsulating diverse user interface components while consistently enforcing external constraints
US9910641B2 (en) Generation of application behaviors
WO2016085526A1 (en) Method and system for generating dynamic user experience
CN108958731B (en) Application program interface generation method, device, equipment and storage medium
CN113535165A (en) Interface generation method and device, electronic equipment and computer readable storage medium
CN113018870A (en) Data processing method and device and computer readable storage medium
US10445290B1 (en) System and method for a smart configurable high performance interactive log file viewer
CN110990006A (en) Form management system and form generation device
CN114217794A (en) Page design method, client device, readable medium, and program product
CN117056413A (en) Data view generation method and device, electronic equipment and storage medium
CN111831277B (en) Virtual data generation method, system, device and computer readable storage medium
CN114090002A (en) Front-end interface construction method and device, electronic equipment and storage medium
CN111061472A (en) Method and system for generating visualized edited violin diagram
CN117519889B (en) Form component switching method and device, storage medium and electronic equipment
Heimgärtner Method-mix for the development of intercultural user interfaces-exemplified
CN112446196A (en) File revision method, device and equipment
CN107239459B (en) Entity contact diagram display method and device
US20210154534A1 (en) System And Method For Generating Graphical Visualization
CN115544420A (en) Configuration method, display method and device of ranking list page 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