Mustafa Dikici
08/15/2024, 12:00 PMfilter
prop but i could not find how am i going to get current filters on dashboard. My question is how can i get/apply current filters of dashboard when developing plugins? Are there any examples I can have a look? Cheers!Francisco Antunes
08/15/2024, 12:51 PMMustafa Dikici
08/15/2024, 3:33 PM<ComboChart
primaryMeasures={[Md.Payments]}
viewBy={[Md.DateDatasets.CreatedAt.CreatedAtDayOfYear.Default]}
config={{ legend: { enabled: false } }}
/>
and this is how i register:
newDashboardItem(
newCustomWidget('myWidget1', 'myCustomWidget', {
dateDataSet: Md.DateDatasets.CreatedAt,
ignoreDashboardFilters: [],
}),
{
xl: {
gridWidth: 12,
gridHeight: 1,
},
}
)
in the example above date filters are not applied on chart.
For filtered data should i use useCustomWidgetExecutionDataView
always?
i am trying to fetch data like below
const dataViewTask = useCustomWidgetExecutionDataView({
widget: widget,
execution: {
seriesBy: [Md.Payments],
slicesBy: [Md.DateDatasets.CreatedAt.CreatedAtDayOfYear.Default],
},
});
but still date filters are not appliedFrancisco Antunes
08/15/2024, 3:44 PMJakub Talaj
08/16/2024, 8:56 AMMustafa Dikici
08/16/2024, 8:57 AMJakub Talaj
08/16/2024, 8:57 AM