1
퍼센트 기호를 추가하는 가장 좋은 방법은 무엇입니까?EC 하트는 모든 값을 퍼센트 기호로 표시합니다
tooltip : {
trigger: 'item',
formatter: "{a} <br/>{b} : {c} ({d}%)"
}
을하지만 여러 범주와 값이나 수가 변할 때이있을 때 매우 성가신 :
이 사용 행할 수 있습니다.
퍼센트 기호를 추가하는 가장 좋은 방법은 무엇입니까?EC 하트는 모든 값을 퍼센트 기호로 표시합니다
tooltip : {
trigger: 'item',
formatter: "{a} <br/>{b} : {c} ({d}%)"
}
을하지만 여러 범주와 값이나 수가 변할 때이있을 때 매우 성가신 :
이 사용 행할 수 있습니다.
도 기능이 될 수 있습니다. 이것을 사용하면 무엇을 표시하고 표시해야하는지 완전히 제어 할 수 있습니다.
예 :
function __handleTooltip(seriesConfiguration) {
// Your code here
// return undefined, if you don't want to show a tooltip
// return a string, if you want to show a tooltip
}
seriesConfiguration
다소처럼 보이는 :
// This is a SCATTER-Entry
// But line/bar is just similar, it just has different "data" and "value".
{
"componentType": "series",
"componentSubType": "scatter",
"seriesType": "scatter",
"seriesIndex": 0,
"seriesName": "Daten",
"name": "",
"dataIndex": 9,
"data": [
748,
2206,
2954,
"999999999",
"Some other Value",
""
],
"value": [
748,
2206,
2954,
"999999999",
"Some other Value",
""
],
"color": "rgba(79,142,206,1)",
"$vars": [
"seriesName",
"name",
"value"
]
}
그냥 객체를 인쇄 할 CONSOLE.LOG를 사용, 나머지는 간단합니다.