A nested chart gesture operation method, system, device and computer medium
By acquiring gesture events from nested charts, determining the current interaction intent, and processing accordingly, the problem of accidental touches and lag in nested chart operations is solved, enabling precise chart and cursor movement and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- FOUNDER SECURITIES CO LTD
- Filing Date
- 2026-05-20
- Publication Date
- 2026-06-19
AI Technical Summary
During nested chart operations, gesture operations are easily misinterpreted as list scrolling, causing page shaking, making it difficult to accurately locate data and resulting in gesture deadlock.
By acquiring gesture events from nested charts, the current interaction intent is determined, and different intents are processed accordingly, including the handling of chart movement and cursor movement. The intent is adjusted using an operation semantic state machine and a gesture recognizer to avoid misjudgment.
It achieves accurate recognition of the operation intent of nested charts, avoids accidental touches and lag, ensures the accuracy of chart sliding and cursor movement, and improves the user experience.
Smart Images

Figure CN122240002A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of human-computer interaction technology, and more specifically, to a method, system, device, and computer medium for nested chart gesture operation. Background Technology
[0002] Nested charts are a visualization technique that uses a hierarchical structure to display multi-dimensional data. They divide the overall data into main categories and further subdivide certain categories, presenting both a macro overview and micro details within a single chart. This allows for the display of richer information than a single chart without increasing chart complexity. Using nested charts, users can browse data such as industrial equipment performance changes, electrocardiograms, and candlestick charts to accurately obtain the information they need.
[0003] Currently, when manipulating nested charts, a static direction interception method can be used to respond to gesture operations to handle the conflict between horizontal chart swiping and vertical list scrolling. However, when users long-press to view specific values in nested charts, they often need to fine-tune their finger position. If the finger makes a slight vertical movement at this time, the static direction-based judgment mechanism is very likely to misinterpret it as list scrolling, causing the entire page to shake up and down, making it difficult to accurately locate the data needed by the user, resulting in a gesture deadlock.
[0004] In summary, how to avoid accidental touches and lag during the process of nested charts in gesture operation is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this application is to provide a method for nested chart gesture operation, which can, to some extent, solve the technical problem of how to avoid accidental touches and lag during the process of gesture operation of nested charts. This application also provides a nested chart gesture operating system, an electronic device, and a computer-readable storage medium.
[0006] To achieve the above objectives, this application provides the following technical solution: Firstly, this application provides a method for nested chart gesture operations, including: Get gesture events for nested charts; Determine the current interaction intent for the nested chart; In response to the current interaction intent representing browsing the list, the gesture event is processed to obtain the chart movement amount, and the charts in the nested charts are slid horizontally according to the chart movement amount; In response to the current interaction intent representing viewing data, the gesture event is processed to obtain the cursor movement amount, and the cursor of the nested chart is moved according to the cursor movement amount.
[0007] On the other hand, after determining the current interaction intent for the nested chart, it also includes: In response to the current interaction intent representing a viewport operation, the gesture event is processed to obtain viewport operation data, which includes operation type and operation amount. Operate on the viewport of the nested chart according to the viewport operation data.
[0008] On the other hand, determining the current interaction intent for the nested chart includes: Obtain the semantic state machine used to record the interactive intents of nested charts; The operational semantic state machine is parsed; In response to the operation semantic state machine being in a detached state, the current interaction intent is determined to represent browsing the list; In response to the operation semantic state machine being in a locked interaction state, the current interaction intent is determined to represent viewing data; In response to the operation semantic state machine being in a translation or scaling state, the current interaction intent characterizing the viewport operation is determined.
[0009] On the other hand, it also includes: Register a gesture recognizer on a nested chart; Determine the target type of the triggered gesture recognizer; Adjust the current interaction intent to the interaction intent corresponding to the target type.
[0010] On the other hand, adjusting the current interaction intent to an interaction intent corresponding to the target type includes: In response to the target type being a long press gesture recognizer, the current interaction intent is adjusted to represent viewing data; In response to the target type being a drag gesture recognizer, the current interaction intent is adjusted to represent browsing the list; In response to the target type being a pinch gesture recognizer, the current interaction intent is adjusted to represent a viewport operation.
[0011] On the other hand, after moving the cursor of the nested chart according to the aforementioned cursor movement amount, the process also includes: Identify the target data hit by the cursor in a nested chart; Generate a visual window on a nested chart; The target data is displayed in the visual window according to the set display format.
[0012] On the other hand, before processing the gesture event to obtain the cursor movement amount, the process also includes: Detect whether a cursor exists in a nested chart; If the nested chart does not have a cursor, the touch position is parsed from the gesture event; A cursor is generated at the touch location of the nested chart.
[0013] Secondly, a nested chart gesture operating system is provided, including: The gesture acquisition module is used to acquire gesture events on nested charts; The intent parsing module is used to determine the current interaction intent for the nested chart; The list operation module is used to process the gesture event in response to the current interaction intent representing browsing the list, obtain the chart movement amount, and slide the charts in the nested charts horizontally according to the chart movement amount; The cursor operation module is used to process the gesture event in response to the current interaction intent representing viewing data, obtain the cursor movement amount, and move the cursor of the nested chart according to the cursor movement amount.
[0014] Thirdly, an electronic device is provided, comprising: Memory, used to store computer programs; A processor, configured to implement the steps of any of the nested chart gesture operation methods described above when executing the computer program.
[0015] Fourthly, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when executed by a processor, the computer program implements the steps of any of the nested chart gesture operation methods described above.
[0016] This application provides a method for operating nested charts using gestures. The method acquires gesture events related to nested charts; determines the current interaction intent for the nested chart; in response to the current interaction intent indicating browsing a list, the gesture event is processed to obtain the chart movement amount, and the chart within the nested chart is swiped horizontally according to this movement amount; in response to the current interaction intent indicating viewing data, the gesture event is processed to obtain the cursor movement amount, and the cursor within the nested chart is moved according to this movement amount. This application achieves accurate identification of the user's intention to operate the nested chart by using the current interaction intent of the nested chart, avoiding misjudgment of the interaction intent; and by dividing the interaction intent into corresponding browsing a list and viewing data, and specifically processing the gesture events as chart movement amount and cursor movement amount, it can quickly respond to the interaction intent and accurately perform horizontal swiping or cursor movement on the nested chart, eliminating the possibility of accidentally triggering chart swiping while viewing data, thereby avoiding accidental touches and lag during the gesture operation of nested charts. The nested chart gesture operating system, electronic device, and computer-readable storage medium provided in this application also solve the corresponding technical problems. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0018] Figure 1 A flowchart illustrating a nested chart gesture operation method provided in this application embodiment; Figure 2 This is an interactive illustration of how users manipulate nested stock charts based on their gestures. Figure 3 This application provides a schematic diagram of the structure of a nested chart gesture operating system. Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application; Figure 5 This is another structural schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0020] Please see Figure 1 , Figure 1 A flowchart illustrating a nested chart gesture operation method provided in this application embodiment.
[0021] This application provides a nested chart gesture operation method, applicable to nested data visualization applications on touch devices such as mobile terminals and tablets, and may include the following steps: Step S101: Obtain gesture events for nested charts.
[0022] In practical applications, nested charts refer to interactive charts nested within a scrollable parent container. Users manually interact with the nested charts, so gesture events can be captured. For example, the interaction trajectory between the user and the nested chart area can be captured in real time through capacitive touchscreen input devices. This provides the raw input data stream for subsequent operations on the nested charts based on gesture events, ensuring that the physical characteristics of the user's actions can be fully perceived.
[0023] In an exemplary embodiment, the content of the gesture event can be flexibly adjusted as needed. For example, the gesture event may include a sequence of finger swipe trajectory coordinates, swipe duration, etc. Furthermore, the nested charts can be data on changes in industrial equipment performance, electrocardiograms, candlestick charts, etc.
[0024] Step S102: Determine the current interaction intent for the nested chart.
[0025] In practical applications, the hierarchical nature of nested charts can make it difficult for devices to accurately understand the user's operational intent. For example, if the physical space of the outer chart and the inner data points overlap, it is difficult to accurately distinguish whether the user is moving the outer chart or querying the inner data points. To avoid this situation, it is necessary to clarify the user's current interaction intent with the nested chart so that subsequent operations on the nested chart can be performed accurately based on the current interaction intent.
[0026] Step S103: In response to the current interaction intent representing browsing the list, the gesture event is processed to obtain the chart movement amount, and the charts in the nested charts are slid horizontally according to the chart movement amount.
[0027] Step S104: In response to the current interaction intent representing viewing data, the gesture event is processed to obtain the cursor movement amount, and the cursor of the nested chart is moved according to the cursor movement amount.
[0028] In practical applications, after determining the current interaction intent, if the intent represents browsing a list, the gesture event is processed to obtain the chart movement amount. The charts within nested charts are then swiped horizontally according to this movement amount. Considering that horizontal swiping can be either left or right, the chart movement amount can be set to include both direction and size. This allows the user to swipe left or right as needed during normal browsing, giving complete control over the charts and eliminating accidental touches and stuttering caused by diagonal swiping. If the current interaction intent represents viewing data, the gesture event is processed to obtain the cursor movement amount. The cursor within nested charts is then moved according to this movement amount. Considering the multiple directions of cursor movement, the cursor movement amount can be set to include both direction and size, ensuring accurate cursor movement and completely eliminating chart swiping interference, making it easier for the user to view the data the cursor is pointing to.
[0029] In an exemplary embodiment, after moving the cursor of the nested chart according to the cursor movement amount, the target data hit by the cursor in the nested chart can be identified so that the user can easily view the data hit by the cursor. Then, a visual window is generated on the nested chart. The visual window can be located above the cursor or in the blank area of the nested chart, etc. Finally, the target data is displayed in the visual window according to the set display format. For example, the target data is displayed in the visual window according to the set color, set font, set size, etc.
[0030] In an exemplary embodiment, before processing the gesture event to obtain the cursor movement amount, it is also possible to detect whether there is a cursor in the nested chart; in response to the absence of a cursor in the nested chart, the touch position is parsed from the gesture event; and a cursor is generated at the touch position of the nested chart.
[0031] In an exemplary embodiment, considering the size limitations of the display screen, the content of the nested charts may not meet the user's viewing needs, such as the font size of the nested charts being too small. To avoid this situation, after determining the current interaction intent for the nested charts, in response to the viewport operation represented by the current interaction intent, the gesture event can be processed to obtain viewport operation data. The viewport operation data includes the operation type and operation amount. The operation type can be panning, zooming, scaling, etc. Then, according to the viewport operation data, the viewport of the nested charts is operated so that the content of the displayed nested charts meets the user's viewing needs.
[0032] In an exemplary embodiment, the process of determining the current interaction intent for the nested chart can be based on the instantaneous characteristics of the gesture event. For example, the gesture event can be parsed to obtain the sliding speed vector, trajectory curvature, and contact pressure gradient. When the sliding speed vector is greater than a first vector threshold, the trajectory curvature is less than a first curvature threshold, and the contact pressure gradient is less than a first gradient threshold, it can be determined that the current interaction intent represents browsing the list. When the sliding speed vector is less than a second vector threshold, the trajectory curvature is less than a second curvature threshold, and the contact pressure gradient is greater than a second gradient threshold, it can be determined that the current interaction intent represents data querying. Here, the first vector threshold is greater than the first vector threshold, the first curvature threshold is less than the second curvature threshold, and the first gradient threshold is less than the second gradient threshold.
[0033] In specific application scenarios, although relying on the instantaneous characteristics of a single gesture event can be used to determine intent, it is susceptible to noise interference, such as misjudgment due to finger tremors. To accurately determine the interaction intent, an operation semantic state machine can be used as a state management model for nested chart interactions. Predefined state transition rules are used to record the semantic sequence of user interactions. Based on this, an operation semantic state machine for recording the intent of nested chart interactions can be obtained. The operation semantic state machine is then parsed. If the operation semantic state machine is in a detached state, it indicates that the user is not focused on a specific data point, and the intent is to browse the overall content of the chart, such as scrolling through all levels of the nested chart. Since the semantic definition of a detached state is no data lock, it perfectly matches the physical requirements of browsing intent, thus determining that the current interaction intent represents browsing intent. The list is scrolled to ensure that browsing operations are free from data interference, enabling natural interaction with the scrolling list. When the operation semantic state machine is in a locked interaction state, it indicates that the user is focusing on a specific data object, intending to query the details of that data point. Since the semantics of the locked interaction state is data locking, which aligns with the physical requirement of the query intent, the current interaction intent can be determined to represent viewing data, achieving precise data viewing and eliminating accidental triggers in browsing operations. When the operation semantic state machine is in a pan or zoom state, it indicates that the user is dynamically manipulating the chart viewport, intending to adjust the viewport range, such as zooming in to view topology details. Since the semantics of the pan / zoom state is viewport transformation, which is completely consistent with the physical requirement of the viewport operation intent, the current interaction intent can be determined to represent the viewport operation. In essence, the operational semantic state machine encodes interactive behavior into three discrete states: a detached state, a locked interactive state, and a translation / zoom state. This allows the system to dynamically maintain the interactive context based on historical operation trajectories, providing a traceable interactive context for intent determination and avoiding misjudgments caused by isolated gesture analysis. For example, when a user continuously swipes from a detached state, the state machine records the browsing state rather than recalculating a new intent. In other words, the operational semantic state machine elevates the determination of interactive intent from physical feature calculation to semantic state management, breaking through the limitations of relying on a single gesture parameter to identify interactive intent. Furthermore, as a carrier of interactive semantics, the state machine also enables scalability in intent determination. Of course, there are other ways to set up an operational semantic state machine, which are not specifically limited here.
[0034] In specific application scenarios, the process of switching interaction intents can follow the interaction mode switching method. That is, users must enter the data query mode by clicking a specific full-screen button or lock button before they can perform detailed chart operations; otherwise, the chart is only displayed statically or only supports simple swiping. However, the mutually exclusive mode requires users to lift their fingers, then click the button, and finally press their fingers again to switch operation modes, disrupting the continuous thought process of discovering anomalies, long-pressing to view, and dragging to analyze. To avoid this problem, a gesture recognizer can be registered on the nested chart, including but not limited to long press, drag, and pinch gesture recognizers. The target type of the triggered gesture recognizer is determined. The current interaction intent is adjusted to correspond to the target type. That is, the gesture recognizer does not directly drive view transformations but acts as a trigger for interaction semantics. Specifically, in response to a long press gesture recognizer, the current interaction intent is adjusted to represent viewing data; in response to a drag gesture recognizer, the current interaction intent is adjusted to represent browsing a list; and in response to a pinch gesture recognizer, the current interaction intent is adjusted to represent viewport operations. In this embodiment, the gesture trigger is used as a signal declaring intent, rather than a direct operation command. This semantic injection mechanism allows subsequent gesture arbitration to be based on user intent rather than simple direction judgment, achieving a state transition from no intent to a clear intent. Based on this, users can change their interaction intent by triggering different gesture recognizers, and various gesture recognizers match their corresponding interaction intents, enabling seamless switching of interaction intents within the same touch sequence and ensuring the continuity of the user's operation flow. Of course, there are other ways to adjust the type of operation semantic state machine, which are not specifically limited here.
[0035] In the exemplary embodiment, considering that the nested chart gesture operation adopts the post-determination mode, that is, the response is triggered only after the gesture is completely finished, there is an inherent physical delay. For example, the entire process of gesture acquisition, intent determination and resource loading takes a long time. In high-time-efficiency scenarios such as financial transactions and real-time ECG monitoring, this delay will cause users to perceive lag and reduce operation efficiency. In other words, the interface response is lagging when performing rapid and continuous operations, which disrupts the continuity of operation. To address this issue, interaction intent parsing can be performed simultaneously with user gesture events. For example, during the gesture, a trajectory feature window can be constructed in real time, and a set number of gesture trajectory points (e.g., 3 frames) can be collected using this window. Then, a lightweight trajectory prediction model with edge optimization can be used to predict the gesture trajectory points. For instance, a quantized compressed single-layer LSTM network can be used to predict the gesture trajectory points, outputting the probability distribution of three types of interaction intents. If the probability of a certain type of interaction intent consistently exceeds a preset threshold (e.g., twice consecutively greater than 0.7), then this type of interaction intent is considered a candidate intent, and resources corresponding to this candidate intent are preloaded. For example, if the candidate intent is data query, a semi-transparent cursor with 30% transparency and 1.2 times the size of a standard cursor is drawn at the predicted target location to provide expected operation prompts. The preset threshold can be adaptively adjusted according to the depth of the chart hierarchy; the deeper the hierarchy, the higher the threshold. Finally, after the gesture event ends (e.g., after the finger leaves the nested chart), the final intent is determined based on the operation semantic state machine. If the intent represented by the operation semantic state machine matches the candidate intent... Figure 1 If the preloaded resources are not consistent with the candidate intent, the preloaded resources are seamlessly switched to the actual content. For example, a semi-transparent cursor becomes solid, and the pre-rendered panel is directly displayed. If the intent represented by the operation semantic state machine is inconsistent with the candidate intent, the preloaded resources are discarded to free up memory, and the operation is re-executed according to the intent represented by the operation semantic state machine. The prediction error is recorded for online fine-tuning of the trajectory prediction model. In this way, intent prediction can be performed during the gesture event acquisition process, and corresponding resources can be preloaded to reduce latency and improve interaction efficiency. Furthermore, the dual-condition filtering of candidate intents can improve prediction reliability. Finally, the operation semantic state machine is used to ensure operation accuracy, achieving a balance between prediction speed and operation accuracy.
[0036] This application provides a method for gesture operation of nested charts. The method acquires gesture events related to nested charts; determines the current interaction intent for the nested chart; in response to the current interaction intent indicating browsing a list, the gesture event is processed to obtain the chart movement amount, and the chart within the nested chart is swiped horizontally according to this amount; in response to the current interaction intent indicating viewing data, the gesture event is processed to obtain the cursor movement amount, and the cursor in the nested chart is moved according to this amount. This application achieves accurate identification of the user's intention to operate the nested chart by using the current interaction intent of the nested chart, avoiding misjudgment of the interaction intent; and by dividing the interaction intent into corresponding browsing a list and viewing data, and specifically processing the gesture events as chart movement amount and cursor movement amount, it can quickly respond to the interaction intent and accurately perform horizontal swiping or cursor movement on the nested chart, eliminating the possibility of accidentally triggering list movement when viewing data, thereby avoiding accidental touches and stuttering during gesture operation of nested charts.
[0037] To facilitate understanding of the nested chart gesture operation scheme provided in this application, let's assume a user is viewing the intraday chart of a stock in their watchlist. The response to the user's gesture would be as follows: Figure 2 As shown, the process includes the following: Scene initialization, that is, under the user's operation, the selected stock page is displayed through the touch screen (Touch System). The page is a vertically scrolling list containing an embedded time-sharing chart component. At this time, the operation semantic state machine inside the nested chart is in the NONE (detached state). Assuming the user quickly swipes their finger across the time-sharing chart area, indicating an intention to scroll down, the nested chart's PanGesture callback is triggered. If the ChartView detects that the current state of the operation semantic state machine is NONE and the global configuration allows the parent container to intercept, the ChartView returns a REJECT signal to the touchscreen. The touchscreen then dispatches a scroll event to the parent container (Parent List) based on the user's gesture, and the parent container executes page scrolling accordingly. At this point, the chart smoothly scrolls left and right. Suppose a user notices a sharp drop in the intraday chart and presses and holds their finger on a point on the chart. After 0.5 seconds, the LongPressGesture inside the nested chart gesture recognizers successfully recognizes the drop, triggering a callback function. This changes the internal operation semantic state machine mOperation to LONG_PRESS (locking the interaction state) and notifies the chart view to draw the crosshair. The user, still holding their finger down, begins to fine-tune to the left, attempting to view the specific price at the moment of the sharp drop. This triggers the PanGesture's decision callback again. At this point, the chart view detects that the operation semantic state machine's current state has changed to LONG_PRESS, returns a CONTINUE (forced consumption) signal to the touchscreen, and uses the API to prevent the parent container from receiving subsequent events. The touchscreen distributes drag events to the chart view based on the user's gesture. The chart view moves the crosshair position based on the drag events. At this point, list scrolling is completely locked; the user's finger movement is entirely mapped to the left and right movement of the crosshair. Even with significant vertical finger jitter, the list will not shift. If the user lifts their finger to end the interaction, the TouchUp event is triggered. The chart view resets the operation semantic state machine to NONE, the crosshair disappears, and it returns to the initial state.
[0038] It should be noted that this embodiment only uses the example of a user viewing stocks to illustrate the solution. When a user views data on changes in the performance of industrial equipment, electrocardiograms, etc., the same principle can be applied, and will not be elaborated further here.
[0039] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a nested chart gesture operating system provided in an embodiment of this application.
[0040] This application provides an embodiment of a nested chart gesture operating system, which may include: Gesture acquisition module 101 is used to acquire gesture events on nested charts; The intent parsing module 102 is used to determine the current interaction intent for the nested chart; The list operation module 103 is used to process the gesture event in response to the current interaction intent representing browsing the list, obtain the chart movement amount, and slide the chart in the nested chart left and right according to the chart movement amount; The cursor operation module 104 is used to process the gesture event in response to the current interaction intent representing viewing data, obtain the cursor movement amount, and move the cursor of the nested chart according to the cursor movement amount.
[0041] The nested chart gesture operating system provided in this application embodiment may further include: The viewport operation module is used by the intent parsing module to determine the current interaction intent for the nested chart. In response to the viewport operation represented by the current interaction intent, the module processes the gesture event to obtain viewport operation data, which includes the operation type and operation amount. The module then performs operations on the viewport of the nested chart according to the viewport operation data.
[0042] This application provides a nested chart gesture operating system, wherein the intent parsing module may include: The state machine acquisition unit is used to acquire the operational semantic state machine used to record nested chart interaction intents. The state machine parsing unit is used to parse the operation semantic state machine; in response to the operation semantic state machine being in a detached state, the current interaction intent is determined to represent browsing the list; in response to the operation semantic state machine being in a locked interaction state, the current interaction intent is determined to represent viewing data; in response to the operation semantic state machine being in a translation or zoom state, the current interaction intent is determined to represent viewport operation.
[0043] The nested chart gesture operating system provided in this application embodiment may further include: The recognizer registration module is used to register gesture recognizers on nested charts; The trigger recognition module is used to determine the target type of the triggered gesture recognizer; The intent adjustment module is used to adjust the current interaction intent to an interaction intent that corresponds to the target type.
[0044] This application provides a nested chart gesture operating system, in which the intent adjustment module can be used to: adjust the current interaction intent to represent viewing data in response to the target type being a long press gesture recognizer; adjust the current interaction intent to represent browsing a list in response to the target type being a drag gesture recognizer; and adjust the current interaction intent to represent viewport operation in response to the target type being a pinch gesture recognizer.
[0045] The nested chart gesture operating system provided in this application embodiment may further include: The data recognition module is used by the cursor operation module to move the cursor of the nested chart according to the cursor movement amount and then identify the target data hit by the cursor in the nested chart. The window generation module is used to generate visual windows on nested charts; The data display module is used to display the target data in the visual window according to the set display format.
[0046] The nested chart gesture operating system provided in this application embodiment may further include: The cursor detection module is used by the cursor operation module to detect whether there is a cursor in the nested chart before processing gesture events and obtaining the cursor movement amount; The cursor generation module is used to resolve the situation where a cursor does not exist in a nested chart. In this case, the touch position is parsed from the gesture event, and a cursor is generated at the touch position of the nested chart.
[0047] This application also provides an electronic device and a computer-readable storage medium, both of which have the corresponding effects of the nested chart gesture operation method provided in the embodiments of this application. Please refer to... Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0048] An electronic device provided in this application includes a memory 201 and a processor 202. The memory 201 stores a computer program, and when the processor 202 executes the computer program, it implements the steps of the nested chart gesture operation method described in any of the above embodiments.
[0049] Please see Figure 5 Another electronic device provided in this application embodiment may further include: an input port 203 connected to the processor 202 for transmitting commands input from the outside to the processor 202; a display unit 204 connected to the processor 202 for displaying the processing results of the processor 202 to the outside; and a communication module 205 connected to the processor 202 for enabling communication between the electronic device and the outside. The display unit 204 may be a display panel, a laser scanning display, etc.; the communication method adopted by the communication module 205 includes, but is not limited to, Mobile High-Definition Link (MHL), Universal Serial Bus (USB), High-Definition Multimedia Interface (HDMI), wireless connection: Wireless Fidelity (WiFi), Bluetooth communication technology, Bluetooth Low Energy communication technology, and communication technology based on IEEE 802.11s.
[0050] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the steps of the nested chart gesture operation method described in any of the above embodiments.
[0051] The computer-readable storage media involved in this application include random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs (compact disc read-only memory), or any other form of storage media known in the art.
[0052] This application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the nested chart gesture operation method described in any of the above embodiments.
[0053] For descriptions of relevant parts in the nested chart gesture operating system, electronic device, and computer-readable storage medium provided in this application's embodiments, please refer to the detailed descriptions of the corresponding parts in the nested chart gesture operation method provided in this application's embodiments; they will not be repeated here. Furthermore, parts of the technical solutions provided in this application that are consistent with the implementation principles of corresponding technical solutions in the prior art have not been described in detail to avoid excessive elaboration.
[0054] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, 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. Without further limitations, 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 said element.
[0055] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for nested chart gesture operations, characterized in that, include: Get gesture events for nested charts; Determine the current interaction intent for the nested chart; In response to the current interaction intent representing browsing the list, the gesture event is processed to obtain the chart movement amount, and the charts in the nested charts are slid horizontally according to the chart movement amount; In response to the current interaction intent representing viewing data, the gesture event is processed to obtain the cursor movement amount, and the cursor of the nested chart is moved according to the cursor movement amount.
2. The method according to claim 1, characterized in that, After determining the current interaction intent for the nested chart, the following also applies: In response to the current interaction intent representing a viewport operation, the gesture event is processed to obtain viewport operation data, which includes operation type and operation amount. Operate on the viewport of the nested chart according to the viewport operation data.
3. The method according to claim 2, characterized in that, Determine the current interaction intent for the nested chart, including: Obtain the semantic state machine used to record the interactive intents of nested charts; The operational semantic state machine is parsed; In response to the operation semantic state machine being in a detached state, the current interaction intent is determined to represent browsing the list; In response to the operation semantic state machine being in a locked interaction state, the current interaction intent is determined to represent viewing data; In response to the operation semantic state machine being in a translation or scaling state, the current interaction intent characterizing the viewport operation is determined.
4. The method according to claim 2, characterized in that, Also includes: Register a gesture recognizer on a nested chart; Determine the target type of the triggered gesture recognizer; Adjust the current interaction intent to the interaction intent corresponding to the target type.
5. The method according to claim 4, characterized in that, Adjusting the current interaction intent to an interaction intent corresponding to the target type includes: In response to the target type being a long press gesture recognizer, the current interaction intent is adjusted to represent viewing data; In response to the target type being a drag gesture recognizer, the current interaction intent is adjusted to represent browsing the list; In response to the target type being a pinch gesture recognizer, the current interaction intent is adjusted to represent a viewport operation.
6. The method according to claim 1, characterized in that, After moving the cursor of the nested chart according to the stated cursor movement amount, the process also includes: Identify the target data hit by the cursor in a nested chart; Generate a visual window on a nested chart; The target data is displayed in the visual window according to the set display format.
7. The method according to claim 1, characterized in that, Before processing the gesture event to obtain the cursor movement amount, the process also includes: Detect whether a cursor exists in a nested chart; If the nested chart does not have a cursor, the touch position is parsed from the gesture event; A cursor is generated at the touch location of the nested chart.
8. A nested chart gesture operating system, characterized in that, include: The gesture acquisition module is used to acquire gesture events on nested charts; The intent parsing module is used to determine the current interaction intent for the nested chart; The list operation module is used to process the gesture event in response to the current interaction intent representing browsing the list, obtain the chart movement amount, and slide the charts in the nested charts horizontally according to the chart movement amount; The cursor operation module is used to process the gesture event in response to the current interaction intent representing viewing data, obtain the cursor movement amount, and move the cursor of the nested chart according to the cursor movement amount.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the nested chart gesture operation method as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the nested chart gesture operation method as described in any one of claims 1 to 7.