[英]YUI Charts Styling
Through my search for a open-source charting system, I found the YUI library. 通过搜索开源图表系统,我找到了YUI库。 So here is the question.
所以这是问题。 How can I make the x-axis and y-axis transparent.
如何使x轴和y轴透明。
style: { border: {color: 0xD0D696, size: 1}, font: {name: "Arial", size: 10, color: 0x559330}, dataTip: { border: {color: 0x559330, size: 1}, font: {name: "Arial", size: 13, color: 0x586b71} }, xAxis: { color: 0x559330 }, yAxis: { color: 0x559330 , majorTicks: {color: 0x2e434d, length: 4}, minorTicks: {color: 0x2e434d, length: 2}, majorGridLines: {size: 1, color: 0xF7ECBB} } }
样式:{边框:{颜色:0xD0D696,大小:1},字体:{名称:“ Arial”,大小:10,颜色:0x559330},数据提示:{边框:{颜色:0x559330,大小:1},字体: {name:“ Arial”,大小:13,颜色:0x586b71}},xAxis:{ 颜色:0x559330 },yAxis:{ 颜色:0x559330 ,majorTicks:{color:0x2e434d,长度:4},minorTicks:{color:0x2e434d ,长度:2},majorGridLines:{大小:1,颜色:0xF7ECBB}}}
The bolded text is what I want to change. 粗体字是我要更改的内容。 I tried color: "transparent", but with no luck.
我尝试了颜色:“透明”,但没有运气。 I checked the docs briefly, but no reference to transparent backgrounds.
我简短地检查了文档,但没有引用透明背景。
According to the reference, you should set the size to 0. 根据参考,您应该将大小设置为0。
xAxis: { size: 0 }, yAxis: { size: 0}
size A numeric value that represents the thickness of the axis itself. size一个数值,代表轴本身的厚度。 A value of 0 will hide the axis (but not the labels).
值为0将隐藏轴(但不隐藏标签)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.