我正在使用 zingcharts 创建图表。我的图表有一个包含很多条目的图例,它与我的图表有很多重叠。
浏览我读过的api
adjustLayout :强制绘图区域考虑图例位置并防止与其重叠。
听起来很完美..我将其设置为 true,但没有任何反应。wtf。有人有这方面的经验吗?
{
"gui":{
"behaviors":[
{
"id": "SaveAsImage",
"text": "Save As Image",
"function": "exportimageurl"
}
]
},
"graphset":[
{
"type":"mixed",
"background-color":"#E6E6E6",
"stacked":"0",
"plotarea":{
"margin":"'.$margin.'"
},
"title":{
"text":"'.$title.'",
"align":"center",
"font-family":"Arial",
"font-size":"18px",
"font-color":"#000000",
"font-weight":"bold",
"background-color":"#E6E6E6"
},
"legend":{
"adjustLayout": true,
"position":"50% 100%",
"margin":"30 3 5 3",
"layout":"x2",
"font-family":"arial",
"font-size":"8px",
"background-color":"#E6E6E6",
"toggle-action":"remove",
"width":"435px",
"item":{
"marker-style":"square",
"font-color":"#000000",
"border-width":"0px"
}
}