Merge pull request #721 from dataease/pr@v1.2@fix_ui_chart

fix: 颜色选择器去掉清空;矩形树图标签修复;doris 计算字段支持小数
This commit is contained in:
XiaJunjie2020 2021-08-27 18:40:39 +08:00 committed by GitHub
commit 74a140931f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View File

@ -121,6 +121,8 @@ public class DorisQueryProvider extends QueryProvider {
fieldName = String.format(DorisConstants.FROM_UNIXTIME, cast, DorisConstants.DEFAULT_DATE_FORMAT);
} else if (f.getDeType() == 2) {
fieldName = String.format(DorisConstants.CAST, originField, DorisConstants.DEFAULT_INT_FORMAT);
} else if (f.getDeType() == 3) {
fieldName = String.format(DorisConstants.CAST, originField, DorisConstants.DEFAULT_FLOAT_FORMAT);
} else {
fieldName = originField;
}

View File

@ -349,3 +349,7 @@ div:focus {
width: 5px;
height: 5px;
}
.el-color-dropdown__link-btn {
display: none!important;
}

View File

@ -54,6 +54,7 @@ export function baseTreemapOption(chart_option, chart) {
// y.type = 'treemap'
chart_option.series[0].data.push(y)
}
chart_option.series[0].name = chart.data.series[0].name
}
}
// console.log(chart_option);