@@ -80,7 +80,7 @@ const addMeasuresAndCategoriesByCount = (widget: IWidget, dashboardConfig: IDash
8080 if ( measures . length >= measureLength && ! specificMeasure ) {
8181 for ( let index = 0 ; index < measureLength ; index ++ ) {
8282 const measure = measures [ index ]
83- if ( measure . scatterAttributeAsMeasure ) continue
83+
8484 if ( measure . type === 'pythonFunction' ) {
8585 addFunctionColumnToTheMeasuresForThePostData ( dataToSend . aggregations . measures , measure as IWidgetFunctionColumn )
8686 continue
@@ -93,7 +93,6 @@ const addMeasuresAndCategoriesByCount = (widget: IWidget, dashboardConfig: IDash
9393 } else if ( measures . length >= 1 && specificMeasure ) {
9494 const specificMeasure = widget . settings . configuration . grouping . secondDimension . serie
9595 const measure = measures . filter ( ( measure ) => measure . columnName === specificMeasure ) [ 0 ]
96- if ( measure . scatterAttributeAsMeasure ) return
9796 if ( measure ) {
9897 if ( measure . type === 'pythonFunction' ) {
9998 addFunctionColumnToTheMeasuresForThePostData ( dataToSend . aggregations . measures , measure as IWidgetFunctionColumn )
@@ -106,13 +105,13 @@ const addMeasuresAndCategoriesByCount = (widget: IWidget, dashboardConfig: IDash
106105 }
107106 }
108107
109- const categories = widget . columns . filter ( ( column ) => column . fieldType !== 'MEASURE' || column . scatterAttributeAsMeasure )
108+ const categories = widget . columns . filter ( ( column ) => column . fieldType !== 'MEASURE' )
110109 const categoryLength = noOfCategories == - 1 ? categories . length : noOfCategories
111110
112111 if ( categories . length >= categoryLength ) {
113112 for ( let index = 0 ; index < categoryLength ; index ++ ) {
114113 const category = categories [ index ]
115- const categoryToPush = { id : category . alias , alias : category . alias , columnName : category . columnName , orderColumn : category . alias , orderType : category . orderType , funct : 'NONE' } as any
114+ const categoryToPush = { id : category . alias , alias : category . alias , columnName : category . columnName , orderColumn : category . alias , orderType : category . orderType , funct : category . aggregation ?? 'NONE' } as any
116115 dataToSend . aggregations . categories . push ( categoryToPush )
117116 }
118117 }
0 commit comments