feat: Adds Histogram chart migration logic (#28780)

This commit is contained in:
Michael S. Molina
2024-06-05 13:33:50 -03:00
committed by GitHub
parent dabb4e064f
commit df0b1cb8ed
11 changed files with 118 additions and 6 deletions

View File

@@ -25,8 +25,10 @@ export default function buildQuery(formData: HistogramFormData) {
return buildQueryContext(formData, baseQueryObject => [
{
...baseQueryObject,
extras: { where: `${column} IS NOT NULL` },
columns: [...groupby, column],
post_processing: [histogramOperator(formData, baseQueryObject)],
metrics: undefined,
},
]);
}

View File

@@ -136,9 +136,10 @@ export default function transformProps(
const echartOptions: EChartsOption = {
grid: {
...defaultGrid,
bottom: 30,
left: 30,
right: 30,
left: '5%',
right: '5%',
top: '10%',
bottom: '10%',
},
xAxis: {
data: xAxisData,