Data display method and apparatus, electronic device, and storage medium
AssigneeBeijing Zitiao Network Technology Co., Ltd.
InventorsHaiyun Chen, Jiesheng Chen
Life of this patent
Estimating the term…
Abstract
Embodiments of the disclosure disclose a data display method and apparatus, an electronic device, and a storage medium. The method includes: determining, in response to a display instruction for target display data, candidate positions in a display region according to a preset display mode, and determining reference positions in the display region according to the preset display mode and positions of current display data in the display region; determining priority values of the candidate positions based on distances between the candidate positions and the reference positions; and determining a target position from the candidate positions based on the priority values, and displaying the target display data according to the target position.
Claims18
A data display method implemented by an electronic device, the method comprising:
- determining, in response to a display instruction for target display data, candidate positions in a display region according to a preset display mode, and determining a reference position in the display region according to the preset display mode and positions of current display data in the display region;
- determining priority values of the candidate positions based on distances between the candidate positions and the reference position;
- and
- determining a target position from the candidate positions based on the priority values, and displaying the target display data according to the target position;
- wherein the preset display mode comprises a data distribution method, a data distribution position, and a data overlap degree;
- wherein determining the reference position in the display region comprises:
- determining at least one first reference position in the display region according to the data distribution position;
- and
- determining at least one second reference position from the positions of the current display data according to the data overlap degree, the data overlap degree being in inverse correlation with a number of second reference positions;
- or
- wherein determining the priority values of the candidate positions comprises:
- determining the priority values of the candidate positions based on a relationship between the candidate positions and the first reference positions and between the candidate position and the second reference position.
An electronic device, comprising:
- one or more processors;
- and
- a storage means configured to store one or more programs,
- wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to:
- determine, in response to a display instruction for target display data, candidate positions in a display region according to a preset display mode, and determine a reference position in the display region according to the preset display mode and positions of current display data in the display region;
- determine priority values of the candidate positions based on distances between the candidate positions and the reference position;
- and
- determine a target position from the candidate positions based on the priority values, and display the target display data according to the target position,
- wherein the preset display mode comprises a data distribution method, a data distribution position, and a data overlap degree;
- wherein the one or more processors are caused to determine the reference position in the display region by being caused to:
- determine at least one first reference position in the display region according to the data distribution position;
- and
- determine at least one second reference position from the positions of the current display data according to the data overlap degree, the data overlap degree being in inverse correlation with a number of second reference positions;
- or
- wherein the one or more processors are caused to determine the priority values of the candidate positions by being caused to:
- determine the priority values of the candidate positions based on a relationship between the candidate positions and the first reference positions and between the candidate position and the second reference position.
A non-transitory storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are configured to:
- determine, in response to a display instruction for target display data, candidate positions in a display region according to a preset display mode, and determine a reference position in the display region according to the preset display mode and positions of current display data in the display region;
- determine priority values of the candidate positions based on distances between the candidate positions and the reference position;
- and
- determine a target position from the candidate positions based on the priority values, and display the target display data according to the target position,
- wherein the preset display mode comprises a data distribution method, a data distribution position, and a data overlap degree;
- wherein the computer executable instructions are configured to determine the reference position in the display region by being configured to:
- determine at least one first reference position in the display region according to the data distribution position;
- and
- determine at least one second reference position from the positions of the current display data according to the data overlap degree, the data overlap degree being in inverse correlation with a number of second reference positions;
- or
- wherein the computer executable instructions are configured to determine the priority values of the candidate positions by being configured to:
- determine the priority values of the candidate positions based on a relationship between the candidate positions and the first reference positions and between the candidate position and the second reference position.
Dependencies are inferred from the claim text.