| | |
| | | if(toolTipOption.showCategory==true && opts.categories){ |
| | | textList.unshift({text:opts.categories[opts.tooltip.index],color:null}) |
| | | } |
| | | if (textList[0].text.split("/")[0] == "换行") { |
| | | let newTextList = [{ |
| | | "color": "#FCDB66", |
| | | "legendShape": "circle", |
| | | "text": textList[0].text.split("/")[1] |
| | | }, |
| | | { |
| | | "color": "transparent", |
| | | "text": textList[0].text.split("/")[2] |
| | | }, |
| | | { |
| | | "color": "transparent", |
| | | "text": textList[0].text.split("/")[3] |
| | | }, |
| | | ] |
| | | textList = newTextList |
| | | } |
| | | var fontSize = toolTipOption.fontSize * opts.pix; |
| | | var lineHeight = toolTipOption.lineHeight * opts.pix; |
| | | var boxPadding = toolTipOption.boxPadding * opts.pix; |