US 11,656,750 B2
Method and device for reference-diagram editing for chart and non-transitory computer-readable storage medium
Hua Li, Guangdong (CN); and Zheng Pei, Guangdong (CN)
Assigned to Shenzhen Futu Network Technology Co., Ltd., Guangdong (CN)
Filed by Shenzhen Futu Network Technology Co., Ltd., Guangdong (CN)
Filed on Dec. 10, 2021, as Appl. No. 17/547,897.
Application 17/547,897 is a continuation of application No. PCT/CN2021/082443, filed on Mar. 23, 2021.
Claims priority of application No. 202010209012.0 (CN), filed on Mar. 23, 2020.
Prior Publication US 2022/0100360 A1, Mar. 31, 2022
Int. Cl. G06F 3/048 (2013.01); G06F 3/04845 (2022.01); G06F 3/04883 (2022.01)
CPC G06F 3/04845 (2013.01) [G06F 3/04883 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method for reference-diagram editing for a chart, the method being performed on a mobile terminal and comprising, during display of the chart:
detecting whether a chart operation object is selected;
switching the chart to an editable state in response to detecting that the chart operation object is selected;
detecting preset edit-touch events in a control region of an edit page corresponding to the chart after switching the chart to the editable state, wherein the edit page comprises the control region and the chart, and the control region coincides with a region where a main chart of the chart, wherein a plurality of line drawing types are preset in the edit page and are classified into multi-grade types, wherein the multi-grade types comprise a first grade type as a parent type and a second grade type as a child type of the first grade type, wherein the first grade type comprises a polygon type, and the second grade type comprises triangle, rectangle, parallelogram, circle, and ellipse; and
performing a reference-diagram editing operation on the main chart of the chart according to the edit-touch events detected in the control region of the edit page to edit a reference diagram on the main chart;
wherein the method further comprises, subsequent to said switching the chart to the editable state and prior to said detecting the edit-touch events in the control region of the edit page:
detecting in the edit page whether a preset line drawing type in the plurality of line drawing types is selected; and
determining, in response to detecting that a preset line drawing type in the plurality of line drawing types is selected, a total anchor number corresponding to the line drawing type selected;
wherein said performing the reference-diagram editing operation on the main chart of the chart according to the edit-touch events detected in the control region of the edit page comprises:
creating at least one anchor on the main chart of the chart according to the edit-touch events detected in the control region of the edit page; and
drawing on the main chart, based on the at least one anchor created, a shape for creating the reference diagram, wherein creating of the reference diagram is completed when a number of anchors created reaches the total anchor number; and
wherein the method further comprises, during the creating of the at least one anchor on the main chart of the chart according to the edit-touch events detected in the control region of the edit page:
displaying anchor-creation prompt information when the number of the anchors created is less than the total anchor number, wherein the anchor-creation prompt information comprises at least one of: the selected line drawing type, the total anchor number, or the number of the anchors created; and/or
displaying creation-completion prompt information when the number of the anchors created is equal to the total anchor number.