Comments (3)
2.x组件库的demo已经上传,1.x组件库已经不提供支持,它们的demo在近期会使用2.x重写。
from datav.
就是官网右上角的的demo,一个页面有很多组件,我想学一下那个圆角柱状图和环形图内的动画(文字翻转等等)
from datav.
你说的那个demo是使用1.x组件库写的,圆角柱状图和环形图都是1.x组件库的组件,你可以安装1.x组件库,查看源码
步骤
mkdir dataview
cd dataview
npm init
// 按回车直到初始化完毕
npm install @jiaminghi/data-view@1
安装结束后你可以在node_modules文件夹内查看1.x组件库的源码
圆角柱状图
dataview\node_modules\@jiaminghi\data-view\components\capsuleChart\index.vue
动态环图
dataview\node_modules\@jiaminghi\data-view\components\ringChart\index.vue
圆角柱状图的柱样式
.capsule-item {
box-shadow: 0 0 3px #999;
height: 10px;
margin: 5px 0px;
border-radius: 5px;
width: calc(~"100% - 50px");
div {
height: 8px;
margin-top: 1px;
border-radius: 5px;
transition: all 0.3s;
}
}
动态环图内部文字翻转动画
.current-label {
font-size: 16px;
margin-top: 5%;
transform: rotateY(0deg);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.transform-text {
animation: transform-text 2s linear;
}
@keyframes transform-text {
to {
transform: rotateY(360deg);
}
}
from datav.
Related Issues (20)
- 官网没看到相关的ts类,目前写vue3+ts+vite项目,很多地方会报类型错误 HOT 2
- 用了全屏,加上dv-scroll-board 就下面会出白边
- 可以麻烦打一个新的release吗?当前release为2020年的。
- dv-scroll-board 组件设置列宽度不起作用 HOT 3
- vue2 main.js 引入后 编译报错
- dv-border-box-11中title不显示
- 颜色能修改么?
- 本地调试能显示,发布就不显示。 HOT 4
- 装饰12预览时报错:Duplicate keys detected error!
- 用了demo那个页面 都做成动态数据,页面卡、慢 HOT 1
- 怎么感觉很旧了,没维护? HOT 2
- 实测不兼容全屏容器不兼容手机,特别是横屏的情况根本没法用 ,各位想入坑同时让手机同样预览效果的掂量掂量,另外里面的装饰线也无法修改宽度 HOT 3
- 图表类型组件 例如柱状图bar,没有tooltip吗?
- 装饰组件dv-decoration-12设置颜色不会重新渲染
- 装饰组件dv-decoration-12设置颜色不会重新渲染
- vue2版的dayav能解决一下数字翻牌器是否选择的问题不 HOT 1
- npm install @jiaminghi/data-view =》<template v-for> key should be placed on the <template> tag
- 排名轮播表 相同数据也会分排名
- 排名轮播表希望看到每一项占总和的比
- 希望dv-flyline-chart-enhanced Point 可以点击事件
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datav.