CN116883519A - Method, device, equipment and medium for matching trend chart - Google Patents

Method, device, equipment and medium for matching trend chart Download PDF

Info

Publication number
CN116883519A
CN116883519A CN202310748788.3A CN202310748788A CN116883519A CN 116883519 A CN116883519 A CN 116883519A CN 202310748788 A CN202310748788 A CN 202310748788A CN 116883519 A CN116883519 A CN 116883519A
Authority
CN
China
Prior art keywords
color
colors
preset
lines
trend graph
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310748788.3A
Other languages
Chinese (zh)
Inventor
陈芳芳
邹小军
陈鹏飞
林剑青
王晓平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haitong Securities Co ltd
Original Assignee
Haitong Securities Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haitong Securities Co ltd filed Critical Haitong Securities Co ltd
Priority to CN202310748788.3A priority Critical patent/CN116883519A/en
Publication of CN116883519A publication Critical patent/CN116883519A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/42Document-oriented image-based pattern recognition based on the type of document
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The application provides a trend graph color matching method, device, equipment and medium. When the number of the lines is larger than the number of the colors in the preset color combination, second colors which are the same as the number of the lines and the number of the colors in the preset color combination and are sequentially arranged are obtained from the preset color combination, the second colors are processed to obtain third colors, the colors sequentially arranged in the preset color combination are sequentially color matched for part of the lines sequentially arranged in the trend graph, and the colors sequentially matched for the rest of the lines sequentially arranged in the trend graph are sequentially color matched for the third colors. The color values between adjacent colors in the preset color combination have larger difference, so that a user can quickly and clearly identify the required information.

Description

Method, device, equipment and medium for matching trend chart
Technical Field
The present application relates to the field of data processing, and in particular, to a method, an apparatus, a device, and a medium for color matching of a trend chart.
Background
With the popularization of computers, stock trading activities and stock market analysis work are gradually changed from off-line to on-line, and the computers become main tools for financial data analysis. People acquire massive financial data charts through mobile equipment (such as mobile phones, computers and the like), and acquire required information through checking the data charts.
However, when the number of lines in the data chart is excessive, for example, when the number of lines in the stock analysis-related trend chart is large, it is difficult for people to quickly recognize the required information, resulting in erroneous analysis and judgment of the information.
Disclosure of Invention
The application provides a trend graph color matching method, device, equipment and medium, which enable a user to quickly identify required information.
In a first aspect, the present application provides a method for matching colors in a trend chart, including:
acquiring a trend graph, and judging whether lines in the trend graph have preset color;
if yes, matching colors of the lines in the trend graph according to the preset color extraction, otherwise, identifying the number of the lines in the trend graph;
when the number of the lines is smaller than or equal to the number of colors in a preset color combination, acquiring first colors which are the same as the number of the lines and are sequentially arranged from the preset color combination, and matching colors of the lines according to the first colors;
When the number of the lines is larger than the number of the colors in the preset color combination, calculating a difference value between the number of the lines and the number of the colors in the preset color combination, acquiring second colors which are the same as the difference value in number and are sequentially arranged from the preset color combination, processing the second colors to obtain third colors, and performing color matching for part of the lines in the trend graph according to the colors sequentially arranged in the preset color combination and performing color matching for the rest lines in the trend graph according to the third colors;
the preset color combinations are obtained by alternately arranging a preset number of colors in warm tone according to warmth, and/or by alternately arranging a preset number of colors in cold tone according to coldness, and/or by alternately arranging a first preset number of colors in warm tone according to warmth and a second preset number of colors in cold tone according to coldness.
Optionally, the method further comprises: forming a preset color combination by at least one of the following;
Setting a preset number of colors which are sequentially arranged according to warmth in the warmth, and alternately arranging the preset number of colors which are sequentially arranged in the warmth;
and/or setting a preset number of colors in the cold tone, which are sequentially arranged according to the coldness, and alternately arranging the preset number of colors in the cold tone, which are sequentially arranged;
and/or setting a first preset number of colors in the warm tone, which are sequentially arranged according to the warm degree, setting a second preset number of colors in the cold tone, which are sequentially arranged according to the cold degree, and performing alternate arrangement on the first preset number of colors in the warm tone and the second preset number of colors in the cold tone, which are sequentially arranged, so as to form the preset color combination.
Optionally, the step of obtaining the trend graph specifically includes:
acquiring all trend graphs in a target webpage;
the identifying the number of the lines in the trend graph specifically comprises the following steps:
identifying a number of lines in at least a portion of the spark line graph;
after color matching the wire, the method further comprises:
and displaying the trend graph after the color matching of the lines in the browser.
Optionally, after the obtaining all the trend graphs in the target webpage, the method further includes:
Screening a first trend chart and a second trend chart from all the trend charts, wherein the first trend chart keeps original color matching;
the identifying the number of the lines in the trend graph specifically comprises the following steps:
the number of lines in the second spark line is identified.
Optionally, the method further comprises at least one of the following:
setting or adjusting the background color, the scale line color and/or the auxiliary line color of a part of the trend graph;
color matching is carried out on part of the trend graph according to a preset color matching rule;
performing independent color matching treatment on partial lines in the partial trend graph;
and carrying out independent color matching treatment on partial line segments in partial lines in the partial trend graph.
Optionally, the method further comprises at least one of the following:
processing the saturation of the first preset trend graph;
performing independent color matching treatment on the abnormal wiring in the partial trend graph;
the same color matching process is carried out on the associated trend graph.
Optionally, the method further comprises:
the color of the lines in at least part of the spark line is modified.
Optionally, the processing the second color to obtain a third color specifically includes:
and processing the transparency of the second color to obtain a third color.
In a second aspect, the present application provides a trend chart color matching device, including:
the acquisition module is used for acquiring the trend graph and judging whether the lines in the trend graph have preset color;
the processing module is used for matching colors of the lines in the trend graph according to the preset color extraction when the lines in the trend graph have the preset color extraction, and identifying the number of the lines in the trend graph when the lines in the trend graph do not have the preset color extraction;
the first color matching module is used for acquiring first colors which are the same as the lines in number and are sequentially arranged from the preset color combinations when the number of the lines is smaller than or equal to the number of the colors in the preset color combinations, and matching colors of the lines according to the first colors;
the second color matching module is used for calculating the difference value between the number of the lines and the number of the colors in the preset color combination when the number of the lines is larger than the number of the colors in the preset color combination, acquiring second colors which are the same as the difference value and are sequentially arranged from the preset color combination, processing the second colors to obtain third colors, matching colors according to the colors sequentially arranged in the preset color combination as part of the lines in the trend graph, and matching colors according to the third colors as the rest lines in the trend graph;
The preset color combinations are obtained by alternately arranging a preset number of colors in warm tone according to warmth, and/or by alternately arranging a preset number of colors in cold tone according to coldness, and/or by alternately arranging a first preset number of colors in warm tone according to warmth and a second preset number of colors in cold tone according to coldness.
Optionally, the apparatus further includes:
a preset module for forming a preset color combination by at least one of the following ways;
setting a preset number of colors which are sequentially arranged according to warmth in the warmth, and alternately arranging the preset number of colors which are sequentially arranged in the warmth;
and/or setting a preset number of colors in the cold tone, which are sequentially arranged according to the coldness, and alternately arranging the preset number of colors in the cold tone, which are sequentially arranged;
and/or setting a first preset number of colors in the warm tone, which are sequentially arranged according to the warm degree, setting a second preset number of colors in the cold tone, which are sequentially arranged according to the cold degree, and performing alternate arrangement on the first preset number of colors in the warm tone and the second preset number of colors in the cold tone, which are sequentially arranged, so as to form the preset color combination.
Alternatively to this, the method may comprise,
the acquisition module is specifically used for acquiring all trend graphs in the target webpage;
the processing module is specifically configured to match colors of lines in a trend graph with preset color extraction according to the preset color extraction, and identify the number of the lines in the trend graph with the preset color extraction;
the apparatus further comprises:
and the presentation module is used for presenting the trend graph after the color matching of the lines in the browser.
Optionally, the apparatus further includes:
the independent configuration submodule is used for setting or adjusting the background color, the scale line color and/or the auxiliary line color of the partial trend graph, carrying out color matching on the partial trend graph according to a preset color matching rule, carrying out independent color matching treatment on partial lines in the partial trend graph, and carrying out independent color matching treatment on partial line segments in the partial lines in the partial trend graph.
Optionally, the apparatus further includes:
the key chart and key data sub-module is used for processing the saturation of the first preset trend chart;
the abnormal data sub-module is used for performing independent color matching treatment on abnormal wires in part of the trend graphs;
and the associated combination sub-module is used for carrying out the same color matching treatment on the associated trend graphs.
In a third aspect, the present application provides an electronic device comprising: a memory and a processor;
the memory is used for storing instructions; the processor is configured to invoke instructions in the memory to perform the spark plug color matching method of the first aspect and any of the possible designs of the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium having stored therein computer instructions which, when executed by at least one processor of an electronic device, perform the spark plug matching method of the first aspect and any one of the possible designs of the first aspect.
In a fifth aspect, the present application provides a computer program product comprising computer instructions which, when executed by at least one processor of an electronic device, perform the spark plug color matching method of the first aspect and any of the possible designs of the first aspect.
The trend graph color matching method, device, equipment and medium provided by the application are used for acquiring the trend graph, judging whether the lines in the trend graph have preset color extraction or not, if so, matching the colors of the lines in the trend graph according to the preset color extraction, and if not, identifying the number of the lines in the trend graph. When the number of the lines is smaller than or equal to the number of the colors in the preset color combination, first colors which are the same as the number of the lines and are sequentially arranged are obtained from the preset color combination, and the lines sequentially arranged in the trend graph are sequentially subjected to color matching according to the first colors. When the number of the lines is larger than the number of the colors in the preset color combination, calculating the difference between the number of the lines and the number of the colors in the preset color combination, obtaining second colors which are the same as the difference in number and are sequentially arranged from the preset color combination, processing the second colors to obtain third colors, sequentially carrying out color matching according to the fact that the sequentially arranged colors in the preset color combination are part of the sequentially arranged lines in the trend graph, and sequentially carrying out color matching according to the fact that the third colors are the rest of the sequentially arranged lines in the trend graph. The preset color combinations are obtained by alternately arranging the colors which are sequentially arranged according to the warmth in the warm tone, and/or are obtained by alternately arranging the preset number of the colors which are sequentially arranged according to the coolness in the cool tone, and/or are obtained by alternately arranging the preset first number of the colors which are sequentially arranged according to the warmth in the warm tone and the second preset number of the colors which are sequentially arranged according to the coolness in the warm tone, so that the color values between adjacent colors in the preset color combinations are larger, the situation that the colors with the same color value appear in the trend graph can be reduced, a user can quickly and clearly identify required information, and the situation of information error analysis and judgment is reduced.
Drawings
In order to more clearly illustrate the application or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a trend chart color matching method according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for matching colors of a trend chart according to an embodiment of the present application;
FIG. 3 is a flowchart of a trend chart color matching method according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a trend chart color matching device according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a trend chart color matching device according to an embodiment of the present application;
fig. 6 is a schematic hardware structure of an electronic device according to an embodiment of the application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
As described in the background art, when the number of lines in the data chart is excessive, for example, when the number of lines in the stock analysis-related trend chart is large, it is difficult for people to quickly recognize the required information, resulting in erroneous analysis and judgment of the information. For example, if the computer does not make a reasonable color value arrangement in advance for this aspect when the number of lines in the trend graph is too large, visually similar color values will appear in large numbers, and the line confusion combination results in the user failing to quickly recognize the required data, resulting in a large number of erroneous analyses and judgments.
To solve the problem of difficulty in analyzing user data or visual fatigue, the color of the line in the trend graph can be highlighted by adopting dark color or black color as the background color of the data graph in the night mode of the system. An amplifying function can be added to the trend graph to facilitate the user to view the details of the trend graph.
But none of these methods can thoroughly solve the problem of the user distinguishing the different colors of the lines in the data chart. And the line color of the trend graph is random at present, and the line color of each trend graph is not classified or defined in detail, so that the same color value is frequently generated in the trend graph, and the judgment of a user on data is disturbed.
In view of the above problems, the present application provides a trend chart color matching method, when there is no preset color taking for the lines in the trend chart, the number of the lines in the trend chart is identified, when the number of the lines is less than or equal to the number of colors in a preset color combination, the lines are color-matched according to the first colors sequentially arranged in the preset color combination, when the number of the lines is greater than the number of colors in the preset color combination, part of the colors in the preset color combination are processed to obtain a third color, the part of the lines are color-matched according to the colors in the preset color combination, and the rest of the lines are color-matched according to the third color. The color value difference between adjacent colors in the preset color combination is larger, so that a user can quickly and clearly identify the required information.
The technical scheme of the application is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 1 shows a flowchart of a trend chart color matching method according to an embodiment of the present application. As shown in fig. 1, with the electronic device as an execution body, the method of the present embodiment may include the following steps:
S101, acquiring a trend graph, and judging whether lines in the trend graph have preset color.
Alternatively, the trend graph may be a trend graph related to stock analysis, or may be another trend graph.
After the trend graph is acquired, whether the lines in the trend graph have preset color extraction or not is judged, for example, whether a request for color matching of the lines according to the preset color extraction or not is received. The preset color may comprise a plurality of different colors.
When the line in the trend chart has the preset color, step S102 is executed, and when the color in the trend chart does not have the preset color, step S103 is executed.
S102, color matching is carried out on the lines in the trend graph according to preset color taking.
S103, identifying the number of lines in the trend graph.
Alternatively, the number of lines in the spark line may be identified based on the type of legend element in the spark line, and the number of each type. The number of lines in the trend graph may also be identified by the image recognition software.
And S104, when the number of the lines is smaller than or equal to the number of the colors in the preset color combination, acquiring first colors which are the same as the number of the lines and are sequentially arranged from the preset color combination, and carrying out color matching on the lines according to the first colors.
When the number of the lines is less than or equal to the number of the colors in the preset color combinations, the lines can be colored according to the colors in the preset color combinations, and the preset color combinations are obtained by alternately arranging the preset number of the colors sequentially arranged according to warmth in the warm tone, and/or by alternately arranging the preset number of the colors sequentially arranged according to coldness in the cool tone, and/or by alternately arranging the first preset number of the colors sequentially arranged according to warmth in the warm tone and the second preset number of the colors sequentially arranged according to coldness in the cool tone. Therefore, in the first colors which are acquired from the preset color combinations and have the same number as the lines and are sequentially arranged, the color value difference between the adjacent colors is larger, and when the lines sequentially arranged in the trend graph are sequentially color-matched according to the first colors, a user can quickly and clearly identify required information.
Alternatively, the lines sequentially arranged in the trend graph may be sequentially color-matched in the order from top to bottom or from bottom to top by the first color. Because the first color is the color sequentially arranged in the preset color combination, when the lines in the trend graph are sequentially color-matched from top to bottom or from bottom to top through the first color, the color value difference between the colors of the adjacent lines is larger, and the situation that the user is influenced in recognition of the lines, judgment of data and the like when the color value difference between the color of the adjacent lines is smaller is avoided.
And S105, when the number of the lines is greater than the number of colors in the preset color combination, calculating the difference between the number of the lines and the number of the colors in the preset color combination, acquiring second colors which are the same as the difference in number and are sequentially arranged from the preset color combination, processing the second colors to acquire third colors, performing color matching according to the colors sequentially arranged in the preset color combination as part of the lines in the trend graph, and performing color matching according to the third colors as the rest of the lines in the trend graph.
When the number of the lines is larger than the number of colors in the preset color combination, if the colors in the preset color combination are used for matching colors for all the lines, the colors of the lines can have the same color value, and the user is influenced to acquire data and analyze the data. Therefore, color matching can be performed by presetting the colors sequentially arranged in the color combinations to be the partial lines sequentially arranged in the trend chart. For the residual lines sequentially arranged in the trend graph, partial colors in the preset color combinations can be processed, colors are matched for the residual lines sequentially arranged in the trend graph through the processed colors, specifically, the difference value between the number of the lines and the number of the colors in the preset color combinations is calculated, the second colors which are the same as the difference value in number and are sequentially arranged are obtained from the preset color combinations, the third colors are obtained after the second colors are processed, and then the colors are matched for the partial lines sequentially arranged in the trend graph according to the colors sequentially arranged in the preset color combinations, and the residual lines sequentially arranged in the trend graph are matched for the colors sequentially according to the third colors. Because the color values of adjacent colors in the preset color combination have larger differences, the color values of the adjacent colors in the third color obtained after the second color is processed by the same processing method have larger differences, so that the color matching is carried out according to the colors which are sequentially arranged in the preset color combination as part of lines in the trend graph, and the color difference between the colors of the adjacent lines in the trend graph is larger after the color matching is carried out according to the third color as the rest of lines in the trend graph, and the recognition accuracy of the user to the lines is improved.
In practical application, the colors sequentially arranged in the preset color combinations can be used for sequentially carrying out color matching on part of lines in the trend graph from top to bottom, and the colors sequentially arranged in the third color are used for sequentially carrying out color matching on the rest of lines in the trend graph from top to bottom. And the color sequentially arranged in the third color is that the rest lines in the trend graph are sequentially color-matched in the order from bottom to top.
According to the trend graph color matching method provided by the application, when the number of lines is smaller than or equal to the number of colors in the preset color combination, the first colors which are the same as the number of the lines and are sequentially arranged are obtained from the preset color combination, and the color matching is sequentially carried out on the lines sequentially arranged in the trend graph according to the first colors. When the number of the lines is larger than the number of the colors in the preset color combination, calculating the difference between the number of the lines and the number of the colors in the preset color combination, obtaining second colors which are the same as the difference in number and are sequentially arranged from the preset color combination, processing the second colors to obtain third colors, sequentially carrying out color matching according to the fact that the sequentially arranged colors in the preset color combination are part of the sequentially arranged lines in the trend graph, and sequentially carrying out color matching according to the fact that the third colors are the rest of the sequentially arranged lines in the trend graph. The preset color combinations are obtained by alternately arranging the colors which are sequentially arranged according to the warmth in the warm tone, or by alternately arranging the preset number of colors which are sequentially arranged according to the coolness in the cool tone, or by alternately arranging the preset first number of colors which are sequentially arranged according to the warmth in the warm tone and the second preset number of colors which are sequentially arranged according to the coolness in the warm tone, the color values between the adjacent colors in the preset color combinations are greatly different, and the situation that the colors with the same color value appear in the trend graph can be reduced, so that a user can quickly and clearly identify required information, and the situation of information error analysis and judgment is reduced.
Fig. 2 shows a flowchart of a trend chart color matching method according to an embodiment of the present application. As shown in fig. 2, with the electronic device as an execution body, the method of the present embodiment may include the following steps:
s201, forming a preset color combination.
The preset color combination can be a warm color combination, a cold color combination, or a warm color and cold color combination (warm-cold color combination). Thus, a warm tone color combination, a cool tone color combination, and a cool and warm tone color combination can be preset. And then, when the color matching is required to be carried out on the lines in the trend graph through the colors in the preset color combination, the color matching is carried out on the lines in the trend graph by acquiring the colors from the warm color combination, the cold color combination or the cold and hot color combination according to the requirements. For example, industries such as science, technology, energy, electronics, manufacturing and the like select cold color and color combinations, and industries such as consumer, finance, service and the like select warm color and color combinations. The warm color can be red, orange or yellow. The cold color can be blue, green or brown.
In some embodiments, a preset number of colors in the warm tone are set, wherein the preset number of colors in the warm tone are sequentially arranged according to the warm tone, and the preset number of colors in the warm tone are alternately arranged to form a preset color combination. Specifically, a preset number of warm tone colors can be selected, and the preset number of warm tone colors are sequentially arranged according to the warmth from high to low, or the preset number of warm tone colors are sequentially arranged according to the warmth from low to high. Then, in order to prevent the colors among the lines from being too similar to interfere with the user, the preset number of colors which are sequentially arranged are alternately arranged. The specific alternate arrangement mode can be determined according to the needs or actual conditions, and the color difference between adjacent colors can be increased as much as possible.
In practical application, 20 warm tone colors can be selected, and the 20 warm tone colors are sequentially arranged according to the order of the warmth from high to low, specifically, color 1, color 2, color 3, color 4, color 5, color 6, color 7, color 8, color 9, color 10, color 11, color 12, color 13, color 14, color 15, color 16, color 17, color 18, color 19 and color 20. The 20 colors arranged in sequence are alternately arranged, for example, the new sequence is color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, color 10 and color 20.
In other embodiments, a preset number of hues in the cold hues are arranged in sequence according to the coldness, and the preset number of colors in the cold hues are arranged in sequence in a penetrating way to form a preset color combination. Specifically, a preset number of cold color tones can be selected, and the preset number of cold color tones are sequentially arranged according to the degree of coldness from high to low, or the preset number of cold color tones are sequentially arranged according to the degree of coldness from low to high. And then, the preset number of colors which are sequentially arranged are alternately arranged.
In still other embodiments, a first predetermined number of colors in the warm tone are set, the second predetermined number of colors in the cool tone are set, and the first predetermined number of colors in the warm tone and the second predetermined number of colors in the cool tone are interspersed to form a predetermined color difference combination. Specifically, a first preset number of warm tone colors and a second preset number of cool tone colors are selected to obtain a preset number of colors. Then, sequentially arranging the first preset number of warm tone colors according to the order of the warmth from high to low, or sequentially arranging the first preset number of warm tone colors according to the order of the warmth from low to high; and sequentially arranging the second preset number of cold color toners according to the order of the coldness from high to low, and sequentially arranging the second preset number of cold color toners according to the order of the coldness from low to high. Then, the first preset number of warm tone colors and the second preset number of cool tone colors which are sequentially arranged are alternately arranged, the first preset number of warm tone colors can be alternately arranged according to the order of cooling and heating, the second preset number of cool tone colors can be alternately arranged after the first preset number of warm tone colors are alternately arranged, and the first preset number of warm tone colors can be alternately arranged after the second preset number of cool tone colors are alternately arranged.
S202, acquiring a trend graph, and judging whether lines in the trend graph have preset color.
If yes, step S203 is executed, and if no, step S204 is executed.
S203, color matching is carried out on the lines in the trend graph according to the preset color taking.
S204, identifying the number of lines in the trend graph.
Step S205 is performed when the number of lines is equal to or less than the number of colors in the preset color combination, and step S206 is performed when the number of lines is greater than the number of colors in the preset color combination.
And S205, when the number of the lines is smaller than or equal to the number of colors in the preset color combination, acquiring first colors which are the same as the number of the lines and are sequentially arranged from the preset color combination, and carrying out color matching on the lines according to the first colors.
For example, the colors sequentially arranged in the preset color combinations are color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, color 10, and color 20.
When the number of lines is 1, any color such as color 1, color 11, or color 6 in the preset color combination can be selected as a first color;
When the number of lines is 2, color 1, color 11, color 6, or any two adjacent colors such as color 6 and color 16 in the preset color combination can be selected as a first color;
when the number of lines is 3, color 1, color 11, color 6, or color 11, color 6, color 16, or any three adjacent colors of color 6, color 16, color 2 and the like in the preset color combination can be selected as the first color;
when the number of lines is 4, color 1, color 11, color 6, color 16, or color 11, color 6, color 16, color 2, or any four adjacent colors of color 6, color 16, color 2, color 12 and the like in preset colors can be selected as a first color;
when the number of lines is 5, any five adjacent colors of color 1, color 11, color 6, color 16, color 2, or color 11, color 6, color 16, color 2, color 12, or color 6, color 16, color 2, color 12, color 7 in the preset color combination can be selected as the first color;
when the number of lines is 6, any six adjacent colors of color 1, color 11, color 6, color 16, color 2, color 12, or color 11, color 6, color 16, color 2, color 12, color 7, or color 6, color 16, color 2, color 12, color 7, color 17 and the like in the preset color combination can be selected as the first color;
When the number of lines is 7, any seven adjacent colors of color 1, color 11, color 6, color 16, color 2, color 12, color 7, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, or color 6, color 16, color 2, color 12, color 7, color 17, color 3 and the like in the preset color combination can be selected as the first color;
when the number of lines is 8, any eight adjacent colors of color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, or color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13 and the like in the preset color combination can be selected as the first color;
when the number of lines is 9, any nine adjacent colors of color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, or line 6, line 16, line 2, line 12, line 7, line 17, line 3, line 13, line 8, and the like in the preset color combinations can be selected as the first color;
When the number of lines is 10, any ten adjacent colors of color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, or color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, etc. in the preset color combinations can be selected as the first color;
when the number of lines is 11, any eleven adjacent colors of color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, or color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, and the like in the preset color combinations can be selected as the first color;
when the number of lines is 12, any twelve adjacent colors of color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, or color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, and the like in the preset color combinations can be selected as the first color;
When the number of lines is 13, any thirteen adjacent colors of color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, or color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, and the like in the preset color combinations may be selected as the first color;
when the number of lines is 14, any fourteen adjacent colors of color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, or color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, and the like in the preset color combinations can be selected as the first color;
When the number of lines is 15, any fifteen adjacent colors in the preset color combinations, including color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, or color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, and the like can be selected as the first color;
when the number of lines is 16, any sixteen adjacent colors of color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, or color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15 in the preset color combinations can be selected as the first color;
When the number of lines is 17, any seventeen adjacent colors of color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, or color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, color 10, and the like in the preset color combinations can be selected as the first color;
when the number of lines is 18, any eighteen adjacent colors of color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, color 10, or color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, color 10, color 20 in the preset color combinations can be selected as the first color;
When the number of lines is 19, color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, color 10, or color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, color 10, color 20 in the preset color combination may be selected as the first color.
When the number of lines is 20, color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, color 10, color 20 in the preset color combination may be selected as the first color. When the number of the lines is 20, the lines from top to bottom in the trend chart are sequentially formed into a line 1, a line 2, a line 3, a line 4, a line 5, a line 6, a line 7, a line 8, a line 9, a line 10, a line 11, a line 12, a line 13, a line 14, a line 15, a line 16, a line 17, a line 18, a line 19 and a line 20, wherein the color 1 can be used as the color of the line 1, the color 2 is used as the color of the line 2, the color 3 is used as the color of the line 3, the color 4 is used as the color of the line 4, the color 5 is used as the color of the line 5, the color 6 is used as the color of the line 6, color 7 is the color of line 7, color 8 is the color of line 8, color 9 is the color of line 9, color 10 is the color of line 10, color 11 is the color of line 11, color 12 is the color of line 12, color 13 is the color of line 13, color 14 is the color of line 14, color 15 is the color of line 15, color 16 is the color of line 16, color 17 is the color of line 17, color 18 is the color of line 18, color 19 is the color of line 19, and color 20 is the color of line 20. Color 1 may be the color of line 20, color 2 may be the color of line 19, color 3 may be the color of line 18, color 4 may be the color of line 17, color 5 may be the color of line 16, color 6 may be the color of line 15, color 7 may be the color of line 14, color 8 may be the color of line 13, color 9 may be the color of line 12, color 10 may be the color of line 11, color 11 may be the color of line 10, color 12 may be the color of line 9, color 13 may be the color of line 8, color 14 may be the color of line 7, color 15 may be the color of line 6, color 16 may be the color of line 5, color 17 may be the color of line 4, color 18 may be the color of line 3, color 19 may be the color of line 2, and color 20 may be the color of line 1.
And S205, when the number of the lines is greater than the number of colors in the preset color combination, calculating the difference between the number of the lines and the number of the colors in the preset color combination, acquiring second colors which are the same as the difference in number and are sequentially arranged from the preset color combination, processing the second colors to acquire third colors, performing color matching according to the colors sequentially arranged in the preset color combination as part of the lines in the trend graph, and performing color matching according to the third colors as the rest of the lines in the trend graph.
For example, the colors sequentially arranged in the preset color combinations are color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, color 10, and color 20.
If the number of lines is 25, and the lines are sequentially recorded as lines 1 to 25, calculating the difference between the number of lines and the number of colors in the preset color combination to be 5, and obtaining 5 sequentially arranged colors from the preset color combination as the second color, for example, selecting any five adjacent colors of color 1, color 11, color 6, color 16, color 2, or color 11, color 6, color 16, color 2, color 12, or color 6, color 16, color 2, color 12, color 7, or color 16, color 2, color 12, color 7, color 17, or color 2, color 12, color 7, color 17, color and the like in the preset color combination as the second color. The transparency of the second color may then be processed to obtain a third color, e.g., color 1, color 11, color 6, color 16, color 2, designated color 1', color 11', color 6', color 16', color 2'. Color matching is performed on lines 1-20 by color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, color 10, and color 20 in sequence, and color matching is performed on lines 21-25 by color 1', color 11', color 6', color 16', and color 2'. Line 6-line 25 may also be color matched by color 1, color 11, color 6, color 16, color 2, color 12, color 7, color 17, color 3, color 13, color 8, color 18, color 4, color 14, color 9, color 19, color 5, color 15, color 10, color 20, and line 1-line 5 may be color matched by color 1', color 11', color 6', color 16', color 2'.
According to the trend graph color matching method, the preset color combination is formed in advance, so that after the trend graph is obtained, the lines in the trend graph can be matched according to the colors in the preset color combination, the color value difference between the adjacent colors in the preset color combination is large, and a user can quickly and clearly identify required information.
Fig. 3 shows a flowchart of a trend chart color matching method according to an embodiment of the present application. As shown in fig. 3, with the electronic device as an execution body, the method of the present embodiment may include the following steps:
s301, acquiring all trend graphs in the target webpage, and judging whether lines in at least the trend graphs have preset color.
The target webpage comprises one or more trend graphs, and after all the trend graphs in the target webpage are acquired, whether lines in the trend graphs have preset color extraction is judged.
Step S302 is performed for a trend graph with preset color extraction, and step S303 is performed for a trend graph without preset color extraction.
In some embodiments, after all trend graphs in the target webpage are acquired, the first trend graph and the second trend graph may be screened from all trend graphs in the target webpage, where the first trend graph is not affected by the color matching rule, the original color matching is maintained, and whether the lines in the second trend graph have preset color matching may be determined. The number of the first profiles may be one or more, and the number of the second profiles may be one or more.
S302, color matching is carried out on lines in the trend graph according to preset color taking.
Optionally, when all the trend graphs in the target webpage are screened into a first trend graph and a second trend graph, the first trend graph keeps original color matching, and when the lines in the second trend graph have preset color extraction, the lines in the trend graph are color matched according to the preset color extraction.
S303, identifying the number of lines in the trend graph.
Optionally, when all the trend graphs in the target webpage are screened into a first trend graph and a second trend graph, the first trend graph keeps original color matching, and when lines in the second trend graph have no preset color, the number of the lines in the trend graph is identified.
Step S204 is performed when the number of lines is less than or equal to the number of colors in the preset color combination, and step S205 is performed when the number of lines is greater than the number of colors in the preset color combination.
S204, when the number of the lines is smaller than or equal to the number of colors in the preset color combination, acquiring first colors which are the same as the number of the lines and are sequentially arranged from the preset color combination, and matching colors of the lines according to the first colors.
The preset color combinations are obtained by alternately arranging a preset number of colors in warm tone according to warmth, and/or by alternately arranging a preset number of colors in cold tone according to coldness, and/or by alternately arranging a first preset number of colors in warm tone according to warmth and a second preset number of colors in cold tone according to coldness.
And S305, when the number of the lines is greater than the number of colors in the preset color combination, calculating the difference between the number of the lines and the number of the colors in the preset color combination, acquiring second colors which are the same as the difference in number and are sequentially arranged from the preset color combination, processing the second colors to acquire third colors, performing color matching according to the colors sequentially arranged in the preset color combination as part of the lines in the trend graph, and performing color matching according to the third colors as the rest of the lines in the trend graph.
In some embodiments, the background color, tick mark color, and/or auxiliary line color of the partial spark plug may be set or adjusted. Such as stock market, interest rate market, only related bilateral color matching.
The partial trend graphs can be subjected to color matching according to a preset color matching rule, and a certain graph can be processed according to a special color matching rule, for example, the general color or black in a medical experiment comparison graph is used as a healthy control group, and red is used as a disease treatment group so as to highlight test data.
The color matching method can be used for carrying out independent color matching on part of lines in a part of trend graphs, namely, one or more indexes in one graph can be subjected to independent color matching, and particularly, the color matching method can be used for carrying out color matching on part of lines in the trend graphs through color matching rules, and other lines are subjected to independent color matching. For example, the median index in the commodity price trend chart needs to be treated separately as a reference, the median index can be subjected to separate color matching, and the color adopted by the separate color matching can be determined according to the need.
The method can carry out independent color matching treatment on partial line segments in partial lines in the partial trend graph, namely, can carry out independent color matching treatment on data in a certain range of a graph, and specifically, can cover the color of the line in a certain range by utilizing specific color after the color matching of the line. For example, the cold and hot false time intervals in the travel consumption trend chart are treated separately.
In some embodiments, the saturation in the first preset trend graph may be processed, for example, for a graph or line determined to be a key mark, by changing the saturation to reflect the importance of the graph or line, so that the graph or line is highlighted in all the graphs of the whole page. The first preset trend graph may be, for example, a graph determined to be a key mark.
The abnormal wiring in part of trend graphs can be subjected to independent color matching treatment, for example, for dynamically displayed data, such as real-time trend graphs of stock quotations, index monitoring and the like, the data in the graphs always fluctuate along with the fluctuation, and for some data with larger fluctuation, special color matching treatment can be performed on lines where the data outside the threshold value are located by setting a reference value and a fluctuation interval, so that the display effect is achieved.
The same color matching process can be performed on the associated trend graph, and in practical graph application, a theme is usually set forth through the combination of several graphs, and the same color matching process can be performed on the associated graph. For example, the current state of domestic aviation is illustrated by three trend charts of supply, demand and passenger transport. The lines of one of the associated trend graphs may also be colored using the derived colors of the other graph. For example, the main view of Shanghai deep Kong general is used to represent the general trend, and sub views for auxiliary purposes such as Shanghai Tong ', ' Kong Tong ' are listed below, and the sub views are derived from the colors shown in the main view, so that the sub view can bring more visual representation as a whole.
S306, presenting the trend graph after the color matching of the lines in the browser.
After the webpage is matched with the line color values preset in advance, the trend graphs containing different numbers of lines show an orderly visual angle effect.
If the lines in the partial trend graph are not satisfied, the colors of the lines in at least part of the trend graph can be modified, so that the experience and satisfaction of the user are improved.
According to the color matching method provided by the application, all trend graphs in the webpage are obtained, when no preset color is taken for the lines in at least part of the trend graphs, the number of the lines in the at least part of the trend graphs is identified, then the colors of the lines in the at least part of the trend graphs are matched by utilizing the color tone in the preset color combination, and the trend graphs after color matching are displayed in the browser after the color matching is completed, so that an ordered visual angle effect can be displayed.
Fig. 4 is a schematic structural diagram of a trend chart color matching device according to an embodiment of the present application, as shown in fig. 4, a trend chart color matching device 10 according to the present embodiment is used to implement operations corresponding to electronic equipment in any of the above method embodiments, where the trend chart color matching device 10 according to the present embodiment includes:
the acquisition module 11 is used for acquiring a trend graph and judging whether lines in the trend graph have preset color;
the processing module 12 is configured to match colors of the lines in the trend graph according to the preset color extraction when the lines in the trend graph have the preset color extraction, and identify the number of the lines in the trend graph when the lines in the trend graph have no preset color extraction;
the first color matching module 13 is configured to obtain, from a preset color combination, first colors which are the same as the number of the lines and are sequentially arranged when the number of the lines is less than or equal to the number of colors in the preset color combination, and match colors of the lines according to the first colors;
the second color matching module 14 is configured to calculate a difference between the number of lines and the number of colors in the preset color combination when the number of lines is greater than the number of colors in the preset color combination, obtain second colors which are the same as the difference in number and are sequentially arranged from the preset color combination, process the second colors to obtain third colors, match colors according to the colors sequentially arranged in the preset color combination as part of the lines in the trend chart, and match colors according to the third colors as the rest of the lines in the trend chart;
The preset color combinations are obtained by alternately arranging a preset number of colors which are sequentially arranged according to warmth in the warm tone, and/or are obtained by alternately arranging a preset number of colors which are sequentially arranged according to coldness in the cool tone, and/or are obtained by alternately arranging a first preset number of colors which are sequentially arranged according to warmth in the warm tone and a second preset number of colors which are sequentially arranged according to coldness in the cool tone.
Optionally, as shown in fig. 5, the trend chart color matching device includes a preset module 15, configured to form a preset color combination in at least one of the following manners; setting a preset number of colors which are sequentially arranged according to warmth in the warmth, and alternately arranging the preset number of colors which are sequentially arranged in the warmth; and/or setting a preset number of colors in the cold tone, which are sequentially arranged according to the coldness, and alternately arranging the preset number of colors in the cold tone, which are sequentially arranged; and/or setting a first preset number of colors in the warm tone, which are sequentially arranged according to the warm degree, setting a second preset number of colors in the cold tone, which are sequentially arranged according to the cold degree, and alternately arranging the first preset number of colors in the warm tone and the second preset number of colors in the cold tone, which are sequentially arranged, to form a preset color combination.
Optionally, the acquiring module 11 is specifically configured to acquire all trend graphs in the target webpage; the processing module 12 is specifically configured to match colors of lines in the trend graph according to a preset color for the trend graph with the preset color, and identify the number of the lines in the trend graph for the trend graph with the preset color; the apparatus further comprises: and the presentation module is used for presenting the trend graph after the color matching of the lines in the browser.
Optionally, the apparatus further comprises: the independent configuration submodule is used for setting or adjusting the background color, the scale line color and/or the auxiliary line color of the partial trend graph, carrying out color matching on the partial trend graph according to a preset color matching rule, carrying out independent color matching treatment on partial lines in the partial trend graph, and carrying out independent color matching treatment on partial line segments in the partial lines in the partial trend graph.
Optionally, the apparatus further comprises: the key chart and key data sub-module is used for processing the saturation of the first preset trend chart; the abnormal data sub-module is used for performing independent color matching treatment on abnormal wires in part of the trend graphs; and the associated combination sub-module is used for carrying out the same color matching treatment on the associated trend graphs.
The trend chart color matching device 10 provided in the embodiment of the present application may execute the above method embodiment, and the specific implementation principle and technical effects thereof may be referred to the above method embodiment, which is not described herein again.
Fig. 6 shows a schematic hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 6, the electronic device 20, configured to implement operations corresponding to the electronic device in any of the above method embodiments, the electronic device 20 of this embodiment may include: a memory 21, a processor 22 and a communication interface 23.
A memory 21 for storing computer instructions. The Memory 21 may include a high-speed random access Memory (Random Access Memory, RAM), and may further include a Non-Volatile Memory (NVM), such as at least one magnetic disk Memory, and may also be a U-disk, a removable hard disk, a read-only Memory, a magnetic disk, or an optical disk.
A processor 22 for executing computer instructions stored in the memory to implement the spark plug color matching method of the above embodiment. Reference may be made in particular to the relevant description of the embodiments of the method described above. The processor 22 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
Alternatively, the memory 21 may be separate or integrated with the processor 22.
The communication interface 23 may be connected to the processor 22. The processor 22 may control the communication interface 23 to perform the functions of receiving and transmitting signals.
The electronic device provided in this embodiment may be used to execute the foregoing trend chart color matching method, and its implementation manner and technical effects are similar, and this embodiment will not be repeated here.
The present application also provides a computer readable storage medium having stored therein computer instructions which, when executed by a processor, are adapted to carry out the methods provided by the various embodiments described above.
The present application also provides a computer program product comprising computer instructions stored in a computer readable storage medium. The computer instructions may be read from a computer-readable storage medium by at least one processor of the device, and executed by the at least one processor, cause the device to implement the methods provided by the various embodiments described above.
The embodiment of the application also provides a chip, which comprises a memory and a processor, wherein the memory is used for storing computer instructions, and the processor is used for calling and running the computer instructions from the memory, so that a device provided with the chip executes the method in various possible implementation manners.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same. Although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments may be modified or some or all of the technical features may be replaced with equivalents. Such modifications and substitutions do not depart from the spirit of the application.

