We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd8151e commit 9f7eadbCopy full SHA for 9f7eadb
src/plots/tiny-line/constants.ts
@@ -5,7 +5,7 @@ export const DEFAULT_TOOLTIP_OPTIONS = {
5
showTitle: false,
6
shared: true,
7
showMarkers: false,
8
- customContent: (x: number, data: Data) => `${get(data, [0, 'data', 'y'], 0).toFixed(1)}`, // 默认给个格式化
+ customContent: (x: string, data: any[]) => `${get(data, [0, 'data', 'y'], 0).toFixed(1)}`, // 默认给个格式化
9
containerTpl: '<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',
10
itemTpl: '<span>{value}</span>',
11
domStyles: {
0 commit comments