Skip to content

Commit 4b5b587

Browse files
987388: Content check in blazor platform
1 parent e7e342f commit 4b5b587

11 files changed

+312
-161
lines changed

blazor/gantt-chart/event-markers.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,39 @@ layout: post
33
title: Event Markers in Blazor Gantt Chart Component | Syncfusion
44
description: Checkout and learn here all about Event Markers in Syncfusion Blazor Gantt Chart component and more.
55
platform: Blazor
6-
control: Gantt Chart
6+
control: Eventmarkers
77
documentation: ug
88
---
99

1010
# Event Markers in Blazor Gantt Chart Component
1111

1212
The event markers in the Gantt Chart component is used to highlight the important events in a project. Event markers can be initialized by using the [GanttEventMarkers](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEventMarkers.html) property, and you can define date and label for the event markers using the `Day` and `Label` properties. You can also customize it using the `CssClass` properties. The following code example shows how to add event markers in the Gantt Chart component.
1313

14-
```cshtml
14+
Event markers highlight significant project events by displaying vertical timeline indicators that span across the entire Gantt chart. These markers identify critical dates, milestones, deadlines, or important project events that affect multiple tasks or the overall project timeline, providing visual reference points for project-wide activities.
15+
16+
Understanding event markers implementation enables effective visualization of project-critical dates and enhances timeline awareness across all project phases.
17+
18+
Event markers utilize specific properties to define their positioning, appearance, and identification within the project timeline:
19+
20+
**Date positioning**: The [Day](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEventMarker.html#Syncfusion_Blazor_Gantt_GanttEventMarker_Day) property establishes the exact timeline date where the marker appears. This date value determines marker placement across the entire vertical timeline, ensuring accurate project event representation.
21+
22+
**Descriptive labeling**: The [Label](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEventMarker.html#Syncfusion_Blazor_Gantt_GanttEventMarker_Label) property provides descriptive text that identifies the marker's purpose or significance. Labels enhance user understanding by clearly indicating what project event the marker represents.
23+
24+
**Visual customization**: The [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEventMarker.html#Syncfusion_Blazor_Gantt_GanttEventMarker_CssClass) property enables custom styling through CSS class applications. This property allows distinctive visual treatment for different marker types, supporting color coding, styling variations, and brand consistency.
25+
26+
## Event marker configuration
27+
28+
Event markers render as vertical lines positioned at specific dates across the entire Gantt timeline, distinguishing them from data markers which appear within individual task rows. This project-wide visibility ensures critical dates remain prominent regardless of the current view or task focus.
29+
30+
**Timeline integration**: Event markers integrate seamlessly with the Gantt timeline, appearing as vertical indicators that extend from the top to the bottom of the chart area. This comprehensive visibility ensures important dates remain visible during scrolling, zooming, or filtering operations.
31+
32+
**Multiple marker support**: The component supports multiple event markers simultaneously, allowing comprehensive tracking of various project-critical dates within the same timeline view. Each marker maintains independent configuration while sharing the common timeline space.
33+
34+
The following implementation demonstrates event marker integration within a Gantt chart, showcasing timeline-wide event highlighting:
35+
36+
{% tabs %}
37+
{% highlight razor tabtitle="Index.razor" %}
38+
1539
@using Syncfusion.Blazor.Gantt
1640
<SfGantt DataSource="@TaskCollection" Height="450px" Width="700px">
1741
<GanttTaskFields Id="TaskId" Name="TaskName" StartDate="StartDate" EndDate="EndDate"
@@ -64,7 +88,11 @@ The event markers in the Gantt Chart component is used to highlight the importan
6488
border-left: 2px red dotted;
6589
}
6690
</style>
67-
```
91+
92+
{% endhighlight %}
93+
{% endtabs %}
94+
95+
{% previewsample "https://blazorplayground.syncfusion.com/embed/VtreZOiRzZkruiZa?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
6896

6997
![Blazor Gantt Chart with Event Markers](images/blazor-gantt-chart-event-markers.png)
7098

-29.5 KB
Binary file not shown.
Binary file not shown.
-36.3 KB
Binary file not shown.
-33.8 KB
Binary file not shown.
-34.3 KB
Binary file not shown.
-138 KB
Binary file not shown.
-21.1 KB
Binary file not shown.

blazor/gantt-chart/time-line.md

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,23 @@
11
---
22
layout: post
3-
title: Time Line in Blazor Gantt Chart Component | Syncfusion
4-
description: Checkout and learn here all about Time Line in Syncfusion Blazor Gantt Chart component and much more.
3+
title: Timeline in Blazor Gantt Chart component | Syncfusion
4+
description: Learn how to configure timelines in the Syncfusion Blazor Gantt Chart component with view modes, zooming, weekend highlighting, and templates.
55
platform: Blazor
66
control: Gantt Chart
77
documentation: ug
88
---
99

10-
# Time Line in Blazor Gantt Chart Component
10+
# Timeline in Blazor Gantt Chart component
1111

12-
In the [Blazor Gantt Chart](https://www.syncfusion.com/blazor-components/blazor-gantt-chart) component, timeline is used to represent the project duration as individual cells with defined unit and formats.
12+
The timeline in the Blazor Gantt Chart component represents project durations as cells with defined units and formats, supporting in-built view modes like Hour-Minute, Day-Hour, Week-Day, Month-Week, Year-Month, and Minutes for flexible visualization. Configure modes using the [TimelineViewMode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.TimelineViewMode.html) property, with top and bottom tiers customized via [TopTier.Unit](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttTimelineTierSettings.html#Syncfusion_Blazor_Gantt_GanttTimelineTierSettings_Unit) and [BottomTier.Unit](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttTimelineTierSettings.html#Syncfusion_Blazor_Gantt_GanttTimelineTierSettings_Unit) in [TimelineSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttTimelineSettings.html). This enables detailed views, such as weekly overviews with daily breakdowns for projects, ensuring accurate timeline representation.
1313

14-
## Timeline view modes
14+
## Configure timeline view modes
1515

16-
Gantt Chart contains the following in-built timeline view modes:
17-
18-
* Hour
19-
* Week
20-
* Month
21-
* Year
22-
23-
Timescale mode in Gantt Chart can be defined by using [GanttTimelineSettings.TimelineViewMode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttTimelineSettings.html#Syncfusion_Blazor_Gantt_GanttTimelineSettings_TimelineViewMode) property and also you can define timescale mode of top tier and bottom tier by using `GanttTopTierSettings.Unit` and `GanttBottomTierSettings.Unit` properties.
24-
25-
Following table explains how top tier and bottom tier unit changes as per `GanttTimelineSettings.TimelineViewMode` property.
26-
27-
Timeline ViewMode | Top tier Unit | Bottom tier Unit
28-
-----|-----|-----
29-
Year | Year | Month
30-
Month | Month | Week
31-
Week | Week | Day
32-
Day | Day | Hour
33-
Hour | Hour | Minute
16+
Set the timeline view mode using the [TimelineViewMode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.TimelineViewMode.html) property, with top tier displaying broader units (e.g., weeks) and bottom tier finer ones (e.g., days), ideal for project schedules.
3417

3518
### Week timeline mode
3619

37-
In the `Week` timeline mode, top tier of the schedule header displays the weeks, where as bottom tier of the header displays the days. Refer the following code example.
20+
In Week mode, the top tier shows weeks and the bottom tier days, suitable for short-term project tracking.
3821

3922
{% tabs %}
4023
{% highlight razor tabtitle="Index.razor" %}
@@ -88,7 +71,7 @@ In the `Week` timeline mode, top tier of the schedule header displays the weeks,
8871

8972
### Month timeline mode
9073

91-
In the `Month` timeline mode, top tier of the schedule header displays the months, whereas bottom tier of the schedule header displays its corresponding weeks. Refer the following code example.
74+
In Month mode, the top tier shows months and the bottom tier show weeks, ideal for medium-term planning.
9275

9376
{% tabs %}
9477
{% highlight razor tabtitle="Index.razor" %}
@@ -140,11 +123,9 @@ In the `Month` timeline mode, top tier of the schedule header displays the month
140123

141124
{% previewsample "https://blazorplayground.syncfusion.com/embed/hNLoXuheJyqkWrNI?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
142125

143-
![Blazor Gantt Chart with Month Timeline Mode](images/blazor-gantt-chart-month-mode.png)
144-
145126
### Year timeline mode
146127

147-
In the `Year` timeline mode, top tier of the schedule header displays the years, where as bottom tier of the schedule header displays its corresponding months. Refer the following code example.
128+
In Year mode, the top tier shows years and the bottom tier shows months, suitable for long-term projects.
148129

149130
{% tabs %}
150131
{% highlight razor tabtitle="Index.razor" %}
@@ -199,7 +180,7 @@ In the `Year` timeline mode, top tier of the schedule header displays the years,
199180

200181
### Day timeline mode
201182

202-
In the `Day` timeline mode, top tier of the schedule header displays the days, where as the bottom tier of the schedule header displays its corresponding hours. Refer the following code example.
183+
In Day mode, the top tier shows days and the bottom tier hours, ideal for detailed daily scheduling.
203184

204185
{% tabs %}
205186
{% highlight razor tabtitle="Index.razor" %}
@@ -253,7 +234,7 @@ In the `Day` timeline mode, top tier of the schedule header displays the days, w
253234

254235
### Hour timeline mode
255236

256-
An `Hour` timeline mode tracks the tasks in minutes scale. In this mode, the top tier of the schedule header displays hour scale and the bottom tier of the header displays its corresponding minutes.
237+
In Hour mode, the top tier shows hours and the bottom tier minutes, perfect for minute-level task tracking.
257238

258239
{% tabs %}
259240
{% highlight razor tabtitle="Index.razor" %}
@@ -305,9 +286,9 @@ An `Hour` timeline mode tracks the tasks in minutes scale. In this mode, the top
305286

306287
{% previewsample "https://blazorplayground.syncfusion.com/embed/hDLStaBezSOKXmrc?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
307288

308-
## Week start day customization
289+
## Customize week start day
309290

310-
In the Gantt Chart component, you can customize the week start day using the `GanttTimelineSettings.WeekStartDay` property. By default,the `GanttTimelineSettings.WeekStartDay` is set to 0, which specifies the Sunday as a start day of the week. But, you can customize the week start day by using the following code example.
291+
In the Gantt chart component, you can customize the week start day using the [GanttTimelineSettings.WeekStartDay](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttTimelineSettings.html#Syncfusion_Blazor_Gantt_GanttTimelineSettings_WeekStartDay) property. By default, the `GanttTimelineSettings.WeekStartDay` is set to **0**, which specifies the **Sunday** as a start day of the week. But, you can customize the week start day by using the following code example.
311292

312293
{% tabs %}
313294
{% highlight razor tabtitle="Index.razor" %}
@@ -362,7 +343,7 @@ In the Gantt Chart component, you can customize the week start day using the `Ga
362343

363344
## Customize automatic timescale update action
364345

365-
In the Gantt Chart component, the schedule timeline will be automatically updated when the tasks date values are updated beyond the project start date and end date ranges. This can be enabled or disabled using the `GanttTimelineSettings.UpdateTimescaleView` property.
346+
In the Gantt component, the schedule timeline will be automatically updated when the tasks date values are updated beyond the project start date and end date ranges. This can be enabled or disabled using the [GanttTimelineSettings.UpdateTimescaleView](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttTimelineSettings.html#Syncfusion_Blazor_Gantt_GanttTimelineSettings_UpdateTimescaleView) property.
366347

367348
{% tabs %}
368349
{% highlight razor tabtitle="Index.razor" %}
@@ -418,7 +399,7 @@ In the Gantt Chart component, the schedule timeline will be automatically update
418399

419400
## Timeline cells tooltip
420401

421-
In the Gantt Chart component, you can enable or disable the mouse hover tooltip of timeline cells using the [GanttTimelineSettings.ShowTooltip](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttTimelineSettings.html#Syncfusion_Blazor_Gantt_GanttTimelineSettings_ShowTooltip) property. The default value of this property is true. The following code example shows how to enable the timeline cells tooltip in Gantt Chart.
402+
In the Gantt Chart component, you can enable or disable the mouse hover tooltip of timeline cells using the [GanttTimelineSettings.ShowTooltip](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttTimelineSettings.html#Syncfusion_Blazor_Gantt_GanttTimelineSettings_ShowTooltip) property. The default value of this property is **true**.
422403

423404
{% tabs %}
424405
{% highlight razor tabtitle="Index.razor" %}
@@ -470,9 +451,17 @@ In the Gantt Chart component, you can enable or disable the mouse hover tooltip
470451

471452
{% previewsample "https://blazorplayground.syncfusion.com/embed/VDhotkVoJwAgwcxt?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
472453

473-
### Template
454+
## Timeline Template
474455

475-
Customizing the timeline cell tooltip in a Gantt Chart using [GanttTooltipSettings.TimelineCellTemplate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttTooltipSettings-1.html#Syncfusion_Blazor_Gantt_GanttTooltipSettings_1_TimelineCellTemplate) allows you to display additional information and elements in a more visually appealing and informative way. By combining data bindings and CSS styles, you can create custom templates that suit your specific needs and use cases. The following code example shows how to customize the timeline cell tooltip in Gantt Chart.
456+
In the Gantt component, you can customize timeline cells using the [GanttTooltipSettings.TimelineCellTemplate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttTooltipSettings-1.html#Syncfusion_Blazor_Gantt_GanttTooltipSettings_1_TimelineCellTemplate) property, allowing for the customization of HTML content within timeline cells. This feature enhances the visual appeal and enables personalized functionality.
457+
458+
When designing the timeline cells, you can utilize the following context properties within the template:
459+
460+
* `date`: Defines the date of the timeline cells.
461+
* `value`: Defines the formatted date value that will be displayed in the timeline cells.
462+
* `tier`: Defines whether the cell is part of the top or bottom tier.
463+
464+
The following code example how to customize the top tier to display the week's weather details and the bottom tier to highlight working and non-working days, with formatted text for holidays.
476465

477466
{% tabs %}
478467
{% highlight razor tabtitle="Index.razor" %}
@@ -564,4 +553,9 @@ Customizing the timeline cell tooltip in a Gantt Chart using [GanttTooltipSettin
564553
{% endhighlight %}
565554
{% endtabs %}
566555

567-
{% previewsample "https://blazorplayground.syncfusion.com/embed/BXreXkrIfwyMRUqR?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
556+
{% previewsample "https://blazorplayground.syncfusion.com/embed/BXreXkrIfwyMRUqR?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
557+
558+
## See also
559+
- [How to configure taskbars?](https://blazor.syncfusion.com/documentation/gantt-chart/taskbar)
560+
- [How to zoom the timeline?](https://blazor.syncfusion.com/documentation/gantt-chart/zooming)
561+
- [How to configure non-working days?](https://blazor.syncfusion.com/documentation/gantt-chart/scheduling-tasks#weekend-or-non-working-days)

0 commit comments

Comments
 (0)