我试图在我的网站上正确显示一个折线图,但由于某种原因,它想要溢出图形容器.我已经尝试将Box-sizing重置为initial,设置隐藏在图形的所有子元素上的溢出,似乎没有任何工作.我不知道为什么会这样,并且想知道是否有人在自己面前遇到过这个问题?
我在下面添加了一张图片,下面是我正在使用的图片,用于设置折线图的对象.
{
"type": "serial","theme": "light","marginRight": 80,"autoMarginOffset": 20,"marginTop": 7,"dataProvider": queryData.data.result,"valueAxes": [{
"axisAlpha": 0.2,"dashLength": 1,"position": "left"
}],"mouseWheelZoomEnabled": true,"graphs": [{
"id": "g1","balloonText": "[[value]]","bullet": "round","bulletBorderAlpha": 1,"bulletColor": "#FFFFFF","hideBulletsCount": 50,"title": "red line","valueField": "value","useLineColorForBulletBorder": true,"balloon": {
"drop": true
}
}],"chartScrollbar": {
"autoGridCount": true,"graph": "g1","scrollbarHeight": 40
},"chartCursor": {
"limitToGraph": "g1"
},"categoryField": "name","dataDateFormat": "DD/MM/YYYY HH:NN:SS","categoryAxis": {
"parseDates": true,"axisColor": "#DADADA","minorGridEnabled": true
},"export": {
"enabled": true
}
}