如果字长太长,我想显示 Vue 工具提示或悬停时,我需要显示标签的全名。我尝试了很多研究,但没有任何效果。
https://apexcharts.com/docs/multiline-text-and-line-breaks-in-axes-labels/# https://github.com/apexcharts/apexcharts.js/issues/2281。
我希望当用户将鼠标悬停在 Y 轴标签上时,我需要显示全文。
我正在使用条形图
这是我对 API 的回复
[
{
"name": "Meetings",
"data": [
15,
05,
10,
10,
10,
10,
10,
10,
10,
10
]
},
{
"name": "R & D",
"data": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
]
}
]
[
{
"name": "Meetings",
"data": [
15,
05,
10,
10,
10,
10,
10,
10,
10,
10
]
},
{
"name": "R & D",
"data": [
10,
10,
10, …
Run Code Online (Sandbox Code Playgroud)Run Code Online (Sandbox Code Playgroud) HTML部分
<ion-view cache-view="false" view-title="" hide-nav-bar="true">
<ion-content class="padding input-center" style="background: url(img/background.jpg) center; background-size: cover;" ng-show="viewEntered">
<div class="row responsive-sm padding remvoeBP">
<div class="col">
<div class="app-logo"><img src="img/logo.png"></div>
<div class="row">
<div class="col">
<div class="row">
<div class="col">
<label class="item item-input" ng-hide="showCity" style="background-color:transparent; border:none; border-bottom:1px solid white;">
<i class="icon ion-location placeholder-icon" style="color:black;"></i>
<input type="text" placeholder="City" ng-change="searchCity(city_suggestion)" ng-model="city_suggestion">
</label>
<label class="item item-input" ng-show="showCity" style="background-color:transparent; border:none; border-bottom:1px solid white;">
<i class="icon ion-location placeholder-icon" style="color:black;"></i>
<input type="text" ng-click="changeCity()" ng-model="cityName">
</label>
<div ng-show="cityList" class="list">
<li class="item" ng-click="selectedCity(city.city_id, city.name)" ng-repeat="city in …Run Code Online (Sandbox Code Playgroud)