CN107122188B - Method and device for generating project progress bar image - Google Patents

Method and device for generating project progress bar image Download PDF

Info

Publication number
CN107122188B
CN107122188B CN201710283133.8A CN201710283133A CN107122188B CN 107122188 B CN107122188 B CN 107122188B CN 201710283133 A CN201710283133 A CN 201710283133A CN 107122188 B CN107122188 B CN 107122188B
Authority
CN
China
Prior art keywords
progress bar
event
milestone
value
landmark
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.)
Active
Application number
CN201710283133.8A
Other languages
Chinese (zh)
Other versions
CN107122188A (en
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201710283133.8A priority Critical patent/CN107122188B/en
Publication of CN107122188A publication Critical patent/CN107122188A/en
Application granted granted Critical
Publication of CN107122188B publication Critical patent/CN107122188B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Game Theory and Decision Science (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method for generating a project progress bar image, which comprises the following steps: receiving phase data and milestone data for the project; according to the starting date and the ending date of each sub-phase event, determining the scale distribution of the progress bar and the scale interval of each sub-phase event in the progress bar; determining the display position of each landmark event on the progress bar according to the milestone data and the scale distribution of the progress bar; and rendering and generating an image of the progress bar according to the scale distribution of the progress bar, the scale interval of each sub-phase event in the progress bar and the display position of each symbolic event on the progress bar. The invention also discloses a device for generating the project progress bar image. By adopting the embodiment of the invention, the progress bar image of the project can be automatically generated, and the reasonability of generating the progress bar image of the project is ensured.

Description

Method and device for generating project progress bar image
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for generating a project progress bar image.
Background
In the process and management of projects, management personnel need to know the progress of the projects from a macroscopic view, and time is a good dimension. Time, as a dimension of project progress, typically involves three types of progress markers: phase, milestone, version.
Phases are typically long-lived. For game items, the DEMO stage, the standing stage and the development stage can be followed by different resources such as personnel, funds and the like. Therefore, the stage can enable the manager to roughly know the progress of the project, and further adjust the corresponding docking resource amount.
During the project process, managers can establish different stage milestones. Particularly, when the project enters a normal development and operation stage, the process is a long process, and the milestone can be used as a project stage task, so that the manager can be well helped to confirm whether the project is reasonably developed, and meanwhile, the project can also be used as a product stage result.
However, the prior art does not provide a specific way for automatically generating a reasonably displayed project progress bar according to the input project information parameters, and the reasonableness of the composition of the progress bar cannot be automatically adjusted.
Disclosure of Invention
According to the method and the device for generating the project progress bar image, provided by one embodiment of the invention, the project progress bar image can be automatically generated, and the reasonability of generating the project progress bar image is ensured.
In one aspect, an embodiment of the present invention provides a method for generating a project progress bar image, including:
receiving phase data and milestone data for the project; the phase data includes each sub-phase event of the project and a start date and an end date of the each sub-phase event; the milestone data comprises each flagged event of the project and a completion date for the each flagged event;
according to the starting date and the ending date of each sub-phase event, determining the scale distribution of the progress bar and the scale interval of each sub-phase event in the progress bar;
determining the display position of each landmark event on the progress bar according to the milestone data and the scale distribution of the progress bar;
and automatically rendering and generating an image of the progress bar according to the scale distribution of the progress bar, the scale interval of each sub-phase event in the progress bar and the display position of each symbolic event on the progress bar.
In another aspect, an embodiment of the present invention provides an apparatus for generating an image of a project progress bar, including:
a data receiving module for receiving phase data and milestone data for the project; the phase data includes each sub-phase event of the project and a start date and an end date of the each sub-phase event; the milestone data comprises each flagged event of the project and a completion date for the each flagged event;
the scale division module is used for determining the scale distribution of the progress bar and the scale interval of each sub-phase event in the progress bar according to the starting date and the ending date of each sub-phase event;
the mark display determining module is used for determining the display position of each marking event on the progress bar according to the milestone data and the scale distribution of the progress bar; and the number of the first and second groups,
and the image rendering generation module is used for automatically rendering and generating the image of the progress bar according to the scale distribution of the progress bar, the scale interval of each sub-phase event in the progress bar and the display position of each symbolic event on the progress bar.
The implementation of one embodiment of the invention has the following beneficial effects:
according to the method and the device for generating the project progress bar image, provided by one embodiment of the invention, the stage data and the milestone data of the project are received and analyzed to obtain the relevant parameter information of the project, and the progress bar image of the project is automatically rendered and generated according to the parameter information, so that the progress bar image of the project can be automatically generated according to the project data, the sub-stage and milestone typesetting of the progress bar are adjusted, the rationality of the generated project progress bar image is ensured, and the information display on the progress bar is prevented from being blocked.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of a method for generating a project progress bar image provided by the present invention;
FIG. 2 is a schematic diagram of one embodiment of an image of a progress bar generated by the method of generating a project progress bar image provided by the present invention;
FIG. 3 is a schematic structural diagram of an apparatus for generating a project progress bar image according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a scale division module of the apparatus for generating a project progress bar image according to the present invention;
FIG. 5 is a schematic structural diagram of a calculation and correction unit of a scale division module of the apparatus for generating an image of a project progress bar according to the present invention;
FIG. 6 is a schematic structural diagram illustrating an exemplary embodiment of a logo display determination module of an apparatus for generating a project progress bar image according to the present invention;
FIG. 7 is a schematic structural diagram of an embodiment of a display position determination unit of a logo display determination module of the apparatus for project progress bar image generation according to the present invention;
fig. 8 is a schematic structural diagram of an image rendering generation module of an apparatus for generating a project progress bar image according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, it is a schematic flow chart of an embodiment of a method for generating a project progress bar image provided by the present invention; the embodiment of the invention provides a method for generating a project progress bar image, which comprises the following steps of S1 to S4:
s1, receiving the stage data and the milestone data of the project; the phase data includes each sub-phase event of the project and a start date and an end date of the each sub-phase event; the milestone data comprises each flagged event of the project and a completion date for the each flagged event.
It should be noted that all the sub-phase data and the milestone data need to have a certain date when displayed in the image of the progress bar, so that basic preprocessing judgment needs to be performed on the transmitted data, that is, whether the corresponding dates of the received sub-phase data and the received milestone data exist is judged, and meanwhile, the received data are classified and sequenced according to the dates, so that the subsequent operations of screening and calculating the data are facilitated, and the image generation efficiency is improved.
And S2, determining the scale distribution of the progress bar and the scale interval of each sub-phase event in the progress bar according to the starting date and the ending date of each sub-phase event.
It should be noted that, in the actual project management, the date spans of the sub-phases may not be completely connected, and further there is a blank content of the sub-phases on the progress bar, and in order to indicate this problem to the viewer, it is necessary to display the blank sub-phase interval on the progress bar, so in the embodiment of the present invention, the scale interval of each sub-phase event on the progress bar is obtained by calculating the date of each sub-phase, and further the scale interval of the blank sub-phase is obtained, and in the process of rendering and generating the image, the scale interval of the blank sub-phase is marked with a special color.
And S3, determining the display position of each landmark event on the progress bar according to the milestone data and the scale distribution of the progress bar.
It should be noted that the display position of each symbolic event on the progress bar refers to the center position of the display frame or the display text corresponding to the symbolic event.
And S4, automatically rendering and generating an image of the progress bar according to the scale distribution of the progress bar, the scale interval of each sub-phase event in the progress bar and the display position of each symbolic event on the progress bar.
It should be noted that, through the image generation process of the above-mentioned step S1 to step S4, one display mode of the generated image is as shown in fig. 2, fig. 2 shows an image rendering the generated progress bar, the progress bar is increased according to the scale values of the year and month, the scale areas of the different sub-phase events on the progress bar are marked with different colors (fig. 2 shows different colors by different shades), each symbolic event is displayed in a milestone mode by being pulled up or down on the progress bar, and fig. 2 is displayed in a pull-up mode. Besides the date corresponding to the scale value of the progress bar, the method also comprises the steps of identifying the current date, making a reviewer know the current time point of the progress bar, and knowing the current sub-stage and other comparative information. In addition, through the analysis processing of the received phase data and the received milestone data, the typesetting position of each sub-phase and each landmark event is adjusted, and the reasonability of the generated progress bar image is ensured.
Further, in order to ensure the visibility of the project progress data in the view, the sub-phase data is filtered and calculated according to the key point of the sub-phase data date, and the specific implementation process of the step S2 is as follows:
extracting the date and the last date which are sequenced from the starting date and the ending date of each sub-phase event, and obtaining the starting span days and the ending span days of the progress bar;
calculating the ratio of the width of the progress bar to the number of the starting and ending span days of the progress bar to obtain the span value of each day in the progress bar;
determining the scale distribution of the progress bar according to the most recent date, the most recent date and the span value of the progress bar; the starting scale of the progress bar is the most recent date, the ending scale of the progress bar is the most recent date, and the distance between adjacent scales of the progress bar is the span value of the progress bar;
and determining scale values corresponding to the starting date and the ending date of each sub-phase event according to the scale distribution of the progress bar, and obtaining the scale interval of each sub-phase event in the progress bar.
It should be noted that, the specific implementation process of step 2 calculates the scale distribution data of the progress bar and the scale interval of each sub-phase event on the progress bar, and provides the basic frame data of the progress bar, so as to ensure that the sub-phases are clear when displayed on the progress bar, i.e. to ensure that the layout of the sub-phase data is reasonable.
Further, an arrow is further provided at one end of the progress bar, the arrow part occupies a certain number of days, and then the scale distribution of the arrow needs to be calculated, and since the scale distribution of the arrow needs to be considered, the number of days the arrow occupies the progress bar needs to be calculated, and the span value of the progress bar needs to be corrected, so as to prevent the problem that the arrow part is too small or too large after the image is generated, so the specific implementation process of the step S2 further includes, after obtaining the span value of the progress bar, calculating the number of days the arrow occupies the progress bar and correcting the span value of the progress bar, specifically:
after the span value I of the progress bar is obtained, calculating a day value D1 of the arrow in the progress bar according to the preset length S1 of the arrow and the span value I of the progress bar,
Figure BDA0001280027830000061
wherein floor () is a floor function;
calculating an offset value F1 between a preset length S1 of the arrow and the actual length of the arrow according to a day value D1 of the arrow in the progress bar, wherein F1 is S1-D1I;
judging whether the offset value F1 of the arrow and the offset value F2 of the progress bar are both larger than an offset value threshold value; wherein, F2 is S2-D2I, and S2 is the width of the progress bar; d2 is the starting and ending span days of the progress bar;
correcting the span value of the progress bar to be I according to the offset value of the arrow when the offset value F1 of the arrow is greater than the offset value threshold or when the offset value F2 of the progress bar is greater than the offset value threshold,
Figure BDA0001280027830000062
according to the corrected span value I of the progress bar, recalculating the day value D1 of the arrow in the progress bar, the offset value F1 of the arrow and the offset value F2 of the progress bar until the offset value F1 of the arrow and the offset value F2 of the progress bar are both smaller than the offset threshold value;
and when the deviation value F1 of the arrow and the deviation value F2 of the progress bar are both smaller than the deviation value threshold, outputting the day value D1 of the arrow in the progress bar and the span value I of the progress bar.
It should be noted that, after the number of days D1 of the arrow occupying the progress bar is calculated and the span I of the progress bar is corrected, the length of the arrow occupying the progress bar can be determined to be D1 × I. The preset length S1 of the arrow and the offset threshold are preset, so that the number of days occupied by the arrow and the span of the progress bar can be adjusted conveniently in the calculation process.
Further, the specific implementation process of step S3 is as follows:
calculating the product of the character occupation length of each symbolic event and the mark display proportion of the progress bar to obtain the milestone width of each symbolic event displayed in the progress bar in a milestone mode; the mark display proportion is the unit length occupied by one character displayed in the image of the progress bar;
and determining the display position of each landmark event on the progress bar according to the milestone display mode set by the progress bar and the milestone width displayed by each landmark event in the progress bar.
Specifically, the display is performed in a milestone manner, that is, the position of the scale value of the completion date of the landmark event on the progress bar is on the same axis as the center position of the milestone of the landmark event, and that is, the connection line between the milestone of the landmark event and the position of the scale value of the completion date of the landmark event on the progress bar is displayed.
It should be noted that, in order to achieve the adaptation of displaying each landmark event in the milestone data on the progress coverage, and when each landmark event is displayed by a milestone, the width of the milestone may be differentiated due to the length of the text content, and then, when a plurality of milestones appear in a small time period on the progress bar, the problem of shielding among the plurality of milestones needs to be avoided, so that the width of each milestone needs to be calculated, and the above problems are solved by the following multi-level milestone position determination method:
sequencing each symbolic event according to the time sequence according to the completion date of each symbolic event; the data of each symbolic event is sorted according to the date, and the sorted data simplifies the subsequent processing process, so that the data confusion is avoided.
For a 1 st flagging event, displaying a position of the 1 st flagging event at a first milestone level of the progress bar in a milestone display manner as a position of the 1 st flagging event on the progress bar; for the 1 st flagged event, no level up is required. As shown in fig. 2, the first milestone in fig. 2 can be seen as the milestone for the 1 st landmark event.
For the ith marker event, when the ith marker event is displayed at the position of the first milestone level of the progress bar in a milestone display mode, judging whether the milestone of the ith marker event is overlapped with the milestone of the previous marker event of the level where the ith marker event is positioned according to the position and the milestone width of the ith marker event displayed in the progress bar and the position and the milestone width of the milestone of the previous marker event displayed at the current milestone level; i is a natural number greater than 1;
if so, continuously displaying the ith landmark event at the position of the next landmark level of the progress bar in a landmark display mode to judge until the landmark of the ith landmark event is not overlapped with the landmark of the previous landmark event of the level where the ith landmark event is located, and taking the position, displayed at the current landmark level, of the ith landmark event as the display position of the ith landmark event on the progress bar.
If not, taking the display position of the ith landmark event at the current milestone level as the display position of the ith landmark event at the progress bar.
If the right position of the milestone corresponding to the current landmark event overlaps with the left position of the milestone corresponding to the previous landmark event displayed in the current hierarchy, the milestone of the current landmark event needs to be raised by one hierarchy, and if the milestone still overlaps with the previous landmark event, the hierarchy is raised again until the new hierarchy does not overlap. As shown in fig. 2, the third milestone is determined, the third milestone is first placed at the first milestone level for display, the left side of the milestone (the second milestone) corresponding to the previous landmark event displayed at the current level is overlapped with the right side of the third milestone, and the third milestone is then raised to a level for display, and no overlap with other milestones occurs at this level, so that the position of the third milestone displayed at the current level is used as the display position provided by the third milestone in the process of rendering generation. Therefore, by arranging the positions of the milestones, the data can be called to be displayed directly according to the display position of each landmark event in the image generation process, so that the problem of overlapping of the milestones is solved, and the image generation efficiency can be improved.
Further, the specific implementation process of step S4 is as follows:
rendering a frame for generating the progress bar according to the scale distribution of the progress bar;
rendering the color of the scale interval of each sub-stage displayed in the progress bar and the content of the sub-stage event corresponding to the scale interval according to the requirement that the scale interval of each sub-stage event in the progress bar and the color displayed in the progress bar by each sub-stage are different;
according to the display position of each symbolic event on the progress bar, rendering the symbolic events in the progress bar in a milestone mode one by one according to the modes that the display positions are from top to bottom and from right to left, and finishing the image generation of the progress bar.
It should be noted that, the sequence of the image rendering generation of the progress bar may be, a frame of the progress bar, each sub-phase, a milestone, a mark of the current date on the progress bar, and a month time scale mark. And the order of rendering on the progress bar in a milestone manner for each flagging event is: and performing reverse rendering in a mode of sequentially going from top to bottom and from right to left according to the sequence of the display positions. Wherein, the top-down rendering can well hide the connecting lines which may cross, the connecting lines are the connecting lines of the milestones connected to the corresponding date scale values, as shown in fig. 2, the connecting line of the third milestone can be hidden under the second milestone; and in a right-to-left mode, the processing performance can be improved by the aid of the decreasing index comparison, and the image rendering generation speed can be increased.
According to the method for generating the project progress bar image, the stage data and the milestone data of the project are received and analyzed to obtain the relevant parameter information of the project, the progress bar image of the project is automatically rendered and generated according to the parameter information, so that the progress bar image of the project can be automatically generated according to the project data, the sub-stage and milestone typesetting of the progress bar is adjusted, the rationality of the generated project progress bar image is ensured, and the information display on the progress bar is prevented from being blocked.
Fig. 3 is a schematic structural diagram of an embodiment of an apparatus for generating a project progress bar image according to the present invention; the embodiment of the present invention further provides a device for generating a project progress bar image, which can implement all the processes of the method provided by the above embodiment, and specifically includes:
a data receiving module 10 for receiving the stage data and the milestone data of the project; the phase data includes each sub-phase event of the project and a start date and an end date of the each sub-phase event; the milestone data comprises each flagged event of the project and a completion date for the each flagged event;
the scale division module 20 is configured to determine, according to the start date and the end date of each sub-phase event, the scale distribution of the progress bar and the scale interval of each sub-phase event in the progress bar;
a landmark display determination module 30, configured to determine a display position of each landmark event on the progress bar according to the milestone data and the scale distribution of the progress bar; and the number of the first and second groups,
and the image rendering generation module 40 is configured to automatically render and generate an image of the progress bar according to the scale distribution of the progress bar, the scale interval of each sub-phase event in the progress bar, and the display position of each symbolic event on the progress bar.
Further, as shown in fig. 4, fig. 4 is a schematic structural diagram of a scale division module of the apparatus for generating a project progress bar image according to the present invention; the scale division module 20 specifically includes:
a span number of days obtaining unit 21, configured to extract a date sorted at the top and a date sorted at the last from the start date and the end date of each sub-phase event, and obtain the start span number of days and the end span number of days of the progress bar;
the span value calculation unit 22 is configured to calculate a ratio of the width of the progress bar to the number of days of the starting and ending span of the progress bar, and obtain a span value of the progress bar on each day;
the scale distribution unit 23 is configured to determine scale distribution of the progress bar according to the most recent date, and a span value of the progress bar; the starting scale of the progress bar is the most recent date, the ending scale of the progress bar is the most recent date, and the distance between adjacent scales of the progress bar is the span value of the progress bar;
and a scale interval determining unit 24, configured to determine, according to the scale distribution of the progress bar, scale values corresponding to the start date and the end date of each sub-phase event, and obtain a scale interval of each sub-phase event in the progress bar.
Fig. 5 is a schematic structural diagram of a calculation and correction unit of a scale division module of the apparatus for generating a project progress bar image according to the present invention;
further, the scale distribution of the progress bar further includes scale distribution of an arrow, and the scale division module further includes a calculation and correction unit 25, where the calculation and correction unit 25 is configured to calculate, after obtaining the span value of the progress bar, a day value of the arrow occupying the progress bar and correct the span value of the progress bar, and specifically includes:
an arrow day number calculating subunit 251, configured to calculate, according to the preset length S1 of the arrow and the span value I of the progress bar, a day number value D1 of the arrow in the progress bar after obtaining the span value I of the progress bar,
Figure BDA0001280027830000101
wherein floor () is a floor function;
an arrow offset calculating subunit 252, configured to calculate, according to the value D1 of the number of days that the arrow occupies the progress bar, an offset value F1 between a preset length S1 of the arrow and an actual length of the arrow, where F1 is S1-D1 × I;
an offset value determining subunit 253, configured to determine whether an offset value F1 of the arrow and an offset value F2 of the progress bar are both greater than an offset value threshold; wherein, F2 is S2-D2I, and S2 is the width of the progress bar; d2 is the starting and ending span days of the progress bar;
a span value correcting subunit 254, configured to, when the offset value F1 of the arrow is greater than the offset value threshold, or when the offset value F2 of the progress bar is greater than the offset value threshold, correct the span value of the progress bar to I according to the offset value of the arrow,
Figure BDA0001280027830000111
the recalculating subunit 255 is configured to recalculate the number of days D1 that the arrow occupies the progress bar, the offset value F1 of the arrow, and the offset value F2 of the progress bar according to the corrected span value I of the progress bar until the offset values F1 of the arrow and F2 of the progress bar are both smaller than the offset threshold value;
a numerical value output subunit 256, configured to output the day value D1 of the arrow occupying the progress bar and the span value I of the progress bar when both the offset value F1 of the arrow and the offset value F2 of the progress bar are smaller than the offset threshold.
Fig. 6 is a schematic structural diagram of a logo display determination module of the apparatus for generating a project progress bar image according to an embodiment of the present invention;
further, the mark display determination module 30 specifically includes:
a milestone width calculation unit 31, configured to calculate a product of the text occupation length of each symbolic event and a marker display ratio of the progress bar, and obtain a milestone width of each symbolic event displayed in the progress bar in a milestone manner; the mark display proportion is the unit length occupied by one character displayed in the image of the progress bar;
a display position determination unit 32, configured to determine a display position of each landmark event on the progress bar according to a landmark display manner set by the progress bar and a landmark width displayed in the progress bar by each landmark event.
Fig. 7 is a schematic structural diagram of a display position determining unit of a logo display determining module of the apparatus for generating a project progress bar image according to an embodiment of the present invention;
further, the display position determining unit 32 specifically includes:
a sorting subunit 321, configured to sort each symbolic event according to the completion date of each symbolic event in time order;
a first position determining subunit 322, configured to, for a 1 st landmark event, display a position of the 1 st landmark event at a first milestone level of the progress bar in a milestone display manner as a position of the 1 st landmark event on the progress bar;
a non-first position determining subunit 323, configured to, when the ith flagging event is displayed at the position of the first milestone level of the progress bar in a milestone display manner, determine whether the milestone of the ith flagging event overlaps with the milestone of the previous flagging event at the level where the ith flagging event is located according to the position and the width of the milestone of the ith flagging event displayed in the progress bar and the position and the width of the milestone of the previous flagging event displayed at the current milestone level; i is a natural number greater than 1;
a second position determining subunit 324, configured to, when the milestone of the i-th landmark event overlaps with the milestone of the previous landmark event of the hierarchy where the i-th landmark event is located, continue to display the i-th landmark event at the position of the next milestone hierarchy of the progress bar in a milestone display manner, until the milestone of the i-th landmark event does not overlap with the milestone of the previous landmark event of the hierarchy where the i-th landmark event is located, and use the position where the i-th landmark event is displayed at the current milestone hierarchy as the display position of the i-th landmark event on the progress bar.
A second position determining subunit 325, configured to, when the milestone of the ith landmark event does not overlap with the milestone of the previous landmark event in the hierarchy where the ith landmark event is located, determine a position where the ith landmark event is displayed in the current milestone hierarchy as a display position of the ith landmark event in the progress bar.
Fig. 8 is a schematic structural diagram of an image rendering generation module of the apparatus for generating a project progress bar image according to an embodiment of the present invention;
further, the image rendering generation module specifically includes:
a frame rendering unit 41, configured to render a frame generating the progress bar according to the scale distribution of the progress bar;
a phase rendering unit 42, configured to render, according to a requirement that a scale interval of the progress bar of each sub-phase event is different from a color displayed in the progress bar of each sub-phase event, the color of the scale interval of each sub-phase displayed in the progress bar and sub-phase event content corresponding to the scale interval;
and a milestone rendering unit 43, configured to render the landmark events in the progress bar in a milestone manner one by one according to the display position of each landmark event in the progress bar, from top to bottom and from right to left, so as to complete the image generation of the progress bar.
Still further, the milestone display mode is as follows: the position of the scale value of the completion date of the landmark event on the progress bar and the central position of the milestone of the landmark event are on the same axis, and a connecting line for displaying the milestone of the landmark event and the position of the scale value of the completion date of the landmark event on the progress bar is displayed.
According to the device for generating the project progress bar image, the stage data and the milestone data of the project are received and analyzed to obtain the relevant parameter information of the project, the progress bar image of the project is automatically rendered and generated according to the parameter information, so that the progress bar image of the project can be automatically generated according to the project data, the sub-stage and milestone typesetting of the progress bar is adjusted, the rationality of the generated project progress bar image is ensured, and the information display on the progress bar is prevented from being blocked.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only Memory (ROM), a Random Access Memory (RAM), or the like.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (14)

1. A method for generating project progress bar images is characterized by comprising the following steps:
receiving phase data and milestone data for the project; the phase data includes each sub-phase event of the project and a start date and an end date of the each sub-phase event; the milestone data comprises each flagged event of the project and a completion date for the each flagged event;
according to the starting date and the ending date of each sub-phase event, determining the scale distribution of the progress bar and the scale interval of each sub-phase event in the progress bar;
determining the display position of each landmark event on the progress bar according to the milestone data and the scale distribution of the progress bar;
automatically rendering and generating an image of the progress bar according to the scale distribution of the progress bar, the scale interval of each sub-phase event in the progress bar and the display position of each symbolic event on the progress bar; wherein scale intervals of the different sub-phase events on the progress bar are identified with different colors from each other, and each of the flagged events is displayed in a milestone manner by being pulled up or down on the progress bar.
2. The method for generating an image of a project progress bar according to claim 1, wherein the determining the scale distribution of the progress bar and the scale interval of each sub-phase event in the progress bar according to the start date and the end date of each sub-phase event specifically comprises:
extracting the date and the last date which are sequenced from the starting date and the ending date of each sub-phase event, and obtaining the starting span days and the ending span days of the progress bar;
calculating the ratio of the width of the progress bar to the number of the starting and ending span days of the progress bar to obtain the span value of each day in the progress bar;
determining the scale distribution of the progress bar according to the most recent date, the most recent date and the span value of the progress bar; the starting scale of the progress bar is the most recent date, the ending scale of the progress bar is the most recent date, and the distance between adjacent scales of the progress bar is the span value of the progress bar;
and determining scale values corresponding to the starting date and the ending date of each sub-phase event according to the scale distribution of the progress bar, and obtaining the scale interval of each sub-phase event in the progress bar.
3. The method for generating a project progress bar image according to claim 2, wherein the scale distribution of the progress bar further includes scale distribution of an arrow, and the method for generating a project progress bar image further includes, after obtaining the span value of the progress bar, calculating a day value of the arrow in the progress bar and correcting the span value of the progress bar, specifically:
after the span value I of the progress bar is obtained, calculating a day value D1 of the arrow in the progress bar according to the preset length S1 of the arrow and the span value I of the progress bar,
Figure FDA0002790969890000021
wherein floor () is a floor function;
calculating an offset value F1 between a preset length S1 of the arrow and the actual length of the arrow according to a day value D1 of the arrow in the progress bar, wherein F1 is S1-D1I;
judging whether the offset value F1 of the arrow and the offset value F2 of the progress bar are both larger than an offset value threshold value; wherein, F2 is S2-D2I, and S2 is the width of the progress bar; d2 is the starting and ending span days of the progress bar;
correcting the span value of the progress bar to be I according to the offset value of the arrow when the offset value F1 of the arrow is greater than the offset value threshold or when the offset value F2 of the progress bar is greater than the offset value threshold,
Figure FDA0002790969890000022
according to the corrected span value I of the progress bar, recalculating the day value D1 of the arrow in the progress bar, the offset value F1 of the arrow and the offset value F2 of the progress bar until the offset value F1 of the arrow and the offset value F2 of the progress bar are both smaller than the offset threshold value;
and when the deviation value F1 of the arrow and the deviation value F2 of the progress bar are both smaller than the deviation value threshold, outputting the day value D1 of the arrow in the progress bar and the span value I of the progress bar.
4. The method for generating a project progress bar image according to claim 1, wherein the determining the display position of each landmark event on the progress bar according to the milestone data and the scale value of the progress bar comprises:
calculating the product of the character occupation length of each symbolic event and the mark display proportion of the progress bar to obtain the milestone width of each symbolic event displayed in the progress bar in a milestone mode; the mark display proportion is the unit length occupied by one character displayed in the image of the progress bar;
and determining the display position of each landmark event on the progress bar according to the milestone display mode set by the progress bar and the milestone width displayed by each landmark event in the progress bar.
5. The method for generating a project progress bar image according to claim 4, wherein the display position of each landmark event on the progress bar is determined according to the milestone display mode set by the progress bar and the milestone width of each landmark event displayed in the progress bar, specifically:
sequencing each symbolic event according to the time sequence according to the completion date of each symbolic event;
for a 1 st flagging event, displaying a position of the 1 st flagging event at a first milestone level of the progress bar in a milestone display manner as a position of the 1 st flagging event on the progress bar;
for the ith marker event, when the ith marker event is displayed at the position of the first milestone level of the progress bar in a milestone display mode, judging whether the milestone of the ith marker event is overlapped with the milestone of the previous marker event of the level where the ith marker event is positioned according to the position and the milestone width of the ith marker event displayed in the progress bar and the position and the milestone width of the milestone of the previous marker event displayed at the current milestone level; i is a natural number greater than 1;
if so, continuously displaying the ith landmark event at the position of the next landmark level of the progress bar in a landmark display mode for judgment until the landmark of the ith landmark event is not overlapped with the landmark of the previous landmark event of the level where the ith landmark event is located, and taking the position, displayed at the current landmark level, of the ith landmark event as the display position of the ith landmark event on the progress bar;
if not, taking the display position of the ith landmark event at the current milestone level as the display position of the ith landmark event at the progress bar.
6. The method for generating an image of a project progress bar according to claim 1, wherein the automatically rendering and generating the image of the progress bar according to the scale distribution of the progress bar, the scale interval of each sub-phase event on the progress bar, and the display position of each symbolic event on the progress bar is specifically:
rendering a frame for generating the progress bar according to the scale distribution of the progress bar;
rendering the color of the scale interval of each sub-stage displayed in the progress bar and the content of the sub-stage event corresponding to the scale interval according to the requirement that the scale interval of each sub-stage event in the progress bar and the color displayed in the progress bar by each sub-stage are different;
according to the display position of each symbolic event on the progress bar, rendering the symbolic events in the progress bar in a milestone mode one by one according to the modes that the display positions are from top to bottom and from right to left, and finishing the image generation of the progress bar.
7. The method of project progress bar image generation of claim 5 or 6, wherein the milestone display is: the position of the scale value of the completion date of the landmark event corresponding to the progress bar and the central position of the milestone of the landmark event are on the same axis, and a connecting line for displaying the milestone of the landmark event and the position of the scale value of the completion date of the landmark event on the progress bar is displayed.
8. An apparatus for project progress bar image generation, comprising:
the data receiving module is used for receiving the stage data and the milestone data of the project; the phase data includes each sub-phase event of the project and a start date and an end date of the each sub-phase event; the milestone data comprises each flagged event of the project and a completion date for the each flagged event;
the scale division module is used for determining the scale distribution of the progress bar and the scale interval of each sub-phase event in the progress bar according to the starting date and the ending date of each sub-phase event;
the mark display determining module is used for determining the display position of each marking event on the progress bar according to the milestone data and the scale distribution of the progress bar; and the number of the first and second groups,
the image rendering generation module is used for automatically rendering and generating an image of the progress bar according to the scale distribution of the progress bar, the scale interval of each sub-phase event in the progress bar and the display position of each symbolic event on the progress bar; wherein scale intervals of the different sub-phase events on the progress bar are identified with different colors from each other, and each of the flagged events is displayed in a milestone manner by being pulled up or down on the progress bar.
9. The apparatus for generating an image of a project progress bar according to claim 8, wherein the scale division module specifically includes:
the span days acquisition unit is used for extracting the date and the last date which are sequenced at the top from the starting date and the ending date of each sub-phase event to obtain the starting span days and the ending span days of the progress bar;
the span value calculation unit is used for calculating the ratio of the width of the progress bar to the number of the starting and ending span days of the progress bar to obtain the span value of each day in the progress bar;
the scale distribution unit is used for determining the scale distribution of the progress bar according to the most recent date, the most recent date and the span value of the progress bar; the starting scale of the progress bar is the most recent date, the ending scale of the progress bar is the most recent date, and the distance between adjacent scales of the progress bar is the span value of the progress bar;
and the scale interval determining unit is used for determining scale values corresponding to the starting date and the ending date of each sub-phase event according to the scale distribution of the progress bar, and obtaining the scale interval of each sub-phase event in the progress bar.
10. The apparatus for generating a project progress bar image according to claim 9, wherein the scale distribution of the progress bar further includes a scale distribution of an arrow, and the scale division module further includes a calculation and correction unit, and the calculation and correction unit is configured to calculate a day value of the arrow in the progress bar and correct a span value of the progress bar after obtaining the span value of the progress bar, and specifically includes:
an arrow day calculating subunit, configured to calculate, after obtaining the span value I of the progress bar, a day value D1 of the arrow in the progress bar according to the preset length S1 of the arrow and the span value I of the progress bar,
Figure FDA0002790969890000051
wherein floor () is a floor function;
an arrow offset calculating subunit, configured to calculate, according to a value D1 of days in which the arrow occupies the progress bar, an offset value F1 between a preset length S1 of the arrow and an actual length of the arrow, where F1 is S1-D1 × I;
an offset value judging subunit, configured to judge whether an offset value F1 of the arrow and an offset value F2 of the progress bar are both greater than an offset value threshold; wherein, F2 is S2-D2I, and S2 is the width of the progress bar; d2 is the starting and ending span days of the progress bar;
a span value correction subunit, configured to, when the offset value F1 of the arrow is greater than the offset value threshold, or when the offset value F2 of the progress bar is greater than the offset value threshold, correct the span value of the progress bar to I according to the offset value of the arrow,
Figure FDA0002790969890000052
the recalculation subunit is configured to recalculate the number of days D1 that the arrow occupies the progress bar, the offset value F1 of the arrow, and the offset value F2 of the progress bar according to the corrected span value I of the progress bar until the offset values F1 of the arrow and F2 of the progress bar are both smaller than the offset threshold value;
and the numerical value output subunit is used for outputting the day value D1 of the arrow occupying the progress bar and the span value I of the progress bar when the offset value F1 of the arrow and the offset value F2 of the progress bar are both smaller than the offset threshold value.
11. The apparatus for generating an image of a project progress bar according to claim 8, wherein the mark display determination module specifically includes:
a milestone width calculation unit, configured to calculate a product of a text occupation length of each symbolic event and a marker display ratio of the progress bar, and obtain a milestone width of each symbolic event displayed in the progress bar in a milestone manner; the mark display proportion is the unit length occupied by one character displayed in the image of the progress bar;
and the display position determining unit is used for determining the display position of each landmark event on the progress bar according to the milestone display mode set by the progress bar and the milestone width of each landmark event displayed in the progress bar.
12. The apparatus for generating an image of a project progress bar according to claim 11, wherein the display position determining unit specifically includes:
the sequencing subunit is used for sequencing each symbolic event according to the completion date of each symbolic event;
a first position determination subunit, configured to, for a 1 st landmark event, display, in a landmark display manner, a position of the 1 st landmark event at a first landmark level of the progress bar as a position of the 1 st landmark event on the progress bar;
a non-first position judging subunit, configured to, when an ith marker event is displayed at a position of a first milestone level of the progress bar in a milestone display manner, judge whether a milestone of the ith marker event overlaps with a milestone of a previous marker event of the level at which the ith marker event is located according to a position and a milestone width of the ith marker event displayed in the progress bar and a position and a milestone width of a milestone of the previous marker event displayed at a current milestone level; i is a natural number greater than 1;
a second position determination subunit, configured to, when a milestone of the i-th landmark event overlaps a milestone of a previous landmark event of a hierarchy where the i-th landmark event is located, continue to display the i-th landmark event at a position of a next milestone hierarchy of the progress bar in a milestone display manner, until the milestone of the i-th landmark event does not overlap the milestone of the previous landmark event of the hierarchy where the i-th landmark event is located, and use a position where the i-th landmark event is displayed at the current milestone hierarchy as a display position of the i-th landmark event on the progress bar;
and the second position determining subunit is used for taking the position of the ith marker event displayed at the current milestone level as the display position of the ith marker event on the progress bar when the milestone of the ith marker event is not overlapped with the milestone of the previous marker event of the level where the ith marker event is positioned.
13. The apparatus for generating a project progress bar image according to claim 8, wherein the image rendering generation module specifically includes:
the frame rendering unit is used for rendering a frame for generating the progress bar according to the scale distribution of the progress bar;
the phase rendering unit is used for rendering the color of the scale interval of each sub-phase displayed in the progress bar and the content of the sub-phase event corresponding to the scale interval according to the requirement that the scale interval of each sub-phase event in the progress bar and the color of each sub-phase displayed in the progress bar are different;
and the milestone rendering unit is used for rendering the landmark events in the progress bar in a milestone mode one by one according to the display position of each landmark event in the progress bar and the modes of the display position from top to bottom and from right to left so as to finish the image generation of the progress bar.
14. The apparatus of project progress bar image generation according to claim 12 or 13, wherein the milestone display means is: the position of the scale value of the completion date of the landmark event corresponding to the progress bar and the central position of the milestone of the landmark event are on the same axis, and a connecting line for displaying the milestone of the landmark event and the position of the scale value of the completion date of the landmark event on the progress bar is displayed.
CN201710283133.8A 2017-04-26 2017-04-26 Method and device for generating project progress bar image Active CN107122188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710283133.8A CN107122188B (en) 2017-04-26 2017-04-26 Method and device for generating project progress bar image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710283133.8A CN107122188B (en) 2017-04-26 2017-04-26 Method and device for generating project progress bar image

Publications (2)

Publication Number Publication Date
CN107122188A CN107122188A (en) 2017-09-01
CN107122188B true CN107122188B (en) 2021-05-11

Family

ID=59726053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710283133.8A Active CN107122188B (en) 2017-04-26 2017-04-26 Method and device for generating project progress bar image

Country Status (1)

Country Link
CN (1) CN107122188B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107680149A (en) * 2017-10-09 2018-02-09 广州四三九九信息科技有限公司 Project tendency drawing drawing method, device and server
JP6596741B2 (en) 2017-11-28 2019-10-30 エスゼット ディージェイアイ テクノロジー カンパニー リミテッド Generating apparatus, generating system, imaging system, moving object, generating method, and program
CN109901894B (en) * 2017-12-07 2021-06-08 腾讯科技(深圳)有限公司 Progress bar image generation method and device and storage medium
CN108595678B (en) * 2018-05-02 2022-05-31 网易(杭州)网络有限公司 Task data processing method and device, electronic equipment and storage medium
CN108921493A (en) * 2018-05-31 2018-11-30 沈文策 A kind of information display method and device based on display interface
CN109343778A (en) * 2018-09-25 2019-02-15 北京金山安全软件有限公司 Display method and device and electronic equipment
CN112149020B (en) * 2020-09-17 2023-04-28 成都知道创宇信息技术有限公司 Progress bar display method and device, electronic equipment and storage medium
CN113780860B (en) * 2021-09-17 2022-11-29 上海易立德信息技术股份有限公司 Progress display method, system and storage medium for milestone
CN114020266B (en) * 2021-10-28 2024-04-12 四川启睿克科技有限公司 Method for realizing sectional progress bar assembly based on VUE

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573991A (en) * 2015-01-28 2015-04-29 携程计算机技术(上海)有限公司 Project process management system
CN106408271A (en) * 2016-10-10 2017-02-15 上海博辕信息技术服务有限公司 Method and device for monitoring project

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630252A (en) * 2009-07-07 2010-01-20 中国科学院软件研究所 Method for controlling software project progress based on process stimulating technology
US10133653B2 (en) * 2012-02-23 2018-11-20 Cadence Design Systems, Inc. Recording and playback of trace and video log data for programs
CN103136636A (en) * 2013-03-15 2013-06-05 中广核工程有限公司 Nuclear power project progress measuring method and system
CN103699953B (en) * 2013-11-06 2017-08-25 北京驭时德隆科技有限公司 Project management system and its data processing method and device
CN106408172A (en) * 2016-08-31 2017-02-15 广东达安项目管理股份有限公司 Project management system
CN106529904A (en) * 2016-10-25 2017-03-22 乐视控股(北京)有限公司 Branching view generating method and branching view generating device
CN106529788A (en) * 2016-10-25 2017-03-22 乐视控股(北京)有限公司 Project plan chart generation method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573991A (en) * 2015-01-28 2015-04-29 携程计算机技术(上海)有限公司 Project process management system
CN106408271A (en) * 2016-10-10 2017-02-15 上海博辕信息技术服务有限公司 Method and device for monitoring project

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《project process bar image》;Li Shuhua et al.;《2011 International Conference on Consumer Electronics, Communications and Networks (CECNet)》;20110516;全文 *
《海洋工程项目进度计划管理技术研究》;王学营;《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》;20140515;第2014年卷(第5期);全文 *

Also Published As

Publication number Publication date
CN107122188A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
CN107122188B (en) Method and device for generating project progress bar image
US11687859B2 (en) Software with improved view of a business process
CA1221767A (en) Structural graphics representation system with depiction of structure of building or the like
CN103914546B (en) Data-updating method and its device
US8700984B2 (en) Computerized method and computer program for displaying and printing markup
JP4473893B2 (en) Work item extraction device, work item extraction method, and work item extraction program
CN108268884B (en) Document comparison method and device
CN106610804A (en) Ticket printing method and system
US20200143369A1 (en) Device for contracting smart contract and method thereof
CN106156595A (en) A kind of method, Apparatus and system being carried out by identifying code picture verifying
JP2009230382A (en) Gantt chart display method, gantt chart display program and gantt chart display
JP4756924B2 (en) Land history record display system and land history record printing system
US20060139352A1 (en) Computer product, operation-analysis support device, and operation-analysis support method
US20220309232A1 (en) Information processing apparatus, non-transitory computer readable medium storing information processing program, and information processing method
JP7079286B2 (en) Repair estimate support system and support information analyzer
JP2006040002A (en) Sales management system
CN113781607A (en) Method, device and equipment for processing annotation data of OCR (optical character recognition) image and storage medium
JP2010134766A (en) Document data processing apparatus and program thereof
JP3464056B2 (en) Document information editing device
Carr et al. The forward PDE for European options on stocks with fixed fractional jumps
US7949951B1 (en) Selectively limiting paragraph recomposition
JPH0934925A (en) Automatic checking device in printed board design
Gibbs et al. A case study investigation into the use of computer generated visualisations to assist with construction delay claims
CN116310254A (en) Point cloud image labeling method, system and storage medium
JP2003323580A (en) Field information generating program, field information generating method and electronic form generating device for document image plane

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
GR01 Patent grant
GR01 Patent grant