Claims (15)

1. A method of matching a trend map, the method comprising:
acquiring a trend graph, and judging whether lines in the trend graph have preset color;
if yes, matching colors of the lines in the trend graph according to the preset color extraction, otherwise, identifying the number of the lines in the trend graph;
when the number of the lines is smaller than or equal to the number of colors in a preset color combination, acquiring first colors which are the same as the number of the lines and are sequentially arranged from the preset color combination, and matching colors of the lines according to the first colors;
when the number of the lines is larger than the number of the colors in the preset color combination, calculating a difference value between the number of the lines and the number of the colors in the preset color combination, acquiring second colors which are the same as the difference value in number and are sequentially arranged from the preset color combination, processing the second colors to obtain third colors, and performing color matching for part of the lines in the trend graph according to the colors sequentially arranged in the preset color combination and performing color matching for the rest lines in the trend graph according to the third colors;
The preset color combinations are obtained by alternately arranging a preset number of colors in warm tone according to warmth, and/or by alternately arranging a preset number of colors in cold tone according to coldness, and/or by alternately arranging a first preset number of colors in warm tone according to warmth and a second preset number of colors in cold tone according to coldness.
2. The method according to claim 1, wherein the method further comprises: forming a preset color combination by at least one of the following;
setting a preset number of colors which are sequentially arranged according to warmth in the warmth, and alternately arranging the preset number of colors which are sequentially arranged in the warmth;
and/or setting a preset number of colors in the cold tone, which are sequentially arranged according to the coldness, and alternately arranging the preset number of colors in the cold tone, which are sequentially arranged;
and/or setting a first preset number of colors in the warm tone, which are sequentially arranged according to the warm degree, setting a second preset number of colors in the cold tone, which are sequentially arranged according to the cold degree, and performing alternate arrangement on the first preset number of colors in the warm tone and the second preset number of colors in the cold tone, which are sequentially arranged, so as to form the preset color combination.
3. The method according to claim 1, wherein the acquiring the trend graph specifically comprises:
acquiring all trend graphs in a target webpage;
the identifying the number of the lines in the trend graph specifically comprises the following steps:
identifying a number of lines in at least a portion of the spark line graph;
after color matching the wire, the method further comprises:
and displaying the trend graph after the color matching of the lines in the browser.
4. The method of claim 3, wherein after the obtaining all the profiles in the target web page, the method further comprises:
screening a first trend chart and a second trend chart from all the trend charts, wherein the first trend chart keeps original color matching;
the identifying the number of the lines in the trend graph specifically comprises the following steps:
the number of lines in the second spark line is identified.
5. A method according to claim 3, further comprising at least one of:
setting or adjusting the background color, the scale line color and/or the auxiliary line color of a part of the trend graph;
color matching is carried out on part of the trend graph according to a preset color matching rule;
performing independent color matching treatment on partial lines in the partial trend graph;
And carrying out independent color matching treatment on partial line segments in partial lines in the partial trend graph.
6. A method according to claim 3, further comprising at least one of:
processing the saturation of the first preset trend graph;
performing independent color matching treatment on the abnormal wiring in the partial trend graph;
the same color matching process is carried out on the associated trend graph.
7. The method according to any one of claims 1-6, further comprising:
the color of the lines in at least part of the spark line is modified.
8. The method according to any one of claims 1-6, wherein said processing said second color to obtain a third color, comprises:
and processing the transparency of the second color to obtain a third color.
9. A spark line color matching device, comprising:
the acquisition module is used for acquiring the trend graph and judging whether the lines in the trend graph have preset color;
the processing module is used for matching colors of the lines in the trend graph according to the preset color extraction when the lines in the trend graph have the preset color extraction, and identifying the number of the lines in the trend graph when the lines in the trend graph do not have the preset color extraction;
The first color matching module is used for acquiring first colors which are the same as the lines in number and are sequentially arranged from the preset color combinations when the number of the lines is smaller than or equal to the number of the colors in the preset color combinations, and matching colors of the lines according to the first colors;
the second color matching module is used for calculating the difference value between the number of the lines and the number of the colors in the preset color combination when the number of the lines is larger than the number of the colors in the preset color combination, acquiring second colors which are the same as the difference value and are sequentially arranged from the preset color combination, processing the second colors to obtain third colors, matching colors according to the colors sequentially arranged in the preset color combination as part of the lines in the trend graph, and matching colors according to the third colors as the rest lines in the trend graph;
the preset color combinations are obtained by alternately arranging a preset number of colors in warm tone according to warmth, and/or by alternately arranging a preset number of colors in cold tone according to coldness, and/or by alternately arranging a first preset number of colors in warm tone according to warmth and a second preset number of colors in cold tone according to coldness.
10. The apparatus of claim 9, wherein the apparatus further comprises:
a preset module for forming a preset color combination by at least one of the following ways;
setting a preset number of colors which are sequentially arranged according to warmth in the warmth, and alternately arranging the preset number of colors which are sequentially arranged in the warmth;
and/or setting a preset number of colors in the cold tone, which are sequentially arranged according to the coldness, and alternately arranging the preset number of colors in the cold tone, which are sequentially arranged;
and/or setting a first preset number of colors in the warm tone, which are sequentially arranged according to the warm degree, setting a second preset number of colors in the cold tone, which are sequentially arranged according to the cold degree, and performing alternate arrangement on the first preset number of colors in the warm tone and the second preset number of colors in the cold tone, which are sequentially arranged, so as to form the preset color combination.
11. The apparatus of claim 9, wherein the device comprises a plurality of sensors,
the acquisition module is specifically used for acquiring all trend graphs in the target webpage;
the processing module is specifically configured to match colors of lines in a trend graph with preset color extraction according to the preset color extraction, and identify the number of the lines in the trend graph with the preset color extraction;
The apparatus further comprises:
and the presentation module is used for presenting the trend graph after the color matching of the lines in the browser.
12. The apparatus of claim 11, wherein the apparatus further comprises:
the independent configuration submodule is used for setting or adjusting the background color, the scale line color and/or the auxiliary line color of the partial trend graph, carrying out color matching on the partial trend graph according to a preset color matching rule, carrying out independent color matching treatment on partial lines in the partial trend graph, and carrying out independent color matching treatment on partial line segments in the partial lines in the partial trend graph.
13. The apparatus of claim 11, wherein the apparatus further comprises:
the key chart and key data sub-module is used for processing the saturation of the first preset trend chart;
the abnormal data sub-module is used for performing independent color matching treatment on abnormal wires in part of the trend graphs;
and the associated combination sub-module is used for carrying out the same color matching treatment on the associated trend graphs.
14. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer instructions;
the processor executes the computer instructions stored in the memory to implement the spark plug color matching method of any one of claims 1 to 8.
15. A computer readable storage medium having stored therein computer instructions which, when executed by a processor, are adapted to carry out the spark plug color matching method of any one of claims 1 to 8.
CN202310748788.3A 2023-06-21 2023-06-21 Method, device, equipment and medium for matching trend chart Pending CN116883519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310748788.3A CN116883519A (en) 2023-06-21 2023-06-21 Method, device, equipment and medium for matching trend chart

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310748788.3A CN116883519A (en) 2023-06-21 2023-06-21 Method, device, equipment and medium for matching trend chart

