In this article
Configure Chart widget as a pie chart using series and category date properties, with legend and navigation options.
Here's a sample code for configuring a Chart widget as a pie chart. Keep in mind that the chart's functionality, appearance, and behavior will be determined by the available data and other settings and selections in your Studio report. Thus, you may need to modify this code.
widget chart {
label: "Pie"
navigateTo: "Responses"
legend: leftMiddle
chart pie {
}
series {
value: count(survey:responseId)
label: "Responses"
percent: true
}
category date {
value: survey:interview_start
breakdownBy: calendarMonth
format: dateFormat
label: "Month"
start: "2019-01-01"
end: "2020-01-01"
}
removeEmptyCategories: true
}