Traffic data visualization method and device, electronic equipment and storage medium
By classifying and visualizing traffic data, diverse data display modules are generated, solving the problem of monotonous traffic data display methods and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VISIONVERA INFORMATION TECH CO LTD
- Filing Date
- 2022-08-16
- Publication Date
- 2026-06-26
AI Technical Summary
Existing technologies present traffic data in a single way, which cannot meet the diverse needs of users and is difficult to modify.
Traffic data is acquired by responding to data analysis commands, categorized, and visualized according to preset rules to generate different categories of data display modules, including the display of geographic location, season, weather, user reviews, enterprise credit rating, tag categories, and user activity data.
It enables diversified display of traffic data, improves user experience, meets users' personalized needs, and enhances the matching degree between the visualization of traffic data and user needs.
Smart Images

Figure CN115357617B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method for visualizing traffic data, a device for visualizing traffic data, an electronic device, and a computer-readable storage medium. Background Technology
[0002] Website traffic statistics and analysis refers to the tools used to collect and analyze website traffic data, understand website traffic trends, and analyze visitor behavior habits. Through this data analysis, one can intuitively understand the size and geographical distribution of the website's user base, the level of interest in website content, and the website's source information. However, the display methods for website traffic data are often monotonous, based on user-defined rules. Once set up, adjustments are difficult to make, resulting in an overly simplistic data display that fails to meet user needs. Summary of the Invention
[0003] The present invention provides a method, apparatus, electronic device, and computer-readable storage medium for visualizing traffic data, in order to solve the problem that the existing methods for displaying traffic data are limited and cannot meet user needs.
[0004] This invention discloses a method for visualizing traffic data, including:
[0005] In response to a data analysis command for a target webpage, the system acquires the traffic data of the target webpage and the corresponding traffic data analysis interface.
[0006] The traffic data is classified to obtain classification data for several different data categories corresponding to the traffic data;
[0007] The data of each category is visualized according to preset rules to obtain a data display module corresponding to the visualization process, and the data display module is displayed in the traffic data analysis interface.
[0008] Optionally, the categorized data includes non-business data, the preset rules include a preset mapping rule table and preset visualization display rules, and the step of visualizing the traffic data according to the preset rules to obtain a data display module corresponding to the visualization processing includes:
[0009] According to the preset mapping rule table, obtain the geographic location data, seasonal data, and weather data from the non-business data;
[0010] The spatial color values corresponding to the geographic location data, the seasonal data, and the weather data are determined using the preset visualization display rules, and a data display module corresponding to the spatial color values is generated using a visualization display tool.
[0011] The preset mapping rule table is a key-value pair container used to extract attribute data corresponding to the categorized data, and the preset visualization display rule is a rule set by the user that different categorized data correspond to different display styles.
[0012] Optionally, the categorized data includes business-related data, and the step of visualizing the traffic data according to preset rules to obtain a data display module corresponding to the visualization process includes:
[0013] According to the preset mapping rule table, obtain user evaluation analysis data and / or enterprise credit rating data from the business data;
[0014] The module display size of the user evaluation analysis data and / or the enterprise credit rating data is determined by using preset visualization display rules, and a data display module corresponding to the module display size is generated by using visualization display tools.
[0015] Optionally, the categorized data includes tag-based data, and the step of visualizing the traffic data according to preset rules for each categorized data to obtain a data display module corresponding to the visualization process includes:
[0016] At least one tag icon is determined from the tag class data according to the preset mapping rule table;
[0017] The icon display style of the label icon is determined by using preset visualization display rules, and a data display module corresponding to the icon display style is generated by using visualization display tools.
[0018] Optionally, the categorized data includes user activity data, and the step of visualizing the traffic data according to preset rules for each of the categorized data to obtain a data display module corresponding to the visualization process includes:
[0019] According to the preset mapping rules, obtain the user preference information in the user activity data, and determine the high-frequency access points of the user corresponding to the user preference information;
[0020] The preferred display style of the user's high-frequency access points is determined by using preset visualization display rules, and a data display module corresponding to the preferred display style is generated by using visualization display tools.
[0021] Optionally, the traffic data includes user-specified data, and obtaining the traffic data of the target webpage includes:
[0022] The number of user clicks on the target webpage is obtained, and the data where the number of user clicks exceeds a preset number of clicks is used as the traffic data of the target webpage;
[0023] And / or, use the user-specified data as traffic data for the target webpage.
[0024] Optionally, classifying the traffic data to obtain classification data of several different data categories corresponding to the traffic data includes:
[0025] Perform data cleaning operations on the traffic data to obtain target data corresponding to the data cleaning operations;
[0026] Obtain the classification strategy for the target data;
[0027] The target data is classified using the aforementioned classification strategy and data classification tool to obtain classified data of several different data categories. The classified data is used for visualization.
[0028] This invention also discloses a device for visualizing traffic data, comprising:
[0029] The traffic data acquisition module is used to respond to a data analysis command for a target webpage, acquire the traffic data of the target webpage and the traffic data analysis interface corresponding to the traffic data;
[0030] The data classification module is used to classify the traffic data and obtain classification data of several different data categories corresponding to the traffic data;
[0031] The visualization module is used to perform visualization processing on the traffic data according to preset rules for each of the category data, obtain a data display module corresponding to the visualization processing, and display the data display module in the traffic data analysis interface.
[0032] Optionally, the categorized data includes non-business data, the preset rules include a preset mapping rule table and preset visualization display rules, and the visualization display module is specifically used for:
[0033] According to the preset mapping rule table, obtain the geographic location data, seasonal data, and weather data from the non-business data;
[0034] The spatial color values corresponding to the geographic location data, the seasonal data, and the weather data are determined using the preset visualization display rules, and a data display module corresponding to the spatial color values is generated using a visualization display tool.
[0035] The preset mapping rule table is a key-value pair container used to extract attribute data corresponding to the categorized data, and the preset visualization display rule is a rule set by the user that different categorized data correspond to different display styles.
[0036] Optionally, the categorized data includes business-related data, and the visualization module is specifically used for:
[0037] According to the preset mapping rule table, obtain user evaluation analysis data and / or enterprise credit rating data from the business data;
[0038] The module display size of the user evaluation analysis data and / or the enterprise credit rating data is determined by using preset visualization display rules, and a data display module corresponding to the module display size is generated by using visualization display tools.
[0039] Optionally, the classification data includes label-based data, and the visualization module is specifically used for:
[0040] At least one tag icon is determined from the tag class data according to a preset mapping rule table;
[0041] The icon display style of the label icon is determined by using preset visualization display rules, and a data display module corresponding to the icon display style is generated by using visualization display tools.
[0042] Optionally, the classification data includes user activity data, and the visualization module is specifically used for:
[0043] According to the preset mapping rules, obtain the user preference information in the user activity data, and determine the user high-frequency access points corresponding to the user preference information;
[0044] The preferred display style of the user's high-frequency access points is determined by using preset visualization display rules, and a data display module corresponding to the preferred display style is generated by using visualization display tools.
[0045] Optionally, the traffic data includes user-specified data, and the traffic data acquisition module is specifically used for:
[0046] The number of user clicks on the target webpage is obtained, and the data where the number of user clicks exceeds a preset number of clicks is used as the traffic data of the target webpage;
[0047] And / or, use the user-specified data as traffic data for the target webpage.
[0048] Optionally, the data classification module is specifically used for:
[0049] Perform data cleaning operations on the traffic data to obtain target data corresponding to the data cleaning operations;
[0050] Obtain the classification strategy for the target data;
[0051] The target data is classified using the aforementioned classification strategy and data classification tool to obtain classified data of several different data categories. The classified data is used for visualization.
[0052] This invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0053] The memory is used to store computer programs;
[0054] When the processor executes a program stored in the memory, it implements the method described in the embodiments of the present invention.
[0055] This invention also discloses a computer-readable storage medium storing instructions that, when executed by one or more processors, cause the processors to perform the methods described in this invention.
[0056] The embodiments of the present invention have the following advantages:
[0057] In this embodiment of the invention, in response to a data analysis command for a target webpage, traffic data of the target webpage and a corresponding traffic data analysis interface can be obtained. The traffic data is then categorized to obtain several different data categories. Next, each category of data is visualized according to preset rules to obtain a data display module corresponding to the visualization process. This data display module is then displayed in the traffic data analysis interface. This allows for the visualization of the categorized data within the traffic data, providing a clear and intuitive view of the results of statistical analysis of large amounts of traffic data. Furthermore, by categorizing the traffic data according to different data types, appropriate visualization methods can be applied to different types of traffic data, increasing the display style of the traffic data and making the visualization more aligned with user needs, thereby improving the user experience. Attached Figure Description
[0058] Figure 1This is a flowchart illustrating the steps of a traffic data visualization method provided in an embodiment of the present invention;
[0059] Figure 2 This is a schematic diagram of the traffic data analysis interface provided in an embodiment of the present invention;
[0060] Figure 3 This is a flowchart illustrating the steps for visually displaying traffic data provided in this embodiment of the invention;
[0061] Figure 4 This is a structural block diagram of a traffic data visualization device provided in an embodiment of the present invention;
[0062] Figure 5 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0063] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0064] Reference Figure 1 The diagram illustrates a flowchart of a traffic data visualization method provided in an embodiment of the present invention, which may specifically include the following steps:
[0065] Step 101: In response to a data analysis command for a target webpage, obtain the traffic data of the target webpage and the traffic data analysis interface corresponding to the traffic data;
[0066] As an example, servers used to collect traffic data are typically servers that support the WebSocket protocol, such as Tomcat 7 and Jetty 7. A significant feature of WebSocket is that the server can proactively push information to the client based on the WebSocket protocol, and the client can also proactively send information to the server. Therefore, users can log in to the traffic data analysis interface to browse various visualized traffic data through a specified URL (uniform resource locator) and account password.
[0067] In this embodiment of the invention, the target webpage can be any webpage that a user browses and that requires visualization. Traffic data can describe the number of users accessing the target webpage (including unique users and total users), the number of target webpages browsed by the user, the average dwell time of the user on the target webpage, etc. The data analysis command can be a command requesting the visualization of the traffic data of the target webpage. The traffic data analysis interface can be an interface used to display the traffic data after visualization processing. (Refer to...) Figure 2 This diagram illustrates a traffic data analysis interface provided in an embodiment of the present invention. Different traffic data in the interface correspond to different data display modules. For example, the interface includes four data display modules: data display module ① can display the total number of users; data display module ② can display user activity charts, such as line charts, bar charts, and curve charts; data display module ③ can display tag icons; and data display module ④ can display the distribution of platform user types. This component can include multiple interfaces with multi-level relationships. For example, data display module ④ includes interface a and interface b. Interface a can display the distribution data of new and old users entering the target page using different terminal systems. When a user selects the distribution data of new users entering the target page using different terminal systems in interface a, they can enter the next level interface b, which displays the distribution data of new users entering the target webpage using different browsers, etc. The present invention does not limit the display content and position of the data display modules in the traffic data analysis interface; those skilled in the art can adjust them according to actual needs.
[0068] Optionally, the server can obtain the number of clicks by each user on the target webpage, and when the number of clicks exceeds the preset number of clicks, determine the data corresponding to the click operation as traffic data that needs to be visualized, or determine the user-specified data as traffic data that needs to be visualized, and perform data cleaning on the traffic data to obtain the target data corresponding to the traffic data.
[0069] Specifically, the preset number of clicks can be a threshold for the number of clicks pre-set by relevant technical personnel. For example, the preset number of clicks can be 20, 30, or 50. The user-specified data can be specific data that the user specifies to be visualized, such as order volume data, log data, etc. After determining the traffic data that needs to be visualized, the traffic data needs to be cleaned to find and correct identifiable errors in the traffic data. Data cleaning can include checking data consistency, handling invalid and missing values, etc.
[0070] Step 102: Classify the traffic data to obtain classification data for several different data categories corresponding to the traffic data;
[0071] In this embodiment of the invention, traffic data is classified to obtain several different data categories, enabling visualization of different categories according to different classification dimensions, increasing the diversity of visualization and meeting different user needs.
[0072] Optionally, the target data can be data obtained after cleaning traffic data, and the classification strategy can be strategy information used to divide the target data into different data categories. The data categories can include business categories, non-business categories, tag categories, and user categories, etc. Specifically, the classification strategy can be used to divide the cleaned target data into non-business data, business data, tag data, and user activity data.
[0073] In practical implementation, after obtaining the classification strategy for the target data, a data classification tool can be used to perform data classification operations on the target data and obtain data classification data of several different data categories. For example, the StreamSets data operation platform can be used to perform classification operations on the target data based on the classification strategy.
[0074] Step 103: Perform visualization processing on the traffic data for each of the aforementioned categories according to preset rules, obtain a data display module corresponding to the visualization processing, and display the data display module in the traffic data analysis interface.
[0075] In this embodiment of the invention, each category of data can be visualized according to preset rules, and then a data display module corresponding to the visualization process can be obtained and displayed in the traffic data analysis interface.
[0076] Optionally, the preset rules include a preset mapping rule table and preset visualization display rules. The preset mapping rule table can be a key-value pair container for extracting attribute data corresponding to categorized data. The key-value pair container can be a container for storing multiple key-value pairs. Specifically, attribute data corresponding to traffic data, such as seasonal attributes, weather attributes, location attributes, etc., can be analyzed and extracted. Multiple key-value pairs can be defined using attribute data, and each key-value pair can describe the storage element or storage characteristic of a single traffic data. In this invention, key-value pairs can be preset based on the attribute data of traffic data, and multiple key-value pairs can be placed in the same container to generate a corresponding mapping rule table. The attribute values of traffic data can be quickly extracted through the preset rule mapping table, and the visualization interface can be displayed based on the attribute values, improving the efficiency of visualization display. Among them, the mapping rule consists of conditions and operations. Conditions can be used to test one or more attributes of an object through expressions using built-in functions or by directly inserting Groovy code. Operations use built-in operations or by directly inserting Groovy code to define the operations that must be performed when the conditions are met. For example, the preset mapping rule table can be used to determine the current seasonal attribute corresponding to the user's geographical location. Preset visualization display rules are rules that correspond to different display styles for different categories of data set by users. For example, using preset visualization display rules, the display style of the data display module can be determined to be a warm color display style based on the current summer and sunny weather attributes, or a corresponding bar chart can be displayed based on the user's webpage access data. Preset visualization display rules can enrich the display style of traffic data and meet the optimization needs of relevant technical personnel to make adaptive adjustments to the display style during the application process, thereby improving the flexibility of visualization display.
[0077] In one example of the present invention, if the classified data is non-business data, the geographic location data, seasonal data and weather data in the non-business data can be obtained according to the preset mapping rule table. Then, the spatial color values corresponding to the geographic location data, seasonal data and weather data are determined by the preset visualization display rules. The data display module corresponding to the spatial color values is quickly generated by the visualization display tool to realize the data visualization display adapted to the non-business data.
[0078] Optionally, the visualization tool can be a container tool loaded with traffic data, which includes at least a category display container tool, a pie chart tool, a bar chart tool, a line chart tool, a point cloud tool, a user tracking display container tool, a timeline tool, and a data statistics tool. This invention does not limit this. By employing visualization tools, various display styles of data display modules corresponding to non-business data can be generated to enrich the display methods of traffic data and improve the matching degree between visualization methods and user needs. Non-business data can be data that does not depend on user operations and exists in the objective world, such as the user's geographical location, the current season, and the current weather conditions. It includes at least geographical location data, seasonal data, and weather data. For example, geographical location data can be locations such as "Guangzhou," "Beijing," and "Shanghai," seasonal data can be spring, summer, autumn, and winter, and weather data can be sunny, rainy, thunderstorm, cloudy, etc. Space color values can be user-defined to display data display modules in different colors. Different space color values correspond to different display styles. For example, if a user pre-sets three space color values: Warm Color 1, Warm Color 2, and Warm Color 3, the display style of the data display module corresponding to Warm Color 1 is an overall bright yellow tone with a bright yellow sun and a background of green plants. The display style of the data display module corresponding to Warm Color 2 is an overall dark yellow tone with a dark yellow sun and a background of green plants. The display style of the data display module corresponding to Warm Color 3 is an overall cool tone with a background of flowers.
[0079] As an example, suppose the user's geographical location is obtained from non-business data according to the preset mapping rule table as "Guangzhou". The current season of "Guangzhou" is summer and the weather data is sunny. Then, "Guangzhou", "summer" and "sunny" are matched with the preset visualization display rules to determine the space color value as warm color 1. The content displayed by the data display module is an overall color tone of bright yellow, with a bright yellow sun and a background of green plants.
[0080] In another example of the present invention, if the categorized data is business data, user evaluation analysis data and / or enterprise credit rating data in the business data can be obtained according to a preset mapping rule table. Then, the module display size of the user evaluation analysis data and / or enterprise credit rating data is determined by a preset visualization display rule, and a data display module corresponding to the module display size is generated by a visualization display tool.
[0081] Optionally, business-related data can be data dependent on user actions on the target webpage, including at least user review analysis data and enterprise credit rating data. User review analysis data can include user behavior data, user consumption data, user transaction data, and potential user behavior data, while enterprise credit rating data can include data such as high, average, and low enterprise credit ratings. The module display size can be the size corresponding to the data display module. Based on different user review analysis data and enterprise credit rating data, the corresponding data display module can be enlarged or reduced proportionally. This allows users to highlight user review analysis data or enterprise credit rating data by enlarging the data display module, enabling them to intuitively and quickly obtain the relevant content. Conversely, reducing the display area of the data display module within the limited traffic data analysis interface can decrease the user's time and space.
[0082] As an example, assuming that according to the preset mapping rule table, if the user review data obtained has a rating of 5 stars and a long review length, the overall display size of the data display module will be enlarged. If the user review data obtained has a rating of 1 star and a short review length or no review, the overall display size of the data display module will be reduced. If a company has a high credit rating, the overall display size of the data display module will be enlarged and the background color will be set to a gradient. If a company has a low credit rating, the overall display size of the data display module will be reduced and the background color will be a normal color.
[0083] In another example of the present invention, if the classification data is label data, at least one label icon can be determined from the label data according to a preset mapping rule table, and then the icon display style of the label icon can be determined by a preset visualization display rule, and a data display module corresponding to the icon display style can be generated by a visualization display tool.
[0084] Optionally, tag-type data can be various icon data used on the target webpage to provide users with intuitive data display. For example, user behavior data such as paid, added to cart, unpaid, message read, and message unread can be distinguished by icon display styles with different background colors or appearances. For instance, a shopping cart icon can be used to indicate that a user has added a product to their cart, a sales activity page icon can be used to indicate that a user's followed activity has started, a form submission page icon can be used to indicate that a user has submitted a product but has not yet paid, and an account level icon can be used to indicate the user's current membership level. By displaying the corresponding icons in the data display module using visualization tools, the visualization of traffic data becomes more intuitive and vivid.
[0085] As an example, if a mapping rule table can be used to determine that the user behavior data is that product A has been added to the shopping cart, and the user account level is intermediate member, then a preset visualization display rule can be used to determine the icon display style corresponding to the user behavior data as a shopping cart icon and a user account level icon. The shopping cart icon can be used to vividly and clearly show the user behavior of adding product A to the shopping cart, and the account level icon can be used to vividly and clearly show the intermediate member status.
[0086] In another example of the present invention, if the classification data is user activity data, user preference information in the user activity data can be obtained according to a preset mapping rule, the high-frequency access points of users corresponding to the user preference information can be determined, and then the preference display style of the high-frequency access points of users can be determined by a preset visualization display rule, and a data display module corresponding to the preference display style can be generated by a visualization display tool.
[0087] Optionally, user activity data can be data on users' frequent operations or interests on the target page, including at least user preference information. For example, user preference information could be data on users repeatedly visiting the target webpage or spending a long time on the target webpage. High-frequency access points can be parts of the traffic data analysis interface where users spend a long time and browse frequently. For example, if users spend the longest time and browse the most in the "User Access Trend Curve" module of the traffic data analysis interface, then the "User Access Trend Curve" module is a high-frequency access point. The preference display style can be a display style determined based on user basic information, user preference information, and high-frequency access points. For example, the preference display style can be adaptively displayed based on user basic information such as user gender and user geographical location, and user preferences and frequently accessed content can be displayed in prominent areas such as the top of the traffic data analysis interface. This allows for different preference display styles to be used for different users, achieving personalized traffic data visualization and improving user experience.
[0088] It should be noted that the embodiments of the present invention include, but are not limited to, the examples described above. It is understood that, under the guidance of the ideas in the embodiments of the present invention, those skilled in the art can make settings according to actual circumstances, and the present invention does not limit such settings.
[0089] In this embodiment of the invention, in response to a data analysis command for a target webpage, traffic data of the target webpage and a corresponding traffic data analysis interface can be obtained. The traffic data is then categorized to obtain several different data categories. Next, each category of data is visualized according to preset rules to obtain a data display module corresponding to the visualization process. This data display module is then displayed in the traffic data analysis interface. This allows for the visualization of the categorized data within the traffic data through the traffic data analysis interface, providing a clear and intuitive view of the results of statistical analysis of large amounts of traffic data. Furthermore, by employing a classification strategy to categorize data according to different data categories, appropriate visualization methods can be applied to different types of traffic data, increasing the display style of the traffic data and making the visualization more aligned with user needs, thereby improving the user experience.
[0090] To enable those skilled in the art to better understand the technical solutions of the embodiments of the present invention, an example is provided below for illustration:
[0091] Reference Figure 3 The flowchart illustrates the steps for visually displaying traffic data provided in this embodiment of the invention, which are specifically implemented through the following steps:
[0092] S1, obtain the number of unique visitors, the number of repeat visitors, the user dwell time, the website from which the user came, the search engine used by the user, and the user traffic at different times for a certain interface of the target webpage.
[0093] S2, log in to the designated traffic data analysis interface to categorize and display the collected information;
[0094] S3 allows different users to access the traffic data analysis interface and view all data carried by the interfaces within their permissions. It also allows for different visualizations of traffic data based on changes.
[0095] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0096] Reference Figure 4 The diagram shows a structural block diagram of a traffic data visualization device provided in an embodiment of the present invention, which may specifically include the following modules:
[0097] Traffic data acquisition module 401 is used to acquire traffic data of the target webpage and a traffic data analysis interface corresponding to the traffic data in response to a data analysis command for the target webpage.
[0098] The data classification module 402 is used to classify the traffic data to obtain classification data of several different data categories corresponding to the traffic data;
[0099] The visualization module 403 is used to perform visualization processing on the traffic data according to preset rules for each of the category data, obtain a data display module corresponding to the visualization processing, and display the data display module in the traffic data analysis interface.
[0100] In one optional embodiment, the categorized data includes non-business data, the preset rules include a preset mapping rule table and preset visualization display rules, and the visualization display module 403 is specifically used for:
[0101] According to the preset mapping rule table, obtain the geographic location data, seasonal data, and weather data from the non-business data;
[0102] The spatial color values corresponding to the geographic location data, the seasonal data, and the weather data are determined using the preset visualization display rules, and a data display module corresponding to the spatial color values is generated using a visualization display tool.
[0103] The preset mapping rule table is a key-value pair container used to extract attribute data corresponding to the categorized data, and the preset visualization display rule is a rule set by the user that different categorized data correspond to different display styles.
[0104] In one optional embodiment, the categorized data includes business-related data, and the visualization module 403 is specifically used for:
[0105] According to the preset mapping rule table, obtain user evaluation analysis data and / or enterprise credit rating data from the business data;
[0106] The module display size of the user evaluation analysis data and / or the enterprise credit rating data is determined by using preset visualization display rules, and a data display module corresponding to the module display size is generated by using visualization display tools.
[0107] In one optional embodiment, the classification data includes label-based data, and the visualization module 403 is specifically used for:
[0108] At least one tag icon is determined from the tag class data according to the preset mapping rule table;
[0109] The icon display style of the label icon is determined by using preset visualization display rules, and a data display module corresponding to the icon display style is generated by using visualization display tools.
[0110] In one optional embodiment, the classification data includes user activity data, and the visualization module 403 is specifically used for:
[0111] According to the preset mapping rules, obtain the user preference information in the user activity data, and determine the high-frequency access points of the user corresponding to the user preference information;
[0112] The preferred display style of the user's high-frequency access points is determined by using preset visualization display rules, and a data display module corresponding to the preferred display style is generated by using visualization display tools.
[0113] In one optional embodiment, the traffic data includes user-specified data, and the traffic data acquisition module 401 is specifically used for:
[0114] The number of user clicks on the target webpage is obtained, and the data where the number of user clicks exceeds a preset number of clicks is used as the traffic data of the target webpage;
[0115] And / or, use the user-specified data as traffic data for the target webpage.
[0116] In one optional embodiment, the data classification module 402 is specifically used for:
[0117] Perform data cleaning operations on the traffic data to obtain target data corresponding to the data cleaning operations;
[0118] Obtain the classification strategy for the target data;
[0119] The target data is classified using the aforementioned classification strategy and data classification tool to obtain classified data of several different data categories. The classified data is used for visualization.
[0120] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0121] In addition, this invention also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described traffic data visualization method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0122] This invention also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes of the above-described method for visualizing traffic data, achieving the same technical effects. To avoid repetition, these details are not repeated here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0123] Figure 5 A schematic diagram of the structure of an electronic device for implementing various embodiments of the present invention.
[0124] The electronic device 500 includes, but is not limited to, components such as: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will understand that... Figure 5 The electronic device structures shown are not intended to limit the electronic device. An electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements. In embodiments of the present invention, the electronic device includes, but is not limited to, mobile phones, tablet computers, laptops, PDAs, in-vehicle terminals, wearable devices, and pedometers.
[0125] It should be understood that, in this embodiment of the invention, the radio frequency unit 501 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink data from the base station and processes it with the processor 510; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. Furthermore, the radio frequency unit 501 can also communicate with networks and other devices through a wireless communication system.
[0126] The electronic device provides users with wireless broadband internet access through the network module 502, such as helping users send and receive emails, browse web pages, and access streaming media.
[0127] The audio output unit 503 can convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into audio signals and output them as sound. Furthermore, the audio output unit 503 can also provide audio output related to specific functions performed by the electronic device 500 (e.g., call signal reception sound, message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, and a receiver, etc.
[0128] Input unit 504 is used to receive audio or video signals. Input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042. The GPU 5041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on display unit 506. The image frames processed by GPU 5041 can be stored in memory 509 (or other storage medium) or transmitted via radio frequency unit 501 or network module 502. Microphone 5042 can receive sound and process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via radio frequency unit 501 in telephone call mode.
[0129] The electronic device 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 5061 according to the ambient light level, and the proximity sensor can turn off the display panel 5061 and / or backlight when the electronic device 500 is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used to identify the posture of the electronic device (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. The sensor 505 may also include a fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be described in detail here.
[0130] The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0131] User input unit 507 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of electronic devices. Specifically, user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 5071). Touch panel 5071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 510, which receives and executes commands from the processor 510. In addition, touch panel 5071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. Besides touch panel 5071, user input unit 507 may also include other input devices 5072. Specifically, other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here.
[0132] Furthermore, the touch panel 5071 can cover the display panel 5061. When the touch panel 5071 detects a touch operation on or near it, it transmits the information to the processor 510 to determine the type of touch event. Subsequently, the processor 510 provides corresponding visual output on the display panel 5061 based on the type of touch event. Although in Figure 5 In this embodiment, the touch panel 5071 and the display panel 5061 are two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated to realize the input and output functions of the electronic device. The specific implementation is not limited here.
[0133] Interface unit 508 serves as an interface for connecting external devices to electronic device 500. For example, external devices may include a wired or wireless headphone port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 508 can be used to receive input from external devices (e.g., data, power, etc.) and transmit the received input to one or more components within electronic device 500, or it can be used to transmit data between electronic device 500 and external devices.
[0134] The memory 509 can be used to store software programs and various data. The memory 509 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0135] The processor 510 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 509, and by calling data stored in the memory 509, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. The processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 510.
[0136] The electronic device 500 may also include a power supply 511 (such as a battery) for supplying power to various components. Preferably, the power supply 511 can be logically connected to the processor 510 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.
[0137] In addition, the electronic device 500 includes some functional modules not shown, which will not be described in detail here.
[0138] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0139] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0140] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of the present invention.
[0141] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0142] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0143] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0144] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0145] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0146] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0147] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for visualizing traffic data, characterized in that, include: In response to a data analysis command for a target webpage, the system acquires the traffic data of the target webpage and the corresponding traffic data analysis interface. The traffic data is classified to obtain classification data for several different data categories corresponding to the traffic data; The data of each category is visualized according to preset rules to obtain a data display module corresponding to the visualization process, and the data display module is displayed in the traffic data analysis interface; The categorized data includes non-business data, the preset rules include a preset mapping rule table and preset visualization display rules, and the step of performing visualization processing on each of the categorized data according to the preset rules to obtain a data display module corresponding to the visualization processing includes: According to the preset mapping rule table, obtain the geographic location data, seasonal data, and weather data from the non-business data; The spatial color values corresponding to the geographic location data, the seasonal data, and the weather data are determined using the preset visualization display rules, and a data display module corresponding to the spatial color values is generated using a visualization display tool. The preset mapping rule table is a key-value pair container used to extract attribute data corresponding to the categorized data, and the preset visualization display rule is a rule set by the user that different categorized data correspond to different display styles.
2. The method according to claim 1, characterized in that, The categorized data includes business-related data. The step of performing visualization processing on each categorized data according to preset rules to obtain a data display module corresponding to the visualization processing includes: According to the preset mapping rule table, obtain user evaluation analysis data and / or enterprise credit rating data from the business data; The module display size of the user evaluation analysis data and / or the enterprise credit rating data is determined by using preset visualization display rules, and a data display module corresponding to the module display size is generated by using visualization display tools.
3. The method according to claim 1, characterized in that, The categorized data includes label-based data. The step of performing visualization processing on each categorized data according to preset rules to obtain a data display module corresponding to the visualization processing includes: At least one tag icon is determined from the tag class data according to a preset mapping rule table; The icon display style of the label icon is determined by using preset visualization display rules, and a data display module corresponding to the icon display style is generated by using visualization display tools.
4. The method according to claim 1, characterized in that, The categorized data includes user activity data. The step of performing visualization processing on each of the categorized data according to preset rules to obtain a data display module corresponding to the visualization processing includes: According to the preset mapping rules, obtain the user preference information in the user activity data, and determine the user high-frequency access points corresponding to the user preference information; The preferred display style of the user's high-frequency access points is determined by using preset visualization display rules, and a data display module corresponding to the preferred display style is generated by using visualization display tools.
5. The method according to claim 1, characterized in that, The traffic data includes user-specified data, and obtaining the traffic data of the target webpage includes: The number of user clicks on the target webpage is obtained, and the data where the number of user clicks exceeds a preset number of clicks is used as the traffic data of the target webpage; And / or, use the user-specified data as traffic data for the target webpage.
6. The method according to claim 1, characterized in that, The step of classifying the traffic data to obtain classification data of several different data categories corresponding to the traffic data includes: Perform data cleaning operations on the traffic data to obtain target data corresponding to the data cleaning operations; Obtain the classification strategy for the target data; The target data is classified using the aforementioned classification strategy and data classification tool to obtain classified data of several different data categories. The classified data is used for visualization.
7. A device for visualizing traffic data, characterized in that, include: The traffic data acquisition module is used to respond to a data analysis command for a target webpage, acquire the traffic data of the target webpage and the traffic data analysis interface corresponding to the traffic data; The data classification module is used to classify the traffic data and obtain classification data of several different data categories corresponding to the traffic data; The visualization module is used to visualize the traffic data according to preset rules for each of the category data, obtain a data display module corresponding to the visualization process, and display the data display module in the traffic data analysis interface; The categorized data includes non-business data, and the preset rules include a preset mapping rule table and preset visualization display rules. The visualization display module is specifically used for: According to the preset mapping rule table, obtain the geographic location data, seasonal data, and weather data from the non-business data; The spatial color values corresponding to the geographic location data, the seasonal data, and the weather data are determined using the preset visualization display rules, and a data display module corresponding to the spatial color values is generated using a visualization display tool. The preset mapping rule table is a key-value pair container used to extract attribute data corresponding to the categorized data, and the preset visualization display rule is a rule set by the user that different categorized data correspond to different display styles.
8. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method as described in any one of claims 1-6.
9. A computer-readable storage medium having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-6.