extends AntVAbstractCha return handleTableEmptyStrategy(chart) } - protected configTooltip(option: S2Options) { - configTooltip(option) + protected configTooltip(chart: Chart, option: S2Options) { + configTooltip(chart, option) } protected configHeaderInteraction(chart: Chart, option: S2Options) { @@ -62,12 +62,19 @@ export abstract class S2ChartView
extends AntVAbstractCha
switch (cell.cellType) {
case 'dataCell':
field = find(metaConfig, item => item.field === meta.valueField)
+ if (meta.fieldValue === 0) {
+ content = '0'
+ }
if (meta.fieldValue) {
content = field?.formatter?.(meta.fieldValue)
}
break
case 'rowCell':
case 'colCell':
+ if (meta.field === SERIES_NUMBER_FIELD) {
+ content = cell.getTextShape()['attrs'].text
+ break
+ }
content = meta.label
field = find(metaConfig, item => item.field === content)
if (field) {
diff --git a/core/core-frontend/src/views/chart/components/js/panel/types/index.ts b/core/core-frontend/src/views/chart/components/js/panel/types/index.ts
index b527c00c95..62b240473a 100644
--- a/core/core-frontend/src/views/chart/components/js/panel/types/index.ts
+++ b/core/core-frontend/src/views/chart/components/js/panel/types/index.ts
@@ -100,6 +100,12 @@ export abstract class AntVAbstractChartView extends AbstractChartView {
selectorSpec: EditorSelectorSpec = {
'misc-style-selector': {
title: `${t('chart.size')}`
+ },
+ 'dual-y-axis-selector': {
+ title: `${t('chart.yAxis')}`
+ },
+ 'x-axis-selector': {
+ title: `${t('chart.xAxis')}`
}
}
protected constructor(library: ChartLibraryType, name: string, defaultData?: any[]) {
diff --git a/pom.xml b/pom.xml
index 2963b349bd..e1d9582d8e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,7 +19,7 @@