Publications (1)

Publication Number Publication Date
CN116883519A true CN116883519A (en) 2023-10-13

Family

ID=88265280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310748788.3A Pending CN116883519A (en) 2023-06-21 2023-06-21 Method, device, equipment and medium for matching trend chart

Country Status (1)

Country Link
CN (1) CN116883519A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090114554A (en) * 2008-04-30 2009-11-04 김창래 Polyhedrons with multicolored sides arrayed display
US20130207991A1 (en) * 2010-12-03 2013-08-15 Brother Kogyo Kabushiki Kaisha Wearable displays methods, and computer-readable media for determining display conditions
US20130336584A1 (en) * 2012-06-19 2013-12-19 Konica Minolta, Inc. Image Procesing Apparatus and Image Compressing Method
US20150081685A1 (en) * 2011-11-04 2015-03-19 BigML, Inc. Interactive visualization system and method
US20170301024A1 (en) * 2009-03-20 2017-10-19 Pankaj B. Dalal Multidimensional risk analysis
CN110822308A (en) * 2019-11-16 2020-02-21 智然能科技(惠州)有限公司 Manufacturing method of multi-color-temperature electrodeless dimming and color-mixing COB lamp
CN114022581A (en) * 2021-08-31 2022-02-08 度小满科技(北京)有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN115731320A (en) * 2021-08-31 2023-03-03 华为云计算技术有限公司 Color matching method, device and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090114554A (en) * 2008-04-30 2009-11-04 김창래 Polyhedrons with multicolored sides arrayed display
US20170301024A1 (en) * 2009-03-20 2017-10-19 Pankaj B. Dalal Multidimensional risk analysis
US20130207991A1 (en) * 2010-12-03 2013-08-15 Brother Kogyo Kabushiki Kaisha Wearable displays methods, and computer-readable media for determining display conditions
US20150081685A1 (en) * 2011-11-04 2015-03-19 BigML, Inc. Interactive visualization system and method
US20130336584A1 (en) * 2012-06-19 2013-12-19 Konica Minolta, Inc. Image Procesing Apparatus and Image Compressing Method
CN110822308A (en) * 2019-11-16 2020-02-21 智然能科技(惠州)有限公司 Manufacturing method of multi-color-temperature electrodeless dimming and color-mixing COB lamp
CN114022581A (en) * 2021-08-31 2022-02-08 度小满科技(北京)有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN115731320A (en) * 2021-08-31 2023-03-03 华为云计算技术有限公司 Color matching method, device and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
(英)罗斯·霍迪诺特,马克·鲍尔: "《基于信息技术的教学新模式研究》", vol. 1, 31 May 2006, 中国摄影出版传媒有限责任公司(中国摄影出版社), pages: 147 - 151 *
(英)罗斯·霍迪诺特,马克·鲍尔: "《风景摄影:52个任务清单》", vol. 1, 中国摄影出版传媒有限责任公司(中国摄影出版社), pages: 13 - 15 *

