mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
feat: Adds Histogram chart migration logic (#28780)
This commit is contained in:
committed by
GitHub
parent
dabb4e064f
commit
df0b1cb8ed
@@ -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,
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user