I still have a question, how to set the width and height of the tooltip. Among the five pie charts on the same page, three of my tooltips have become inexplicably large. These three are written in the same method. The configuration items are as follows
var charts=echarts.init(document.getElementById("app");
option={
tooltip: {
trigger: 'item',
formatter: "{a} <br/>{b}: ({d}%)"
},
series:[
{
name:"广告来源",
type:"pie",
radius:"50%",
data:[
{value:10,name:"a"},
{value:20,name:"b"},
{value:30,name:"c"}
]
}
]
}
charts.setOption(option)
The size of the tooltip is basically stretched by the content inside. Take a look at these three pie charts that display abnormalities to see if there is a problem with the data. At the same time, related attribute configuration can be found in the official "Configuration Item Manual": http://echarts.baidu.com/opti...
I found the reason. I added a p style to this tooltip and just changed the css selector
Most of the time, it’s not that we don’t work hard, but that we don’t know where to start. I know how important a good learning material is. We usually waste a lot of time looking for resources. Sometimes even if we have video resources, but without a clear learning route, we will still get twice the result with half the effort. There are tons of resources, so we don’t have to look for them everywhere. It’s enough to pay attention to [Bajie Programmer]. Systematic learning programming
What can we do?
1. Provide the latest video learning resources
2. Provide learning routes and corresponding learning resources for beginners
3. For a training institution’s 15,000 yuan learning course, we will send you 200G+ video learning resources for free
4. For CSDN online courses priced at 2,000-3,000 yuan, we are Baidu Cloud Link.
It is enough to pay attention to [Bajie Programmer], and it is not as expensive as a training class.