加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.html 2.91 KB
一键复制 编辑 原始数据 按行查看 历史
Delli 提交于 2019-01-15 21:16 . lj
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
<script src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>
<style>
.item {
height: 180px;
transition: linear 0.2s
}
.itemFontTitle {
font-size: 30px;
text-align: center;
line-height: 100px;
color: #ffffff
}
.itemFont {
font-size: 50px;
text-align: center;
color: #ffffff
}
.item:hover {
transform: scale(1.03)
}
</style>
</head>
<body>
<div class="panel admin-panel">
<!-- <div class="panel-head"><strong class="icon-reorder">首页</strong></div> -->
<div class="conatiner-layout">
<div class="line-middle">
<div class="x4">
<div class="bg-green item">
<div class="itemFontTitle">酒总数</div>
<div class="itemFont">560</div>
</div>
</div>
<div class="x4">
<div class="bg-blue item">
<div class="itemFontTitle">资产总额</div>
<div class="itemFont">17876</div>
</div>
</div>
<div class="x4">
<div class="bg-red item">
<div class="itemFontTitle">总销量</div>
<div class="itemFont">87</div>
</div>
</div>
</div>
<div id="container"></div>
</div>
</div>
</body>
<script>
var chart = Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: '年销量'
},
// subtitle: {
// text: '请点击按钮查看坐标轴变化'
// },
xAxis: {
categories: ['一月', '二月', '三月', '四月', '五月', '六月',
'七月', '八月', '九月', '十月', '十一月', '十二月'
]
},
yAxis: {
labels: {
x: -15
},
title: {
text: '项目'
}
},
series: [{
name: '使用次数',
data: [434, 523, 345, 785, 565, 843, 726, 590, 665, 434, 312, 432]
}],
responsive: {
rules: [{
condition: {
maxWidth: 500
},
// Make the labels less space demanding on mobile
chartOptions: {
xAxis: {
labels: {
formatter: function () {
return this.value.replace('', '')
}
}
},
yAxis: {
labels: {
align: 'left',
x: 0,
y: -2
},
title: {
text: ''
}
}
}
}]
}
});
function setSize(width) {
chart.setSize(width, 300);
}
</script>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化