Flot 使我们能够自定义网格边界。此处记录了以下内容:
grid: {
borderWidth: number or object with "top", "right", "bottom" and "left" properties with different widths
borderColor: color or null or object with "top", "right", "bottom" and "left" properties with different colors
}
但是,我无法想出一个成功的示例。要创建一个带有白色顶部和左侧边框的自定义网格,我尝试了以下方法,但它不起作用:
grid: {
borderWidth: {top: 1, right: 0, bottom: 0, left: 1},
borderColor: {top: "#FFF", left: "#FFF"}
}
任何人都可以提供一个工作示例吗?