当前位置:网站首页>Datav beautiful data screen production experience
Datav beautiful data screen production experience
2022-07-26 10:33:00 【Miners learn programming】
1、 Native charts
@{
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(){
// Based on the prepared dom, initialization echarts example
var myChart = echarts.init(document.getElementById('main'));
// Specify configuration items and data for the chart
var option = {
title: {
text: 'ECharts Introductory example '
},
tooltip: {},
legend: {
data:[' sales ']
},
xAxis: {
data: [" shirt "," Woolen sweater "," Snow spins unlined upper garment "," The trousers "," High heels "," socks "]
},
yAxis: {},
series: [{
name: ' sales ',
type: 'bar',
data: [5, 20, 36, 10, 10, 20]
}]
};
// Use the configuration item and data display chart just specified .
myChart.setOption(option);
}
},
mounted() {
this.myEcharts();
}
})
</script>
</html>
2、davaV Package chart
@{
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: ' Zhoukou ',
value: 55
},
{
name: ' Nanyang ',
value: 120
},
{
name: ' Xixia ',
value: 78
},
{
name: ' Zhumadian ',
value: 66
},
{
name: ' xinxiang ',
value: 80
}
]
}
}
},
methods: {
},
mounted() {
}
})
</script>
</html>
边栏推荐
- 议程速递 | 7月27日分论坛议程一览
- [gossip] error loading psychopg2 module: no module named psychopg2
- 11 在 operator= 中处理“自我赋值”
- vscode上使用anaconda(已经配置好环境)
- 3.1 leetcode daily question 6
- C语言回调函数
- [Halcon vision] morphological expansion
- Interview questions and answers of the first company (I)
- centos8(liunx)部署WTM(ASP.NET 5)使用pgsql
- .NET 开源框架在工业生产中的应用
猜你喜欢
videojs转canvas暂停、播放、切换视频
SAP ABAP Netweaver 容器化的一些前沿性研究工作分享
【Halcon视觉】图像的傅里叶变换
数据分析入门 | kaggle泰坦尼克任务
INSTALL_ FAILED_ SHARED_ USER_ Incompatible error resolution
[Halcon vision] morphological corrosion
[Halcon vision] threshold segmentation
抓包工具fiddler和wireshark对比
.NET5WTM(ASP.NET Core) PGSql开箱操作
js下载文件,FileSaver.js导出txt、excel文件
随机推荐
【dectectron2】跟着官方demo一起做
STM32 阿里云MQTT esp8266 AT命令
链式方法调用的事务问题剖析
L2-005 set similarity (intersection of vector and set)
[Halcon vision] programming logic
[Halcon vision] image filtering
2022pta usual training questions (1-10 string processing questions)
Some web APIs you don't know
[Halcon vision] polar coordinate transformation
string null转空字符串(空字符串是什么意思)
Cause: could't make a guess for solution
Redis特殊数据类型使用场景
js翻页、kkpager.js翻页
MD5加密
【Halcon视觉】阈值分割
.NET操作Redis Set无序集合
INSTALL_ FAILED_ SHARED_ USER_ Incompatible error resolution
[Halcon vision] threshold segmentation
Listening freely, the next stop of online text traffic competition?
软件打不开了