我在我的应用程序中使用Flot,它工作正常.我想从图表的背景中删除垂直线和水平线.我试过这个但是我无法实现这个功能.
grid: {
verticalLines:false,
horizontalLines:false
}
Run Code Online (Sandbox Code Playgroud)
谁可以在这方面帮助我?
我正在使用flot API来构建条形图.我成功地绘制了条形图.但我没有获得这些图表的工具提示.我已经尝试了很多,但我没有实现这一点.我的代码是:
$(function () {
var a1 = [
[0, 100],
[1, 200],
[2,300],
[3,400],
[4,500]
];
var a2 = [
[0, 90],
[1, 150],
[2,250],
[3,380],
[4,450]
];
//var ticks=[[0,"Overall"],[1,"SEA"],[2,"INDIA"],[3,"NEA"],[4,"PZ"]];
var data = [
{
label: "Pre Transformation",
data: a1
},
{
label: "Post Transformation",
data: a2
}
];
$.plot($("#placeholder2"), data, {
series: {
bars: {
show: true,
barWidth: 0.13,
order: 1
}
},
xaxis: {
ticks: [[0,"Overall"],[1,"SEA"],[2,"INDIA"],[3,"NEA"],[4,"PZ"]]
//tickLength: 0
},
grid: {
hoverable: true,
clickable:true
//mouseActiveRadius: 30 //specifies …Run Code Online (Sandbox Code Playgroud)