当前位置: 首页 > news >正文

保定网站建设团队网站开发框架

保定网站建设团队,网站开发框架,东莞市住房和城乡建设网官网,17做网站广州来由 在github发现个好看易用的vue趋势线组件,特此记录。 效果 趋势图生成后效果如上,线条为渐变色,可设置是否平滑。具体线条走势,根据数据动态生成。 使用 安装 npm i vuetrend -S 引入 import Vue from "vue"…

来由

在github发现个好看易用的vue趋势线组件,特此记录。

效果

趋势图生成后效果如上,线条为渐变色,可设置是否平滑。具体线条走势,根据数据动态生成。 

使用

安装

npm i vuetrend -S

引入

import Vue from "vue"
import Trend from "vuetrend"Vue.use(Trend)

使用

<trend:data="[0, 2, 5, 9, 5, 10, 3, 5, 0, 0, 1, 8, 2, 9, 0]":gradient="['#6fa8dc', '#42b983', '#2c3e50']"auto-drawsmooth
>
</trend>

其他可配置项

NameTypeDefaultDescriptionExample
dataNumber|ObjectundefinedThe data accepted by Vue Trend is incredibly simple: An array of y-axis values to graph.[120, 149, 193.4, 200, 92] or [{ value: 4 }, { value: 6 }, { value: 8 }]
gradientString['#000']Colour can be specified as any SVG-supported format (named, rgb, hex, etc).['#0FF', '#F0F', '#FF0']
gradientDirectionStringtopTop, Bottom, Left or Right.
widthNumberautoSet an explicit width for your SVG.-
heightNumberautoSet an explicit height for your SVG.-
paddingNumber8If you set a very large strokeWidth on your line, you may notice that it gets "cropped" towards the edges.-
smoothBooleanfalseSmooth allows the peaks to be 'rounded' out so that the line has no jagged edges.-
radiusNumber10When using smoothing, you may wish to control the amount of curve around each point. This prop has no effect if smooth isn't set to true.-
autoDrawBooleanfalseAllow the line to draw itself on mount. Set to true to enable, and customize using autoDrawDuration and autoDrawEasing.-
autoDrawDurationNumber2000The amount of time, in milliseconds, that the autoDraw animation should span. This prop has no effect if autoDraw isn't set to true.-
autoDrawEasingStringeaseThe easing function to use for the autoDraw animation. Accepts any transition timing function within the CSS spec (eg. lineareaseease-incubic-bezier...).-
maxNumber-InfinitySpecify max value-
minNumberInfinitySpecify min value, This is useful if you have multiple lines. See #8-

组件来自于:GitHub - QingWei-Li/vue-trend: 🌈 Simple, elegant spark lines for Vue.js 

http://www.ds6.com.cn/news/60754.html

相关文章:

  • 网站设计公司案例北京seo优化排名推广
  • 网站栅格java培训学费多少钱
  • 企业网站模板html软文经典案例
  • 广州 网站制作对网站提出的优化建议
  • 简历设计网网址seo优化排名
  • 轻松网站建设某个产品营销推广方案
  • 自学网站开发条件防疫测温健康码核验一体机
  • 三元区建设小学网站学好seo
  • 中国检验认证集团北京有限公司seo外包软件
  • 织梦网站后台文章编辑美化代码免费的企业黄页网站
  • wordpress网站菜单固定媒体推广
  • 广西兴业县建设局网站网络营销做得比较好的企业
  • 怎么做钓鱼网站生成器湖南百度推广代理商
  • 怎么做动态网站视频短片高清网站推广免费下载
  • 培训机构网站建设方案搜索引擎推广试题
  • 建设行业门户网站需要什么条件搜索图片识别
  • 好用的在线设计网站近期网络营销的热点事件
  • 网页设计文献青岛网站seo公司
  • 帝国cms怎么做电影网站珠海百度推广优化排名
  • 能够做物理题的网站漂亮的网页设计
  • 网站设计排名网站外链发布网站
  • 衡水网站制作公司网络推广方式有哪几种
  • cnzz网站建设教学四川成都最新消息
  • 网站兼职做计划赚小钱宁波 seo排名公司
  • 推荐国外网站设计本周新闻热点10条
  • wordpress 门户好的西安网络推广优化培训
  • 以域名做网站关键词网站关键词优化怎么做的
  • 做一家公司网站要注意哪些怎么优化
  • 衡水做企业网站市场营销毕业后做什么工作
  • 模板网站建设开发北京百度推广优化公司