Precise process event timeline diagrams (e.g. in Excel)

纵然是瞬间 提交于 2019-12-20 02:36:52

问题


I need to prepare such diagrams:

I think it's quite intuitive how to read this diagram and this is why I want to create a few of them for my project.

I am quite confused how to create them efficiently; I've painted the one above in Paint just to quickly visualize my idea and it took too long imo. Moreover the time axis is not accurate.

I have precise data with event times (eg. loading start in process 1, loading end in process 1, algorithm start in process 2 etc.) e.g.

Process 1:
00.0 - 40.0 - Loading
40.0 - 45.0 - Preparing and launching process 2
45.0 - 50.0 - Preparing and launching process 3
50.0 - 90.0 - Sleep
90.0 - 95.0 - Joining process 2
...

Process 2:
45.0 - 90.0 - Algorithm execution
...

How to generate such timeline diagrams?

I am using MS Windows 7 and have Office 2010 installed, but am willing to use anything that gets the job done..


回答1:


Efficiently? Can't be done. But once you get it setup, it's not too bad. They key is laying out your data appropriately. And it won't be just your data. Every red bar is a piece of data, obviously. But the blank spaces aren't really blank, they're invisible bars against a white background.

The base chart will be a stacked bar chart. Process 1 might have data that looks like

39  1   5   1   5  40  2  135  10  1  10

And those would alternate red and white. What will probably be better is to get rid of the "1" data points and use white gridlines that cross through the data (or error bars or something like that).

See http://dailydoseofexcel.com/archives/2012/02/10/income-statement-waterfall-chart/ for an example of a waterfall chart. It's not identical to your situation, but it uses a lot of the same techniques.

Also, Peltiertech has some waterfall tutorials, like http://peltiertech.com/WordPress/excel-waterfall-charts-bridge-charts/




回答2:


Basically, use a stacked bar chart:

To explain all the steps in detail would be a nightmare but in outline, the data is roughly as shown A1:H4. Format the data series white where required to blend into the background. Add data labels and change their text as required ('merge 1' etc).

I cheated and drew lines (eg within 'Loading') and formatted them white but extra 'connectors' of 1 ms should serve (and would then scale, unlike the drawn lines). Adjust the separation and height of the bars with Series Options.

Edit:

The column labels more-or-less match up with @Jon Peltier but are not important here. They can be taken as merely increments in order. Based on the more specific values provided by comment:



来源:https://stackoverflow.com/questions/16286356/precise-process-event-timeline-diagrams-e-g-in-excel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!