In this article
Initiative Timeline in Action Planner shows initiatives and corresponding activity with a metric graph. Use CDL code to customize.
The Initiative Timeline widget in Action Planner offers users a visual representation of initiatives and their corresponding activity during a selected time period. The initiatives are categorized based on a user-defined list and displayed along a timeline. A metric graph above the timeline shows the correlation between initiative execution and metrics. This feature can be useful for summarizing initiatives taken in the past 12 months and the impact on the business.
Example of an initiative timeline widget
Code Example
Here is an example of the CDL code for the Initiative Timeline widget. Keep in mind that to customize the code for your use case, you will need to make edits to specify the relevant tables, lists, questions, etc.
page "Example1" {
widget initiativeTimeline {
size: medium
label: "Timeline Chart"
includeLists: list001, list002
defaultList: list001
table: apTable:
animation: true
dateFormat: dateFormat
format: floatNumber
trendPalette: '#000000', '#000000', '#000000'
ganttPalette: '#ffffff', '#ffffff', '#ffffff'
chart line {
lineWidth: 5
}
series {
label: "LTR, avg"
value: average(score(survey:Q1))
format: floatNumber
}
category date {
value: survey:interview_start
breakdownBy: calendarMonth
format: dateFormat
}
axis primary {
minValue: 6
maxValue: 7
unit: g
}
}
}
page "Example2" {
widget initiativeTimeline {
size: medium
label: "Timeline Chart"
includeLists: list001, list002
defaultList: list001
table: apTable:
dateFormat: dateFormat
format: floatNumber
trendPalette: '#000000', '#000000', '#000000'
ganttPalette: '#ffffff', '#ffffff', '#ffffff'
chart line {
lineWidth: 5
}
selector {
label: "Survey Rating"
option #option1 {
label: "avg, Q1"
content {
series {
value: average(score(survey:Q1))
label: "LTR, avg"
format: floatNumber
}
}
}
option #option2 {
label: "avg, Q2"
content {
series {
value: average(score(survey:Q2))
label: "LTR, avg"
format: floatNumber
}
}
}
}
category date {
value: survey:interview_start
breakdownBy: calendarMonth
format: dateFormat
}
}
}