当前位置:网站首页>datav漂亮数据屏制作体验
datav漂亮数据屏制作体验
2022-07-26 10:29:00 【矿工学编程】
1、原生图表
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- import CSS -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<style>
.bg { padding: 0.2rem 0.2rem 0 0.2rem; background-image: url('/img/pageBg.png'); background-size: cover; background-position: center center; }
</style>
</head>
<body class="bg">
<div id="app">
<dv-border-box-11 title="dv-border-box-11">
<div id="main" style="width: 600px;height:400px;"></div>
</dv-border-box-11>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script src="~/lib/datav/datav.min.vue.js"></script>
<script src="~/lib/datav/datav.map.vue.js"></script>
<script src="~/lib/datav/echarts.min.js"></script>
<script>
new Vue({
el: '#app',
data: function () {
return {
}
},
methods: {
myEcharts(){
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById('main'));
// 指定图表的配置项和数据
var option = {
title: {
text: 'ECharts 入门示例'
},
tooltip: {},
legend: {
data:['销量']
},
xAxis: {
data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]
},
yAxis: {},
series: [{
name: '销量',
type: 'bar',
data: [5, 20, 36, 10, 10, 20]
}]
};
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
}
},
mounted() {
this.myEcharts();
}
})
</script>
</html>
2、davaV封装图表
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- import CSS -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<style>
.bg { padding: 0.2rem 0.2rem 0 0.2rem; background-image: url('/img/pageBg.png'); background-size: cover; background-position: center center; }
</style>
</head>
<body class="bg">
<div id="app">
<dv-border-box-11 title="dv-border-box-11">
<dv-active-ring-chart :config="config" style="width:300px;height:300px" />
</dv-border-box-11>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script src="~/lib/datav/datav.min.vue.js"></script>
<script src="~/lib/datav/datav.map.vue.js"></script>
<script src="~/lib/datav/echarts.min.js"></script>
<script>
new Vue({
el: '#app',
data: function () {
return {
config: {
data: [
{
name: '周口',
value: 55
},
{
name: '南阳',
value: 120
},
{
name: '西峡',
value: 78
},
{
name: '驻马店',
value: 66
},
{
name: '新乡',
value: 80
}
]
}
}
},
methods: {
},
mounted() {
}
})
</script>
</html>
边栏推荐
- Some descriptions of DS V2 push down in spark
- [qualcomm][network] QTI service analysis
- Redis realizes the correct posture of token bucket
- 数据库的复习--3.SQL语言
- 微信公众号发布提醒(微信公众号模板消息接口)
- On the compilation of student management system of C language course (simple version)
- 数据库的复习--1.概述
- 议程速递 | 7月27日分论坛议程一览
- 【Halcon视觉】形态学腐蚀
- 2022/07/25------字符串的排列
猜你喜欢
随机推荐
【Halcon视觉】数组
【Halcon视觉】仿射变换
json_object_put: Assertion `jso->_ref_count > 0‘ failed.Aborted (core dumped)
Learning about opencv (4)
Kaptcha image verification code integration
【Halcon视觉】软件编程思路
面试第二家公司的面试题及答案(二)
Learning about tensorflow (I)
简单化构造函数的继承方法(二)- ES6中的class继承
Introduction to data analysis | kaggle Titanic mission
句句解析js中的完美 / 缓冲运动框架(新手专用)
Use of Android grendao database
Employee information management system based on Web
Okaleido ecological core equity Oka, all in fusion mining mode
【Halcon视觉】形态学膨胀
js下载文件,FileSaver.js导出txt、excel文件
Using native JS to realize custom scroll bar (click to reach, drag to reach)
Mlx90640 infrared thermal imager temperature sensor module development notes (6)
【Halcon视觉】极坐标变换
Some cutting-edge research work sharing of SAP ABAP NetWeaver containerization





![[Halcon vision] Fourier transform of image](/img/9c/d6ed4ab3e40f706f3b5b8b5cc51db9.png)


![[Halcon vision] threshold segmentation](/img/1c/e2463a796f99804a55680b69e714a6.png)
