Reporting tools how to make records in the table with a timeline?

Want to report on a timeline of events recorded by the reporting tools to how to make it? The timeline how to make it? Here we have an example to Run Dry statements made two types of table records the timeline, how to achieve a specific look.

Lite version Timeline

1. Add the data set, and will need to record the time taken to events.

I read time and event data from EXCEL file, the data shown below:

Create a report under Report Designer, and then in the "Reporting" menu - data collection, increase data file set.

Select EXCEL file, and then select the field and click OK.

After creating the data set in the lower right corner of the report design surface can see the new dataset name field, select the corresponding fields are dragged to the B2, C2 cells, expression generated automatically fetch in the grid.

The default cell size adjustment method is the same size as designed, fully content to show up, we need to manually resize mode to expand by cell contents.

The A1, B1, C1 selected, and then merged cells, enter text in a cell "novel coronavirus pneumonia."

Preview of the report designer is shown below.

Next add the timeline.

I will be part of the timeline on the interception saved as images, image files increase in cell A2.

After adding the pictures, we preview the report found, but there was an incident axis node in that position in the middle.

The figure is due to the effect of cell B2 is extended, the front of the grid with pictures of stretching, and we want is we need to have a timeline for each node ago period, you must manually left nominative A2 grid revised to B2.

Come under preview.

With the above configuration we have by way of pictures, do a simple style of the time sheets.

Timeline dynamic color change

Timeline screenshot below the broken line is the time sheets, from the style point of view, seemingly difficult, we think looks through a first border of the cell line to get directly, but extended border of the cell line color is fixed and can not pass conditional expressions to dynamically change.

A border color grid can not be changed dynamically, but its foreground and background colors can be changed dynamically ah!

Here screenshot effect is achieved by a vertical line in the input character grid, some conditions are dynamically change the color of the grid based on the value accumulated event.

在 B1 格中定义了个变量并赋了初始值 0,在 D4 单元格设置值表达式为 =a=a+1, 前景色设置位白色,这样累加出来的 a 的值用来做条件判断,又不会显示出来。

在 E4 单元格中在前景色的地方设置条件判断表达式根据 D4 累加的值,动态改变竖线的颜色。

 

现在画重点:注意临时变量的使用,以及跟随扩展如何手动修改主格。

发布了77 篇原创文章 · 获赞 16 · 访问量 15万+

Guess you like

Origin blog.csdn.net/RQlyc/article/details/104410226