canvas绘图,html5 k线图,股票行情图

canvas绘图,html5 k线图,股票行情图

canvas跟其他标签一样,也可以通过css来定义样式。但这里需要注意的是:canvas的默认宽高为300px * 150px,在css中为canvas定义宽高,实际上把宽高为300px * 150px的画布进行了拉伸,如果在这样的情况下进行canvas绘图,你得到的图形可能就是变形的效果。
所以,在canvas绘图时,应该在canvas标签里直接定义宽高。
Canvas的宽高×2 然后css的宽高是canvas的二分之一
===============
canvas绘制的图好模糊,怎么解决呢? - 简书
https://www.jianshu.com/p/4c4312dc7fc5
这种只是设置文本清晰度的,对K线图没什么用处
===============
k line painter
http://html54stock.outofmemory.cn/k-painter.v1.htm
这个是组件作者的demo 看起来也是差不多模糊的,在移动端手机上看到就更模糊,没有对手机分辨率dpi进行处理
Html5版本的全套股票行情图开源了,附带实现技术简介 - 玉开 - 博客园
https://www.cnblogs.com/yukaizhao/archive/2012/03/13/html-stock-charts.html

==============
ECharts Demo
http://www.echartsjs.com/examples/#chart-type-candlestick

ECharts Demo
http://echarts.baidu.com/examples/editor.html?c=candlestick-touch
用这个清晰的,针对移动端的k线图

免费股票图表、行情和交易观点 — TradingView
https://cn.tradingview.com/
https://cn.tradingview.com/chart/?symbol=BITFINEX%3ABTCUSD&interval=D
交易所的web端k线图很多用TradingView的

html5和c++开源 K线图工具, Create interactive charts easily for your web projects. Used by tens of thousands of developers and 61 out of the world's 100 largest companies, Highcharts is the simplest yet most flexible charting API on the market. Read more » Download » TemperatureRainfallTokyo climateSunshine hoursJanFebMarAprMayJunJulAugSepOctNovDec5°C10°C15°C20°C25°C30°C0 mm50 mm100 mm150 mm200 mm250 mmHighcharts.com Highstock Highstock lets you create stock or general timeline charts in pure JavaScript. Including sophisticated navigation options like a small navigator series, preset date ranges, date picker, scrolling and panning. Read more » Download » ZoomUSD to EUR14. Feb21. Feb28. Feb7. Mar14. Mar21. Mar28. Mar4. Apr11. Apr18. Apr25. Apr2. May9. May20042006200820100.70.650.751m3m6mYTD1yAllHighcharts.com Highmaps Interactive map charts with drilldown and touch support. Build interactive maps to display sales, election results or any other information linked to geography. Perfect for standalone use or in dashboards in combination with Highcharts! Read more » Download » Highcharts © Natural Earth Highcharts Cloud Online charts for non-techies. Create smashing, interactive diagrams for your news site or blog, or for sharing with your friends on social media. Read more » Highcharts Cloud 1 2 3 4 Free for non-commercial Do you want to use Highcharts for a personal website, a school site or a non-profit organisation? Then you don't need our permission, just go on! HTML 5 Based on native browser technologies, no plugins needed Open Fork us on GitHub and participate in tech discussions Compatible With modern browsers including mobile, tablets and old IE back to IE6 Dynamic Add, remove and modify series and points or modify axes Any chart you'd like Highcharts supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerang
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值