Magidoc

updateDashboardWidget
Mutation

Updates an existing dashboard widget's configuration. Common update scenarios:

  1. Changing visualization type
  2. Updating filters or data source
  3. Modifying appearance settings
  4. Adjusting metrics or calculations

Arguments

#

_id

ID !
Non-null

title

titleColor

titleSize

sort

chartType

slateJson

XAxisCustomFieldId

XAxisTitle

YAxisCustomFieldId

YAxisTitle

YAxisGroupByCustomFieldId

groupByCustomFieldId

fileIds

[ID !]

noteId

portfolioViewId

hideHeader

goalId

goalIds

finishLineValue

showTitles

showLegend

ignoreContainerFilter

legendPosition

gridLines

showValueLabels

stackedLabelMode

showRowTotals

showColumnTotals

applyFormulaTo

showFlattenedData

showLinkedToProject

truncateLongNumbers

displayGroupsAs

barChartDisplayMode

lineChartDisplayMode

showSparklineTrend

sparklineTrendMode

Which values appear in the sparkline trend badge

showTrendCompareLabel

Show the compare-period label (e.g. vs Aug) in the number trend row

showTrendPreviousValue

Show the previous-period value in the number trend row

showTrendSparkline

Show the sparkline in the number trend row

displayGoalsBy

timeUnitsType

projectTreeLevelsToShow

[Int !]

isProjectTreeLevelActive

aggFunc

chartValueColors

chartColorPalette

projectId

projectIds

buttonLabel

sectionHeaderText

sectionHeaderTextAlignment

sectionHeaderLinePosition

isHidden

projectDetailsFields

projectDetailsStackedLayout

Whether project detail values appear below their labels instead of beside them

projectDetailsInlineEditing

Whether supported project details can be edited from the widget

contentTextAlignment

contentTextSize

contentTextColorPrimary

contentTextColorSecondary

workspaceId

containerId

Target dashboard or notebook when moving this widget to a different container. Omit for title, prompt, filter, chart settings, or content updates. Passing containerId attaches the widget to that container and adds a layout entry — use only when the user explicitly asked to move the widget.

colorThemeId

segmentColorOverrides

projectBudgetCategoryIds

projectBudgetDateRange

[Date !]

chartValuesState

buzzWidgetMode

buzzCustomPrompt

buzzLastGeneratedAt

buzzWidgetCustomPrompt

buzzWidgetStructuredData

buzzAnalysisMarkdown

crmReportType

crmReportBaseObject

crmReportAggregation

crmReportField

crmReportFilters

mapReportType

Response

#

Returns DashboardWidget .

Example

#