评论:使用原生canvas绘制折线图

trend.jsconst getMax = (a,b)=>a>b?a:bconst convertX = (width,x,sum,{left,right})=> parseInt((width-left-right) * x /(sum-1))+leftconst convertY = (height,y,sum,{bottom,top})=>height - convertX(height,y,sum,{left:bottom,right:top})const convert [更多>>]

网友评论0 条评论)
发表评论

Copyright © 2012-2014 我的代码板 Inc. 保留所有权利。

页面耗时0.0156秒, 内存占用1.81 MB, 访问数据库8次

闽ICP备15009223号-1