$(document).ready(function () {
var d1 = [[1262304000000, 6], [1264982400000, 3057], [1267401600000, 20434], [1270080000000, 31982], [1272672000000, 26602], [1275350400000, 27826], [1277942400000, 24302], [1280620800000, 24237], [1283299200000, 21004], [1285891200000, 12144], [1288569600000, 10577], [1291161600000, 10295]];
var d2 = [[1262304000000, 5], [1264982400000, 200], [1267401600000, 1605], [1270080000000, 6129], [1272672000000, 11643], [1275350400000, 19055], [1277942400000, 30062], [1280620800000, 39197], [1283299200000, 37000], [1285891200000, 27000], [1288569600000, 21000], [1291161600000, 17000]];
var data1 = [
{
label: "Data 1",
data: d1,
color: '#17a084'
},
{
label: "Data 2",
data: d2,
color: '#127e68'
}
];
$.plot($("#flot-chart1"), data1, {
xaxis: {
tickDecimals: 0
},
series: {
lines: {
show: true,
fill: true,
fillColor: {
colors: [{
opacity: 1
}, {
opacity: 1
}]
},
},
points: {
width: 0.1,
show: false
},
},
grid: {
show: false,
borderWidth: 0
},
legend: {
show: false,
}
});
var data2 = [
{
label: "Data 1",
data: d1,
color: '#19a0a1'
}
];
$.plot($("#flot-chart2"), data2, {
xaxis: {
tickDecimals: 0
},
series: {
lines: {
show: true,
fill: true,
fillColor: {
colors: [{
opacity: 1
}, {
opacity: 1
}]
},
},
points: {
width: 0.1,
show: false
},
},
grid: {
show: false,
borderWidth: 0
},
legend: {
show: false,
}
});
var data3 = [
{
label: "Data 1",
data: d1,
color: '#fbbe7b'
},
{
label: "Data 2",
data: d2,
color: '#f8ac59'
}
];
$.plot($("#flot-chart3"), data3, {
xaxis: {
tickDecimals: 0
},
series: {
lines: {
show: true,
fill: true,
fillColor: {
colors: [{
opacity: 1
}, {
opacity: 1
}]
},
},
points: {
width: 0.1,
show: false
},
},
grid: {
show: false,
borderWidth: 0
},
legend: {
show: false,
}
});
$('.i-checks').iCheck({
checkboxClass: 'icheckbox_square-green',
radioClass: 'iradio_square-green',
});
$(".todo-list").sortable({
placeholder: "sort-highlight",
handle: ".handle",
forcePlaceholderSize: true,
zIndex: 999999
}).disableSelection();;
var mapData = {
"US": 498,
"SA": 200,
"CA": 1300,
"DE": 220,
"FR": 540,
"CN": 120,
"AU": 760,
"BR": 550,
"IN": 200,
"GB": 120,
"RU": 2000
};
$('#world-map').vectorMap({
map: 'world_mill_en',
backgroundColor: "transparent",
regionStyle: {
initial: {
fill: '#e4e4e4',
"fill-opacity": 1,
stroke: 'none',
"stroke-width": 0,
"stroke-opacity": 0
}
},
series: {
regions: [{
values: mapData,
scale: ["#1ab394", "#22d6b1"],
normalizeFunction: 'polynomial'
}]
},
});
});
一键复制
编辑
Web IDE
原始数据
按行查看
历史