Data display method and device, computer readable storage medium and electronic equipment
By determining the display method based on the type of new energy battery data, the problem of inflexible data display in the prior art is solved, and the readability and user experience of the data are improved.
Patent Information
- Application Number
- CN202311523996.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-15
- Publication Date
- 2025-05-16
AI Technical Summary
The existing data display method uses a fixed display method when displaying new energy battery data, which is difficult to accurately reflect the characteristics and details of the data, reducing the readability of the data and resulting in poor user experience.
By responsive to the data display instruction, the target data is obtained and the corresponding display method is determined according to the type of the target data, and the data display is performed according to the display method, so as to better present the characteristics and details of the data.
Improves the readability of data, improves the user experience, and enables users to conduct data analysis more effectively.
Smart Images

Figure CN120011426A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and in particular, relates to a data display method, device, computer-readable storage medium and electronic device. Background Art
[0002] With the development of technology, new energy batteries are being used more and more widely, and battery manufacturers need to obtain more and more types of battery data. In order to facilitate users to understand the usage status of new energy batteries, various battery data can be displayed according to a preset data display method. However, existing data display methods usually use a fixed display method when displaying various types of battery data, which makes it difficult to accurately reflect the characteristics and details of various types of data, reduces the readability of the data, and is not conducive to user data analysis, resulting in a poor user experience. Summary of the invention
[0003] In view of this, embodiments of the present application provide a data display method, device, computer-readable storage medium, and electronic device to solve the problem that existing data display methods reduce the readability of data and lead to poor user experience.
[0004] A first aspect of an embodiment of the present application provides a data display method, which may include:
[0005] In response to a data display instruction, acquiring target data corresponding to the data display instruction;
[0006] Determine a target data type corresponding to the target data;
[0007] Determining a target display mode corresponding to the target data type according to a preset display mode correspondence relationship;
[0008] The target data is displayed according to the target display method.
[0009] Through the above method, the target display method corresponding to the target data type can be determined according to the target data type corresponding to the target data, and the target data can be displayed according to the target display method, so as to better present the characteristics and details of the target data, help improve the readability of the target data, and improve the user experience.
[0010] In a specific implementation of the first aspect, the data display instruction may include a target data identifier and a target time range;
[0011] The acquiring of the target data corresponding to the data display instruction may include:
[0012] The target data corresponding to the data display instruction is acquired from a preset database according to the target data identifier and the target time range.
[0013] Through the above method, the target data can be obtained from the preset database according to the target data identifier and the target time range, which can improve the accuracy and efficiency of target data acquisition.
[0014] In a specific implementation of the first aspect, the data display instruction may include a target data identifier;
[0015] The acquiring of the target data corresponding to the data display instruction may include:
[0016] According to the target data identifier and a preset default time range, the target data corresponding to the data display instruction is acquired from a preset database.
[0017] Through the above method, a default time range can be set, so that when only the target data identifier is included in the data display instruction, the target data can be obtained from the preset database according to the target data identifier and the default time range, which effectively improves the robustness of the data acquisition process.
[0018] In a specific implementation of the first aspect, the data display instruction may include a target time range;
[0019] The acquiring of the target data corresponding to the data display instruction may include:
[0020] According to the target time range and a preset default data identifier, the target data corresponding to the data display instruction is acquired from a preset database.
[0021] Through the above method, a default data identifier can be set, so that when the data display instruction only includes the target time range, the target data can be obtained from the preset database according to the target time range and the default data identifier, which effectively improves the robustness of the data acquisition process.
[0022] In a specific implementation of the first aspect, the data display instruction may be an empty instruction;
[0023] The acquiring of the target data corresponding to the data display instruction may include:
[0024] According to a preset default time range and a preset default data identifier, the target data corresponding to the data display instruction is acquired from a preset database.
[0025] Through the above method, a default time range and a default data identifier can be set, so that when the data display instruction is an empty instruction, the target data can be obtained from the preset database according to the default time range and the default data identifier, which effectively improves the robustness of the data acquisition process.
[0026] In a specific implementation of the first aspect, acquiring the target data corresponding to the data display instruction from a preset database according to the target data identifier and the target time range may include:
[0027] Determining a target time granularity corresponding to the target time range;
[0028] Querying the database for a target data group corresponding to the target time granularity;
[0029] The target data corresponding to the data display instruction is acquired from the target data group according to the target data identifier and the target time range.
[0030] Through the above method, the target time granularity corresponding to the target time range can be determined, and the target data grouping corresponding to the target time granularity can be queried in a preset database. According to the target data identifier and the target time range, the target data can be obtained from the target data grouping, thereby improving the efficiency of data acquisition.
[0031] In a specific implementation of the first aspect, acquiring the target data corresponding to the data display instruction from a preset database according to the target data identifier and the target time range may include:
[0032] Querying the database for a target data group corresponding to the target data identifier; wherein the target data group includes aggregated data of multiple time granularities;
[0033] Determining a target time granularity corresponding to the target time range;
[0034] The target data corresponding to the data display instruction is acquired from the target data group according to the target time granularity and the target time range.
[0035] Through the above method, the target time granularity corresponding to the target time range can be further determined, and the target data can be obtained according to the target time granularity and the target time range. Based on this, a more appropriate target time granularity can be determined, which can reduce the problem of data distortion and help improve the readability of the target data.
[0036] In a specific implementation of the first aspect, determining the target time granularity corresponding to the target time range may include:
[0037] Calculating a target duration corresponding to the target time range;
[0038] Determine the target time granularity corresponding to the target duration; wherein the size of the target time granularity is positively correlated with the length of the target duration.
[0039] Through the above method, the size of the target time granularity can be positively correlated with the length of the target duration, so that more comprehensive data can be displayed under different target durations, which helps to improve the user experience.
[0040] In a specific implementation of the first aspect, determining the target time granularity corresponding to the target duration may include:
[0041] The target time granularity corresponding to the target duration is determined according to a preset time granularity correspondence relationship; wherein the time granularity correspondence relationship is a correspondence relationship between various durations and various time granularities.
[0042] Through the above method, the target time granularity corresponding to the target duration can be determined according to the preset time granularity correspondence relationship, so that the target time granularity can be determined more efficiently.
[0043] In a specific implementation of the first aspect, determining the target time granularity corresponding to the target duration may include:
[0044] Determining the initial time granularity according to the target duration and a preset benchmark display data volume;
[0045] The one closest to the initial time granularity is selected from the preset time granularity set as the target time granularity.
[0046] Through the above method, the initial time granularity can be determined according to the target duration and the benchmark display data volume, and the one closest to the initial time granularity in the time granularity set can be selected as the target time granularity, so as to determine a more appropriate time granularity, improve the data display effect, and improve the user experience.
[0047] In a specific implementation of the first aspect, acquiring the target data corresponding to the data display instruction from the target data group according to the target time granularity and the target time range may include:
[0048] Querying the target aggregate data corresponding to the target time granularity in the target data group;
[0049] The data in the target time range among the target aggregated data are determined as the target data, and the target data is acquired.
[0050] Through the above method, target aggregate data corresponding to the target time granularity can be queried in the target data, and data in the target aggregate data within the target time range can be determined as target data, thereby improving the efficiency and accuracy of the target data acquisition process.
[0051] In a specific implementation of the first aspect, before obtaining target data corresponding to the data display instruction in response to the data display instruction, the method may further include:
[0052] Receive input data;
[0053] Classify the input data according to a plurality of preset data types to obtain classified data;
[0054] The classified data is stored in a preset database.
[0055] Through the above method, the input data can be classified according to the data type, which is conducive to determining the corresponding display method according to the data type in the subsequent process, and can improve the adaptability of the scene.
[0056] In a specific implementation of the first aspect, classifying the input data according to various preset data types to obtain classified data may include:
[0057] Extracting a data type identifier from the input data; wherein each data type identifier corresponds to a data type;
[0058] The input data is classified according to the data type identifier to obtain the classified data.
[0059] Through the above method, the input data can be classified according to the data type identifier, which is conducive to determining the corresponding display method according to the data type in the subsequent process, and can improve the adaptability of the scene.
[0060] In a specific implementation of the first aspect, storing the classified data in a preset database may include:
[0061] Aggregating the classified data according to a plurality of preset time granularities to obtain aggregated data at a plurality of time granularities;
[0062] Aggregate data of multiple time granularities are stored in the database respectively.
[0063] Through the above method, the classified data can be aggregated according to multiple time granularities to obtain aggregated data of multiple time granularities, and the aggregated data of multiple time granularities can be stored in the database respectively. Accordingly, it is possible to respond quickly when displaying data, and when it is necessary to switch the time granularity, the displayed data can also be updated in time to improve the user experience.
[0064] In a specific implementation of the first aspect, before classifying the input data according to the preset multiple data types to obtain the classified data, the method may further include:
[0065] Cleaning and converting the input data to obtain cleaned input data;
[0066] The step of classifying the input data according to the preset multiple data types to obtain the classified data may include:
[0067] The cleaned input data is classified according to a plurality of preset data types to obtain the classified data.
[0068] Through the above method, the input data can be cleaned and converted, thereby reducing invalid data in the input data and improving the quality of the input data and the efficiency of subsequent data processing.
[0069] A second aspect of an embodiment of the present application provides a data display device, which may include:
[0070] a target data acquisition module, configured to acquire target data corresponding to the data display instruction in response to the data display instruction;
[0071] A data type determination module, used to determine a target data type corresponding to the target data;
[0072] A display mode determination module, used to determine a target display mode corresponding to the target data type according to a preset display mode correspondence relationship;
[0073] The target data display module is used to display the target data according to the target display mode.
[0074] Through the above-mentioned device, the target display method corresponding to the target data type can be determined according to the target data type corresponding to the target data, and the target data can be displayed according to the target display method, so as to better present the characteristics and details of the target data, help improve the readability of the target data, and improve the user experience.
[0075] In a specific implementation of the second aspect, the data display instruction includes a target data identifier and a target time range;
[0076] The target data acquisition module may include:
[0077] The target data acquisition submodule is used to acquire the target data corresponding to the data display instruction from a preset database according to the target data identifier and the target time range.
[0078] Through the above device, target data can be obtained from a preset database according to the target data identifier and the target time range, which can improve the accuracy and efficiency of target data acquisition.
[0079] In a specific implementation of the second aspect, the data display instruction may include a target data identifier;
[0080] Furthermore, the target data acquisition submodule may also be configured to acquire the target data corresponding to the data display instruction from a preset database according to the target data identifier and a preset default time range.
[0081] Through the above device, a default time range can be set, so that when the data display instruction only includes the target data identifier, the target data can be obtained from the preset database according to the target data identifier and the default time range, which effectively improves the robustness of the data acquisition process.
[0082] In a specific implementation of the second aspect, the data display instruction may include a target time range;
[0083] Furthermore, the target data acquisition submodule may also be configured to acquire the target data corresponding to the data display instruction from a preset database according to the target time range and a preset default data identifier.
[0084] Through the above device, a default data identifier can be set, so that when the data display instruction only includes the target time range, the target data can be obtained from the preset database according to the target time range and the default data identifier, which effectively improves the robustness of the data acquisition process.
[0085] In a specific implementation of the second aspect, the data display instruction may be an empty instruction;
[0086] Furthermore, the target data acquisition submodule may also be configured to acquire the target data corresponding to the data display instruction from a preset database according to a preset default time range and a preset default data identifier.
[0087] Through the above device, a default time range and a default data identifier can be set, so that when the data display instruction is an empty instruction, the target data can be obtained from the preset database according to the default time range and the default data identifier, which effectively improves the robustness of the data acquisition process.
[0088] In a specific implementation of the second aspect, the target data acquisition submodule may include:
[0089] A target time granularity determination unit, configured to determine a target time granularity corresponding to the target time range;
[0090] a target data group determination unit, configured to query the database for a target data group corresponding to the target time granularity;
[0091] A target data acquisition unit is used to acquire the target data corresponding to the data display instruction from the target data group according to the target data identifier and the target time range.
[0092] Through the above-mentioned device, the target time granularity corresponding to the target time range can be determined, and the target data grouping corresponding to the target time granularity can be queried in a preset database. According to the target data identifier and the target time range, the target data can be obtained from the target data grouping, thereby improving the efficiency of data acquisition.
[0093] Further, the target data group determination unit may also be used to query the database for a target data group corresponding to the target data identifier; wherein the target data group includes aggregated data of multiple time granularities;
[0094] The target time granularity determination unit may also be used to determine the target time granularity corresponding to the target time range;
[0095] The target data acquisition unit may also be configured to acquire the target data corresponding to the data display instruction from the target data group according to the target time granularity and the target time range.
[0096] Through the above-mentioned device, the target time granularity corresponding to the target time range can be further determined, and the target data can be obtained according to the target time granularity and the target time range. Based on this, a more appropriate target time granularity can be determined, which can reduce the problem of data distortion and help improve the readability of the target data.
[0097] In a specific implementation of the second aspect, the target time granularity determination unit may include:
[0098] A target duration calculation subunit, used to calculate a target duration corresponding to the target time range;
[0099] The time granularity determination subunit is used to determine the target time granularity corresponding to the target duration; wherein the size of the target time granularity is positively correlated with the length of the target duration.
[0100] Through the above device, the size of the target time granularity can be positively correlated with the length of the target duration, so that more comprehensive data can be displayed under different target durations, which helps to improve the user experience.
[0101] In a specific implementation of the second aspect, the time granularity determination subunit can also be used to determine the target time granularity corresponding to the target duration according to a preset time granularity correspondence relationship; wherein the time granularity correspondence relationship is a correspondence relationship between various durations and various time granularities.
[0102] Through the above device, the target time granularity corresponding to the target duration can be determined according to the preset time granularity correspondence relationship, so that the target time granularity can be determined more efficiently.
[0103] In a specific implementation of the second aspect, the time granularity determination subunit may include:
[0104] An initial time granularity determination subunit, used to determine the initial time granularity according to the target duration and a preset benchmark display data volume;
[0105] The target time granularity determination subunit is used to select one of the preset time granularities that is closest to the initial time granularity as the target time granularity.
[0106] Through the above device, the initial time granularity can be determined according to the target duration and the benchmark display data volume, and the one in the time granularity set that is closest to the initial time granularity can be selected as the target time granularity, so that a more appropriate time granularity can be determined, the data display effect can be improved, and the user experience can be improved.
[0107] In a specific implementation of the second aspect, the target data acquisition unit may include:
[0108] An aggregate data query subunit, configured to query target aggregate data corresponding to the target time granularity in the target data group;
[0109] The target data determination subunit is used to determine the data in the target aggregate data that is within the target time range as the target data, and obtain the target data.
[0110] Through the above device, target aggregate data corresponding to the target time granularity can be queried in the target data, and data in the target aggregate data within the target time range can be determined as target data, thereby improving the efficiency and accuracy of the target data acquisition process.
[0111] In a specific implementation of the second aspect, the data display device may further include:
[0112] A data receiving module, used for receiving input data;
[0113] A data classification module, used to classify the input data according to a plurality of preset data types to obtain classified data;
[0114] The data storage module is used to store the classified data in a preset database.
[0115] Through the above device, the input data can be classified according to the data type, which is conducive to determining the corresponding display method according to the data type in the subsequent process, and can improve the scene adaptability.
[0116] In a specific implementation of the second aspect, the data receiving module may include:
[0117] An identifier extraction submodule, used to extract a data type identifier from the input data; wherein each data type identifier corresponds to a data type;
[0118] The data classification submodule is used to classify the input data according to the data type identifier to obtain the classified data.
[0119] Through the above-mentioned device, the input data can be classified according to the data type identifier, which is conducive to determining the corresponding display method according to the data type in the subsequent process, and can improve the scene adaptability.
[0120] In a specific implementation of the second aspect, the data storage module may include:
[0121] A data aggregation submodule, used to aggregate the classified data according to a plurality of preset time granularities to obtain aggregated data of a plurality of time granularities;
[0122] The data storage submodule is used to store the aggregated data of multiple time granularities in the database respectively.
[0123] Through the above-mentioned device, the classified data can be aggregated according to multiple time granularities to obtain aggregated data of multiple time granularities, and the aggregated data of multiple time granularities can be stored in the database respectively. Accordingly, it is possible to respond quickly when displaying data, and when it is necessary to switch the time granularity, the displayed data can also be updated in time to improve the user experience.
[0124] In a specific implementation of the second aspect, the data display device may further include:
[0125] A cleaning and conversion module, used for performing cleaning and conversion on the input data to obtain the cleaned input data;
[0126] The data classification module can also be used to classify the cleaned input data according to a plurality of preset data types to obtain the classified data.
[0127] Through the above device, the input data can be cleaned and converted, thereby reducing invalid data in the input data and improving the quality of the input data and the efficiency of subsequent data processing.
[0128] A third aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned data display methods are implemented.
[0129] A fourth aspect of an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-mentioned data display methods when executing the computer program.
[0130] A fifth aspect of an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the steps of any one of the above-mentioned data display methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0131] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0132] Figure 1 is a schematic flow chart of a data processing process of battery data in an embodiment of the present application;
[0133] Figure 2This is a flow chart of an embodiment of a data display method in an embodiment of the present application;
[0134] Figure 3 This is a schematic diagram showing fluctuation data;
[0135] Figure 4 It is a schematic diagram for displaying progressive data;
[0136] Figure 5 This is a schematic diagram showing status data;
[0137] Figure 6 Another schematic diagram showing status data;
[0138] Figure 7 This is a structural diagram of an embodiment of a data display device in an embodiment of the present application;
[0139] Figure 8 This is a schematic block diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0140] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0141] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0142] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0143] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0144] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0145] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0146] With the development of technology, new energy batteries are being used more and more widely, and battery manufacturers need to obtain more and more types of battery data. In order to facilitate users to understand the usage status of new energy batteries, various battery data can be displayed according to a preset data display method. However, existing data display methods usually use a fixed display method when displaying various types of battery data, which makes it difficult to accurately reflect the characteristics and details of various types of data, reduces the readability of the data, and is not conducive to user data analysis, resulting in a poor user experience.
[0147] In view of this, embodiments of the present application provide a data display method, device, computer-readable storage medium, and electronic device to solve the problem that existing data display methods reduce the readability of data and lead to poor user experience.
[0148] It should be noted that the execution subject of the method of the present application is an electronic device, which may specifically include but is not limited to desktop computers, notebooks, PDAs, servers and other common electronic devices in the prior art.
[0149] In the embodiment of the present application, the battery data can be received and processed, and the processed battery data can be stored in a preset database. When data display is required, the target data can be obtained from the database. Figure 1 The data processing process of the battery data in the embodiment of the present application may include the following steps:
[0150] Step S101: receiving input data.
[0151] In an embodiment of the present application, the battery data can be monitored by a battery management system (BMS) to promptly detect abnormal conditions of the battery. The electronic device can establish a communication connection with the BMS system and receive input data reported by the BMS system. For example, the electronic device can be a server, and the server can establish a communication connection with the BMS system and receive input data reported by the BMS system in real time.
[0152] Step S102: classify the input data according to a plurality of preset data types to obtain classified data.
[0153] In actual applications, the data of new energy batteries are diverse, and different data may have completely different characteristics. Therefore, in an embodiment of the present application, the input data can be classified according to multiple preset data types to obtain classified data, so that when the data is subsequently displayed, different display methods can be set for input data of different data types to improve scene adaptability.
[0154] The specific classification standards of data types can be concretized and situationally set according to actual needs. Preferably, the data types in the embodiments of the present application may include fluctuation class, progressive class, state class and text class.
[0155] Among them, the characteristic of fluctuating data is that its data will fluctuate greatly within a single time window. Common fluctuating data may include but are not limited to temperature, voltage, and current, etc.; while progressive data presents an increasing state, and usually it is necessary to pay attention to their cumulative values. Common progressive data may include but are not limited to mileage, battery cycle times, etc.; the characteristic of state data is the use of enumerations to represent the state characteristics of the battery over a period of time. Common state data may include but are not limited to battery charging and discharging status, etc.; the characteristic of text data is the use of text to convey additional battery information, which is usually input by managers or generated by preset algorithms. Common text data may include but are not limited to battery external information, battery failure cause diagnosis information, etc.
[0156] Specifically, the data type identifier in the input data can be extracted, and the input data can be classified according to the data type identifier to obtain classified data, wherein each data type identifier can correspond to a data type.
[0157] For example, if the data type of certain input data is identified as "temperature", it can be indicated that the input data is temperature data, and the data type corresponding to the temperature data is fluctuation type. Therefore, the input data can be classified as fluctuation type data.
[0158] For another example, if the data type of certain input data is identified as "battery cycle number", it can mean that the input data is battery cycle number data, and the data type corresponding to the battery cycle number data is progressive, so the input data can be classified as progressive data.
[0159] Since there may be missing, repeated or erroneous data in the input data, therefore, in a specific implementation of the embodiment of the present application, before the input data is classified, the input data can also be cleaned and converted to obtain cleaned input data; specifically, the input data can be cleaned and converted according to a preset cleaning conversion rule file, wherein the cleaning conversion rules in the cleaning conversion rule file may include but are not limited to missing value processing, duplicate value processing, field label (such as naming format) unification, measurement unit (such as current unit, voltage unit and distance unit, etc.) unification, etc. Optionally, in order to facilitate user editing, the cleaning conversion rule file can also be saved in json file format, and the cleaning conversion rule file can overwrite the system default configuration file. Afterwards, the cleaned input data can be classified according to the above method to obtain classified data.
[0160] Accordingly, invalid data in the input data can be reduced, which helps to improve the quality of the input data and the efficiency of subsequent data processing.
[0161] Step S103: storing the classified data in a preset database.
[0162] It should be noted that since the amount of input data received may be large, it is difficult to display all the input data on a single chart when displaying the data. Therefore, after the input data is classified, the classified data can also be aggregated. However, if the same data aggregation method is used for any type of input data, some input data may be distorted when displaying the data, resulting in failure to reflect the actual data status, which is not conducive to the user's data analysis of the battery data.
[0163] Therefore, in the embodiment of the present application, the classified data can be aggregated according to multiple preset time granularities to obtain aggregated data of multiple time granularities.
[0164] Among them, the time granularity can be concretized and situationally set according to actual needs. Preferably, the embodiment of the present application can set the time granularity of seconds, minutes, hours and days. Specifically, 17 time granularities can be set, including 1 second, 10 seconds, 30 seconds, 1 minute, 2 minutes, 5 minutes, 10 minutes, 15 minutes, 30 minutes, 1 hour, 2 hours, 3 hours, 4 hours, 6 hours, 8 hours, 12 hours and 1 day, to obtain a time granularity set.
[0165] Specifically, data of each data type may be aggregated according to multiple time granularities and characteristics of data of each data type to obtain aggregated data of multiple time granularities; wherein the specific method of data aggregation may be set according to the data type.
[0166] For example, fluctuation data such as voltage data is sampled at the second level. 60 voltage data can be collected within 1 minute. At the time granularity of 1 minute, data aggregation is required based on the 60 voltage data within 1 minute. Here, the average value of the 60 voltage data can be calculated and used as the aggregated voltage data at the time granularity of 1 minute; or, the maximum value of the 60 voltage data can be used as the aggregated voltage data at the time granularity of 1 minute; or, the minimum value of the 60 voltage data can be used as the aggregated voltage data at the time granularity of 1 minute.
[0167] For another example, progressive data such as battery cycle counts are sampled at the second level. 60 battery cycle counts data can be collected within 1 minute. At a time granularity of 1 minute, the data needs to be aggregated based on the 60 battery cycle counts data within 1 minute. Here, the last collected battery cycle count data among the 60 battery cycle counts data can be used as the aggregated battery cycle count data at a time granularity of 1 minute.
[0168] Afterwards, the aggregated data of multiple time granularities may be stored in the database respectively.
[0169] In a specific implementation method of an embodiment of the present application, for a certain type of data, the aggregated data of this type of data at various time granularities can be used to generate a view cache, for example, the view cache of fluctuation data (such as voltage, current, etc.) at various time granularities, the view cache of progressive data (such as mileage, battery cycle number, etc.) at various time granularities, etc., wherein each view cache can store aggregated data of the same type of data at different time granularities.
[0170] In another specific implementation of the embodiment of the present application, the aggregated data at each time granularity can also be stored in the database. Specifically, for a certain time granularity, a view cache can be generated for each aggregated data at the time granularity, for example, a view cache for each type of aggregated data at a 1 second time granularity, a view cache for each type of aggregated data at a 10 second time granularity, a view cache for each type of aggregated data at a 30 second time granularity, etc., wherein each view cache can store different types of aggregated data at the same time granularity.
[0171] In another specific implementation of the embodiment of the present application, corresponding category fields (TYPE) may be set for data of different data types to distinguish data of different data types. For example, the category field of volatility data may be VOLA, the category field of progressive data may be GRAD, the category field of state data may be STAT, and the category field of text data may be TEXT. If there are new data types in the subsequent use process, corresponding category fields may also be added.
[0172] Accordingly, when displaying data, the corresponding data can be obtained from the database, and a quick response can be achieved. Moreover, when it is necessary to switch the time granularity, the displayed data can be updated in a timely manner, and the amount of displayed data can be made fuller, which helps to improve the user experience.
[0173] The following is an explanation of a data display method in the embodiment of the present application. Figure 2 , an embodiment of a data display method in the embodiment of the present application may include:
[0174] Step S201: In response to a data display instruction, obtain target data corresponding to the data display instruction.
[0175] In the embodiment of the present application, the user can issue a data display instruction when data display is required, and the electronic device can respond to the data display instruction and obtain the target data corresponding to the data display instruction. The method of issuing the data display instruction can be specific and situational according to actual needs.
[0176] In a specific implementation of the embodiment of the present application, the user can issue a data display instruction through a preset management interface. For example, the user can issue a data display instruction to the server through the management interface of a preset application on the client. For another example, the user can issue a data display instruction through the management interface of a preset browser on the server.
[0177] In an embodiment of the present application, a data display instruction may include a target data identifier and a target time range, wherein the target data identifier can be used to indicate a data group corresponding to the target data to be displayed, and the target time range can be used to indicate a time range corresponding to the target data to be displayed; based on the target data identifier and the target time range, the target data corresponding to the data display instruction can be obtained from the database.
[0178] It should be noted that a default time range and / or a default data identifier may also be set to improve the robustness of the data acquisition process.
[0179] In a specific implementation of an embodiment of the present application, a default time range can be set. If a data display instruction only includes a target data identifier but does not include a target time range, the target data corresponding to the data display instruction can be obtained from the database according to the target data identifier and the default time range included in the data display instruction. Specifically, the default time range can be determined based on the data display instruction that includes the target time range in the historical record. For example, the data display instruction that includes the target time range and that was issued most recently in the historical record can be obtained, and the corresponding target time range in the data display instruction can be determined as the default time range. For another example, each data display instruction that includes the target time range and that was issued in the historical record can be obtained, and the number of times the target time range appears in each data display instruction can be counted, and the target time range that appears the most times can be determined as the default time range.
[0180] In another specific implementation of the embodiment of the present application, a default data identifier can be set. If the data display instruction only includes a target time range but does not include a target data identifier, the target data corresponding to the data display instruction can be obtained from the database according to the target time range and the default data identifier included in the data display instruction. Specifically, the default data identifier can be determined based on the data display instruction that includes the target data identifier in the historical record. For example, the data display instruction that includes the target data identifier and is most recently issued in the historical record can be obtained, and the corresponding target data identifier in the data display instruction can be determined as the default data identifier. For another example, each data display instruction that includes a target data identifier and is issued in the historical record can be obtained, and the number of times the target data identifier appears in each data display instruction can be counted, and the target data identifier that appears the most times can be determined as the default data identifier.
[0181] In another specific implementation of the embodiment of the present application, a default time range and a default data identifier can be set. If the data display instruction is an empty instruction, the target data corresponding to the data display instruction can be obtained from the database according to the default time range and the default data identifier. Specifically, the default time range and the default data identifier can be determined according to the data display instruction including the target time range and the target data identifier in the historical record. For example, the data display instruction including the target time range and the target data identifier issued most recently in the historical record can be obtained, and the target time range corresponding to the data display instruction can be determined as the default time range, and the target data identifier corresponding to the data display instruction can be determined as the default data identifier. For another example, each data display instruction including the target time range and the target data identifier issued in the historical record can be obtained, and the number of occurrences of the target time range and the target data identifier in each data display instruction can be counted, and the target time range with the largest number of occurrences is determined as the default time range, and the target data identifier with the largest number of occurrences is determined as the default data identifier.
[0182] In actual applications, the target data identifier and / or target time range included in the default data display instruction may be specified and contextualized according to actual needs, including but not limited to the above-mentioned implementation methods.
[0183] Specifically, the process of acquiring target data may include the following steps:
[0184] Step S2011: Query the database for a target data group corresponding to the target data identifier.
[0185] The target data group may include aggregated data of multiple time granularities.
[0186] Specifically, the data identifier may indicate the data group corresponding to the data, and each data group may include aggregated data of multiple time granularities of a certain data. For example, if the data group corresponding to the target data identifier is a voltage data group, it may indicate that the data to be displayed is voltage data, and in this case, the aggregated data of multiple time granularities under the voltage data group may be queried in the database; for another example, if the data group corresponding to the target data identifier is a battery charge and discharge status data group, it may indicate that the data to be displayed is battery charge and discharge status data, and in this case, the aggregated data of multiple time granularities under the battery charge and discharge status data group may be queried in the database.
[0187] Step S2012: Determine the target time granularity corresponding to the target time range.
[0188] In the embodiment of the present application, the target duration corresponding to the target time range can be calculated. Specifically, the target time range can be converted into a timestamp at the second level, and the target duration corresponding to the target time range can be calculated according to the obtained timestamp.
[0189] For example, the target time range is from 09:00:00 on August 5, 2023 to 09:00:00 on August 6, 2023. The second-level timestamp corresponding to 09:00:00 on August 5, 2023 is 1691197200, and the second-level timestamp corresponding to 09:00:00 on August 6, 2023 is 1691283600. Since 1691283600-1691197200=86400, it can be determined that the target duration corresponding to the target time range is 86400 seconds.
[0190] After that, the appropriate target time granularity corresponding to the target duration can be determined. The size of the target time granularity is positively correlated with the length of the target duration. If the length of the target duration is longer, the corresponding target time granularity is larger, and if the length of the target duration is shorter, the corresponding target time granularity is smaller.
[0191] In a specific implementation of the embodiment of the present application, the target time granularity corresponding to the target duration can be calculated when the target data needs to be obtained. Specifically, the initial time granularity can be determined according to the target duration and the preset benchmark display data volume, and the one closest to the initial time granularity can be selected from the preset time granularity set as the target time granularity. Since about 1000 points of data can make the curve in the chart full when drawing a chart, and can more accurately display the trend and fluctuation of the curve, 1000 data can be used as the benchmark display data volume. In the above example, the target duration is 86400 seconds. According to the target duration and the benchmark display data volume, the initial time granularity can be determined to be 86400 / 1000=86.4 seconds. The time granularity closest to 86.4 seconds in the time granularity set is 1 minute time granularity. Therefore, the 1 minute time granularity can be used as the target time granularity.
[0192] In another specific implementation method of the embodiment of the present application, a time granularity correspondence relationship can be established according to the pre-calculated time granularities corresponding to different time lengths. When it is necessary to obtain target data, the target time granularity corresponding to the target time length can be determined according to the preset time granularity correspondence relationship to improve the efficiency of data acquisition; wherein the time granularity correspondence relationship is the correspondence between various time lengths and various time granularities.
[0193] It is understandable that the correspondence between various durations and various time granularities can be determined by referring to the above calculation process, which will not be described in detail here. In the embodiment of the present application, the correspondence between the time granularities can be shown in the following table:
[0194]
[0195]
[0196] Step S2013: Acquire target data corresponding to the data display instruction from the target data group according to the target time granularity and the target time range.
[0197] In a specific implementation of an embodiment of the present application, the target aggregate data corresponding to the target time granularity can be specifically queried in the target data group. For example, the target data group is a battery charge and discharge status data group, the target time granularity is 10 seconds, and the target time range is from 10:00:00 to 11:00:00 on August 25, 2023, then the battery charge and discharge status data in the state class view cache, the battery charge and discharge status data group, the time range is from 10:00:00 to 11:00:00 on August 25, 2023, and the time granularity is 10 seconds can be queried in the database, and the battery charge and discharge status data is determined as the target data, and the target data is obtained.
[0198] In another specific implementation of the embodiment of the present application, the target time granularity corresponding to the target time range can also be determined, and the target data group corresponding to the target time granularity can be queried in the database. According to the target data identifier and the target time range, the target data corresponding to the data display instruction can be obtained from the target data group. For example, if the target time range is from 10:00:00 to 19:00:00 on January 5, 2023, then the target time granularity corresponding to the target time range can be determined to be 30 seconds, and the view cache corresponding to the 30-second time granularity can be queried in the database, and the target data identifier indicates that the data to be obtained is voltage data. According to the target data identifier and the target time range, the voltage data with a time range of 10:00:00 to 19:00:00 on January 5, 2023 can be queried in the view cache with a time granularity of 30 seconds, and the voltage data can be determined as the target data, and the target data can be obtained.
[0199] Step S202: Determine the target data type corresponding to the target data.
[0200] In an embodiment of the present application, a target data type corresponding to the target data may be determined, and data may be displayed according to the target data type of the target data.
[0201] Specifically, the target data type corresponding to the target data can be determined according to the data type identifier of the target data. In a specific implementation of the embodiment of the present application, the target data type corresponding to the target data can refer to the following table:
[0202]
[0203] For example, if the data type of the target data type is identified as "temperature", or "voltage", or "current", it can be determined that the target data type corresponding to the target data is a fluctuation type. For another example, if the data type of the target data type is identified as "mileage" or "number of battery cycles", it can be determined that the target data type corresponding to the target data is a gradual type. For another example, if the data type of the target data type is identified as "battery charge and discharge status", it can be determined that the target data type corresponding to the target data is a status type. For another example, if the data type of the target data type is identified as "battery external information" or "battery failure cause diagnosis information", it can be determined that the target data type corresponding to the target data is a text type.
[0204] In practical applications, the target data type corresponding to the target data may also be determined in a preset manner according to actual needs, including but not limited to the above-mentioned implementation manner.
[0205] Step S203: Determine a target display mode corresponding to the target data type according to a preset display mode correspondence relationship.
[0206] Among them, the corresponding relationship between display methods is the corresponding relationship between various data types and various display methods; if the target data type is a fluctuation type, then its corresponding target display method can be determined to be a fluctuation type data display method; if the target data type is a progressive type, then its corresponding target display method can be determined to be a progressive type data display method; if the target data type is a state type, then its corresponding target display method can be determined to be a state type data display method; if the target data type is a text type, then its corresponding target display method can be determined to be a text type data display method.
[0207] For the display method of fluctuating data, the data curve at the corresponding time granularity can be displayed. If there is fault data or a fault is detected, the data of the fault time period can be highlighted on the data curve. When the mouse moves to a specific time, specific numerical information such as difference, mean, maximum and minimum values can be displayed in the form of sticky notes according to business needs.
[0208] For progressive data display, the cumulative data curve at the corresponding time granularity can be displayed. If there is fault data or a fault is detected, the cumulative data of the fault time period can be highlighted on the cumulative data curve. When the mouse moves to a specific time, the battery status information, fault analysis and other specific battery information at that time can be displayed in the form of a sticky note according to business needs.
[0209] For the status data display method, a bar chart of the duration of each state at the corresponding time granularity can be displayed. When the mouse moves to the chart, the specific duration of each state within a certain time can be displayed. If there is text data that needs to be displayed within a certain time, when the corresponding time is clicked, the text data to be displayed can be displayed in the form of a sticky note.
[0210] For text data display methods, the data information may not be displayed by default, and the corresponding data information may be displayed in the form of sticky notes when the mouse interacts with the above-mentioned charts, thereby improving the user's interactive experience.
[0211] The display methods corresponding to various data types can also be specified and situationalized according to actual needs, including but not limited to the above-mentioned implementation methods.
[0212] Step S204: display the target data in a target display manner.
[0213] After the target display mode is determined, the target data can be displayed according to the target display mode.
[0214] For example, if the target display mode is a fluctuation data display mode, the data curve of the target data at the target time granularity can be displayed. If the target data is voltage data, the voltage data curve at the target time granularity can be displayed, such as Figure 3 As shown, when there is fault data or a fault is detected, the data curve of the fault time period can be highlighted, and when the mouse moves to a specific moment, the voltage information, such as the maximum voltage, minimum voltage, median voltage, etc., can be displayed in the form of a preset note.
[0215] For another example, if the target display mode is a progressive data display mode, the cumulative data curve of the target data at the target time granularity can be displayed. If the target data is mileage data, the mileage data at the target time granularity can be displayed, such as Figure 4 As shown, when fault data exists or a fault is detected, the data curve of the fault time period can be highlighted, and when the mouse moves to a specific moment, specific battery information such as mileage, battery status information and fault analysis at that time point can be displayed in the form of a preset note.
[0216] For another example, if the target display mode is the state data display mode, a bar chart of the duration of each state at the target time granularity can be displayed. If the target data is the battery charge and discharge state data, a bar chart of the battery charge and discharge state at the target time granularity can be displayed, such as Figure 5 As shown, a battery charge and discharge status bar chart at a time granularity of 1 day can be displayed. When the mouse moves over the chart, the specific duration of each status within the date corresponding to the chart can be displayed. If there is text data that needs to be displayed within a certain date, when the corresponding time period is clicked, the text data to be displayed can be displayed in the form of a sticky note; or, a battery charge and discharge status chart at the target time granularity can be displayed, such as Figure 6 As shown, a battery charge and discharge status diagram can be displayed at a time granularity of 1 day. When the mouse moves to a certain state, the specific duration of the state can be displayed. If there is text data that needs to be displayed, when the corresponding state is clicked, the text data to be displayed can be displayed in the form of a sticky note.
[0217] For another example, if the target display method is text data display method, when the mouse interacts with charts of other data types, it can be displayed in the form of sticky notes according to business needs; if other data types already have sticky note data that needs to be displayed, the text data can be displayed in the aforementioned sticky notes, specifically below the aforementioned sticky note content data, and a scroll bar can be added for the excess part; if there are multiple text data that need to be displayed at the same time, they can be displayed in the same sticky note according to the preset business requirement order, and a scroll bar can be added for the excess part to facilitate user viewing.
[0218] It should be noted that the user can also re-issue data display instructions and switch the target time range according to actual needs; and when switching the time range, the above method can be used to recalculate the corresponding optimal time granularity based on the switched target time range, so as to better present the characteristics and details of the data, help improve the readability of the target data, and improve the user experience.
[0219] In summary, the embodiment of the present application responds to the data display instruction, obtains the target data corresponding to the data display instruction; determines the target data type corresponding to the target data; determines the target display method corresponding to the target data type according to the preset display method correspondence relationship; and displays the target data according to the target display method. Through the embodiment of the present application, the target display method corresponding to the target data type can be determined according to the target data type corresponding to the target data, and the target data can be displayed according to the target display method, so that the characteristics and details of the target data can be better presented, which helps to improve the readability of the target data and improve the user experience.
[0220] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0221] Corresponding to a data display method described in the above embodiment, Figure 7 A structural diagram of an embodiment of a data display device provided in an embodiment of the present application is shown.
[0222] In an embodiment of the present application, a data display device may include:
[0223] The target data acquisition module 701 is used to respond to the data display instruction and acquire the target data corresponding to the data display instruction;
[0224] A data type determination module 702 is used to determine a target data type corresponding to the target data;
[0225] A display mode determination module 703, configured to determine a target display mode corresponding to the target data type according to a preset display mode correspondence relationship;
[0226] The target data display module 704 is used to display the target data according to the target display mode.
[0227] Through the above-mentioned device, the target display method corresponding to the target data type can be determined according to the target data type corresponding to the target data, and the target data can be displayed according to the target display method, so as to better present the characteristics and details of the target data, help improve the readability of the target data, and improve the user experience.
[0228] In a specific implementation of the embodiment of the present application, the data display instruction includes a target data identifier and a target time range;
[0229] The target data acquisition module may include:
[0230] The target data acquisition submodule is used to acquire the target data corresponding to the data display instruction from a preset database according to the target data identifier and the target time range.
[0231] Through the above device, target data can be obtained from a preset database according to the target data identifier and the target time range, which can improve the accuracy and efficiency of target data acquisition.
[0232] In a specific implementation of the embodiment of the present application, the data display instruction may include a target data identifier;
[0233] Furthermore, the target data acquisition submodule may also be configured to acquire the target data corresponding to the data display instruction from a preset database according to the target data identifier and a preset default time range.
[0234] Through the above device, a default time range can be set, so that when the data display instruction only includes the target data identifier, the target data can be obtained from the preset database according to the target data identifier and the default time range, which effectively improves the robustness of the data acquisition process.
[0235] In a specific implementation of the second aspect, the data display instruction may include a target time range;
[0236] Furthermore, the target data acquisition submodule may also be configured to acquire the target data corresponding to the data display instruction from a preset database according to the target time range and a preset default data identifier.
[0237] Through the above device, a default data identifier can be set, so that when the data display instruction only includes the target time range, the target data can be obtained from the preset database according to the target time range and the default data identifier, which effectively improves the robustness of the data acquisition process.
[0238] In a specific implementation of the second aspect, the data display instruction may be an empty instruction;
[0239] Furthermore, the target data acquisition submodule may also be configured to acquire the target data corresponding to the data display instruction from a preset database according to a preset default time range and a preset default data identifier.
[0240] Through the above device, a default time range and a default data identifier can be set, so that when the data display instruction is an empty instruction, the target data can be obtained from the preset database according to the default time range and the default data identifier, which effectively improves the robustness of the data acquisition process.
[0241] In a specific implementation of the second aspect, the target data acquisition submodule may include:
[0242] A target time granularity determination unit, configured to determine a target time granularity corresponding to the target time range;
[0243] a target data group determination unit, configured to query the database for a target data group corresponding to the target time granularity;
[0244] A target data acquisition unit is used to acquire the target data corresponding to the data display instruction from the target data group according to the target data identifier and the target time range.
[0245] Through the above-mentioned device, the target time granularity corresponding to the target time range can be determined, and the target data grouping corresponding to the target time granularity can be queried in a preset database. According to the target data identifier and the target time range, the target data can be obtained from the target data grouping, thereby improving the efficiency of data acquisition.
[0246] Further, the target data group determination unit may also be used to query the database for a target data group corresponding to the target data identifier; wherein the target data group includes aggregated data of multiple time granularities;
[0247] The target time granularity determination unit may also be used to determine the target time granularity corresponding to the target time range;
[0248] The target data acquisition unit may also be configured to acquire the target data corresponding to the data display instruction from the target data group according to the target time granularity and the target time range.
[0249] Through the above-mentioned device, the target time granularity corresponding to the target time range can be further determined, and the target data can be obtained according to the target time granularity and the target time range. Based on this, a more appropriate target time granularity can be determined, which can reduce the problem of data distortion and help improve the readability of the target data.
[0250] In a specific implementation of the embodiment of the present application, the target time granularity determination unit may include:
[0251] A target duration calculation subunit, used to calculate a target duration corresponding to the target time range;
[0252] The time granularity determination subunit is used to determine the target time granularity corresponding to the target duration; wherein the size of the target time granularity is positively correlated with the length of the target duration.
[0253] Through the above device, the size of the target time granularity can be positively correlated with the length of the target duration, so that more comprehensive data can be displayed under different target durations, which helps to improve the user experience.
[0254] In a specific implementation method of an embodiment of the present application, the time granularity determination subunit can also be used to determine the target time granularity corresponding to the target duration according to a preset time granularity correspondence relationship; wherein the time granularity correspondence relationship is a correspondence relationship between various durations and various time granularities.
[0255] Through the above device, the target time granularity corresponding to the target duration can be determined according to the preset time granularity correspondence relationship, so that the target time granularity can be determined more efficiently.
[0256] In a specific implementation of the embodiment of the present application, the time granularity determination subunit may include:
[0257] An initial time granularity determination subunit, used to determine the initial time granularity according to the target duration and a preset benchmark display data volume;
[0258] The target time granularity determination subunit is used to select one of the preset time granularities that is closest to the initial time granularity as the target time granularity.
[0259] Through the above device, the initial time granularity can be determined according to the target duration and the benchmark display data volume, and the one in the time granularity set that is closest to the initial time granularity can be selected as the target time granularity, so that a more appropriate time granularity can be determined, the data display effect can be improved, and the user experience can be improved.
[0260] In a specific implementation of the embodiment of the present application, the target data acquisition unit may include:
[0261] An aggregate data query subunit, configured to query target aggregate data corresponding to the target time granularity in the target data group;
[0262] The target data determination subunit is used to determine the data in the target aggregate data that is within the target time range as the target data, and obtain the target data.
[0263] Through the above device, target aggregate data corresponding to the target time granularity can be queried in the target data, and data in the target aggregate data within the target time range can be determined as target data, thereby improving the efficiency and accuracy of the target data acquisition process.
[0264] In a specific implementation of the embodiment of the present application, the data display device may further include:
[0265] A data receiving module, used for receiving input data;
[0266] A data classification module, used to classify the input data according to a plurality of preset data types to obtain classified data;
[0267] The data storage module is used to store the classified data in a preset database.
[0268] Through the above device, the input data can be classified according to the data type, which is conducive to determining the corresponding display method according to the data type in the subsequent process, and can improve the scene adaptability.
[0269] In a specific implementation of the embodiment of the present application, the data receiving module may include:
[0270] An identifier extraction submodule, used to extract a data type identifier from the input data; wherein each data type identifier corresponds to a data type;
[0271] The data classification submodule is used to classify the input data according to the data type identifier to obtain the classified data.
[0272] Through the above-mentioned device, the input data can be classified according to the data type identifier, which is conducive to determining the corresponding display method according to the data type in the subsequent process, and can improve the scene adaptability.
[0273] In a specific implementation of the embodiment of the present application, the data storage module may include:
[0274] A data aggregation submodule, used to aggregate the classified data according to a plurality of preset time granularities to obtain aggregated data of a plurality of time granularities;
[0275] The data storage submodule is used to store the aggregated data of multiple time granularities in the database respectively.
[0276] Through the above-mentioned device, the classified data can be aggregated according to multiple time granularities to obtain aggregated data of multiple time granularities, and the aggregated data of multiple time granularities can be stored in the database respectively. Accordingly, it is possible to respond quickly when displaying data, and when it is necessary to switch the time granularity, the displayed data can also be updated in time to improve the user experience.
[0277] In a specific implementation of the embodiment of the present application, the data display device may further include:
[0278] A cleaning and conversion module, used for performing cleaning and conversion on the input data to obtain the cleaned input data;
[0279] The data classification module can also be used to classify the cleaned input data according to a plurality of preset data types to obtain the classified data.
[0280] Through the above device, the input data can be cleaned and converted, thereby reducing invalid data in the input data and improving the quality of the input data and the efficiency of subsequent data processing.
[0281] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0282] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0283] Figure 8 A schematic block diagram of an electronic device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0284] like Figure 8 As shown, the electronic device 8 of this embodiment includes: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80. When the processor 80 executes the computer program 82, the steps in the above-mentioned data display method embodiments are implemented, for example Figure 2 Alternatively, when the processor 80 executes the computer program 82, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 7 The functions of modules 701 to 704 are shown.
[0285] Exemplarily, the computer program 82 may be divided into one or more modules / units, which are stored in the memory 81 and executed by the processor 80 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 82 in the electronic device 8.
[0286] The electronic device 8 may be a computing device such as a desktop computer, a notebook, a palm computer, etc. Those skilled in the art will appreciate that Figure 8 It is only an example of the electronic device 8 and does not constitute a limitation of the electronic device 8. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 8 may also include input and output devices, network access devices, buses, etc.
[0287] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0288] The memory 81 may be an internal storage unit of the electronic device 8, such as a hard disk or memory of the electronic device 8. The memory 81 may also be an external storage device of the electronic device 8, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 8. Further, the memory 81 may also include both an internal storage unit of the electronic device 8 and an external storage device. The memory 81 is used to store the computer program and other programs and data required by the electronic device 8. The memory 81 may also be used to temporarily store data that has been output or is to be output.
[0289] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0290] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0291] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0292] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0293] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0294] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0295] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0296] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A data display method, characterized in that: include: In response to a data display instruction, acquiring target data corresponding to the data display instruction; Determine a target data type corresponding to the target data; Determining a target display mode corresponding to the target data type according to a preset display mode correspondence relationship; The target data is displayed according to the target display method.
2. The data display method according to claim 1, characterized in that: The data display instruction includes a target data identifier and a target time range; The acquiring target data corresponding to the data display instruction includes: The target data corresponding to the data display instruction is acquired from a preset database according to the target data identifier and the target time range.
3. The data display method according to claim 1, characterized in that: The data display instruction includes a target data identifier; The acquiring target data corresponding to the data display instruction includes: According to the target data identifier and a preset default time range, the target data corresponding to the data display instruction is acquired from a preset database.
4. The data display method according to claim 1, characterized in that: The data display instructions include a target time range; The acquiring target data corresponding to the data display instruction includes: According to the target time range and a preset default data identifier, the target data corresponding to the data display instruction is acquired from a preset database.
5. The data display method according to claim 1, characterized in that: The data display instruction is an empty instruction; The acquiring target data corresponding to the data display instruction includes: According to a preset default time range and a preset default data identifier, the target data corresponding to the data display instruction is acquired from a preset database.
6. The data display method according to claim 2, characterized in that: The acquiring, according to the target data identifier and the target time range, the target data corresponding to the data display instruction from a preset database includes: Determining a target time granularity corresponding to the target time range; Querying the database for a target data group corresponding to the target time granularity; The target data corresponding to the data display instruction is acquired from the target data group according to the target data identifier and the target time range.
7. The data display method according to claim 2, characterized in that: The acquiring, according to the target data identifier and the target time range, the target data corresponding to the data display instruction from a preset database includes: Querying the database for a target data group corresponding to the target data identifier; wherein the target data group includes aggregated data of multiple time granularities; Determining a target time granularity corresponding to the target time range; The target data corresponding to the data display instruction is acquired from the target data group according to the target time granularity and the target time range.
8. The data display method according to claim 7, characterized in that: The determining of the target time granularity corresponding to the target time range includes: Calculating a target duration corresponding to the target time range; Determine the target time granularity corresponding to the target duration; wherein the size of the target time granularity is positively correlated with the length of the target duration.
9. The data display method according to claim 8, characterized in that: The determining the target time granularity corresponding to the target duration includes: The target time granularity corresponding to the target duration is determined according to a preset time granularity correspondence relationship; wherein the time granularity correspondence relationship is a correspondence relationship between various durations and various time granularities.
10. The data display method according to claim 8, characterized in that: The determining the target time granularity corresponding to the target duration includes: Determining the initial time granularity according to the target duration and a preset benchmark display data volume; The one closest to the initial time granularity is selected from the preset time granularity set as the target time granularity.
11. The data display method according to any one of claims 7 to 10, characterized in that: The acquiring, from the target data group according to the target time granularity and the target time range, the target data corresponding to the data display instruction comprises: Querying the target aggregate data corresponding to the target time granularity in the target data group; The data in the target time range among the target aggregated data are determined as the target data, and the target data is acquired.
12. The data display method according to any one of claims 1 to 11, characterized in that: Before obtaining the target data corresponding to the data display instruction in response to the data display instruction, the method further includes: Receive input data; Classify the input data according to a plurality of preset data types to obtain classified data; The classified data is stored in a preset database.
13. The data display method according to claim 12, characterized in that: The step of classifying the input data according to various preset data types to obtain classified data includes: Extracting a data type identifier from the input data; wherein each data type identifier corresponds to a data type; The input data is classified according to the data type identifier to obtain the classified data.
14. The data display method according to any one of claims 12 to 13, characterized in that: The storing of the classified data in a preset database comprises: Aggregating the classified data according to a plurality of preset time granularities to obtain aggregated data at a plurality of time granularities; Aggregate data of multiple time granularities are stored in the database respectively.
15. The data display method according to any one of claims 12 to 14, characterized in that: Before classifying the input data according to the preset multiple data types to obtain the classified data, the method further includes: Cleaning and converting the input data to obtain cleaned input data; The step of classifying the input data according to the preset multiple data types to obtain the classified data includes: The cleaned input data is classified according to a plurality of preset data types to obtain the classified data.
16. A data display device, characterized in that: include: a target data acquisition module, configured to acquire target data corresponding to the data display instruction in response to the data display instruction; A data type determination module, used to determine a target data type corresponding to the target data; A display mode determination module, used to determine a target display mode corresponding to the target data type according to a preset display mode correspondence relationship; The target data display module is used to display the target data according to the target display mode.
17. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the data presentation method according to any one of claims 1 to 15 are implemented.
18. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the data presentation method according to any one of claims 1 to 15 are implemented.