Similar Documents

Publication Publication Date Title
US20210342961A1 (en) Smart building score interface
CN108320312B (en) Image color matching method and device and computer terminal
Mittelstädt et al. Methods for compensating contrast effects in information visualization
JP4029593B2 (en) Process analysis method and information system
JPWO2008156147A1 (en) Method for creating paint color database, search method using the database, and system, program and recording medium thereof
CN108961250B (en) Target object statistical method, device, terminal and storage medium
CN108955901A (en) A kind of infrared measurement of temperature method, system and terminal device
CN112381800B (en) Wire diameter abnormity identification method and device, electronic equipment and computer readable storage medium
CN103810320A (en) Multi objective design selection method and system
CN112750162A (en) Target identification positioning method and device
CN106934760A (en) A kind of high-spectral data color visualization method towards classification
CN104240228A (en) Detecting method and device for specific pictures applied to website
CN116883519A (en) Method, device, equipment and medium for matching trend chart
EP3790016A1 (en) Disease network construction method considering stratification according to confounding variable of cohort data and occurrence time between diseases, method for visualizing same, and computer-readable recording medium recording same
CN104657465B (en) The display control method and device of a kind of webpage
CN106445501A (en) Display method of notification bar, and terminal
CN112767103A (en) Financial data analysis method and device and electronic equipment
CN115841731B (en) Infrared monitoring park fire early warning method
CN107194944A (en) Forest fire image dividing method and device
CN115965646A (en) Region division method and device, computer equipment and computer readable storage medium
CN115713345A (en) Variable screening method and device, nonvolatile storage medium and processor
CN107977549A (en) A kind of skin care matching process and terminal based on multigroup of skin
CN115099962A (en) Financial analysis suggestion method and system for position holding stock
CN101496392A (en) Method for selecting an image for insertion into a document
JP6995701B2 (en) System cross-section data management device and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination