mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
Merge pull request #13916 from dataease/pr@dev-v2@fix_chart_datetime_field
fix(图表): 修复散点图和象限图时间字段显示异常
This commit is contained in:
@@ -198,6 +198,11 @@ export class Quadrant extends G2PlotChartView<ScatterOptions, G2Scatter> {
|
||||
})
|
||||
const baseOptions: ScatterOptions = {
|
||||
colorField: 'field',
|
||||
meta: {
|
||||
field: {
|
||||
type: 'cat'
|
||||
}
|
||||
},
|
||||
quadrant: {
|
||||
...defaultBaselineQuadrant
|
||||
},
|
||||
|
||||
@@ -108,6 +108,11 @@ export class Scatter extends G2PlotChartView<ScatterOptions, G2Scatter> {
|
||||
xField: 'field',
|
||||
yField: 'value',
|
||||
colorField: 'category',
|
||||
meta: {
|
||||
field: {
|
||||
type: 'cat'
|
||||
}
|
||||
},
|
||||
appendPadding: getPadding(chart),
|
||||
interactions: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user