Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip on axis labels which are truncated #19616

Closed
kelp-harshal opened this issue Feb 14, 2024 · 1 comment · Fixed by #16315
Closed

Tooltip on axis labels which are truncated #19616

kelp-harshal opened this issue Feb 14, 2024 · 1 comment · Fixed by #16315

Comments

@kelp-harshal
Copy link

What problem does this feature solve?

get full view of labels which are now truncated

What does the proposed API look like?

{
gridIndex: index,
show: index === 0,
position: 'top',
type: 'category',
data: this.graphData.map((item: ISourcingGraphView, i: number) => {
return {
value: i,
textStyle: {
overflow: 'truncate',
width: item['show_group_by'] ? item['group_width'] : 0,
tooltip: item['tooltip']
},
};
}),
alignTracks: false,
axisLabel: {
show: true,
position: 'top',
interval: 0,
formatter: (value: number) => {
const showGeo = Boolean(this.activeGraphType?.showGeo);
return showGeo
? this.graphData[value as number]['geography_code']
: this.graphData[value as number]['show_group_by']
? this.graphData[value as number]['group_by']
: '';
},
},
axisLine: {
onZero: true,
},
axisTick: {
show: false,
},
}

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Feb 14, 2024
@plainheart
Copy link
Member

plainheart commented Feb 15, 2024

#16315 is for this feature but it still needs discussion. You can refer to https://codepen.io/plainheart/pen/jOGBrmJ as a workaround.

@plainheart plainheart added topic: tooltip topic: label topic: axis and removed pending We are not sure about whether this is a bug/new feature. labels Feb 15, 2024
@plainheart plainheart linked a pull request Nov 15, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants