Flot“legendColorBox”我不知道如何编辑 javascript 来“填充”颜色?
我对 javascript 不太了解,所以我无法真正弄清楚这一点。我更改了 .js 文件中“legendColorBox”的一些变量,但我似乎无法让颜色填充整个框...请帮忙!
请参阅“痛苦指数”和“失业率”键...它们仅填充了大约 70%。请帮忙!
I don't know a whole lot about javascript so I can't really figure this one out. I changed some of the variable for the "legendColorBox" in the .js file, but I can't seem to get the color to fill up the entire box... Please help!
See the keys "Misery Index" and "Unemployment Rate" ... They are only about70% filled. Please help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
原因是
图例颜色框上有样式。不确定这种风格的根源。看起来您应该能够使用以下内容来覆盖:
我还没有测试该选择器,但我认为它是正确的。 最好的解决方案是找到根本原因,但如果找不到,请尝试覆盖。
The cause is there is a
style on the legend color boxes. Not certain the root of that style. It looks like you should be able to over-ride with something like:
I have not tested that selector, but I think it is correct. The best solution is to find the root cause, but if not give the override a try.
您需要覆盖以下内容的宽度:(
默认情况下为 5px)。
You need to override the width for the following:
(By default it is 5px).