chartjs 王者荣耀能力雷达图怎么做
来源:互联网 发布:尸油 知乎 编辑:程序博客网 时间:2024/04/29 04:05
效果图
数据是随意填的
代码如下
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> #chart-wrapper { position: relative; width: 400px; height: 400px; } </style></head><body> <div id="chart-wrapper"> <canvas id="canvas"></canvas> </div> <script src="https://cdn.bootcss.com/Chart.js/2.4.0/Chart.min.js"></script> <script> //Get the context of the canvas element we want to select var ctx = document.getElementById('canvas').getContext('2d'); var canvas = document.getElementById("canvas"); var myRadarChart = new Chart(ctx, { "type": "radar", "data": { "labels": [ "综合", "KDA", "生存", "团战", "发育", "输出" ], "datasets": [{ "label": "盖亚", "data": [65, 59, 90, 81, 56, 55], "fill": true, "backgroundColor": "rgba(255, 99, 132, 0.2)", "borderColor": "rgb(255, 99, 132)", "pointBackgroundColor": "rgb(255, 99, 132)", "pointBorderColor": "#fff", "pointHoverBackgroundColor": "#fff", "pointHoverBorderColor": "rgb(255, 99, 132)", "fill": true }, { "label": "李白", "data": [28, 48, 40, 19, 96, 27], "fill": true, "backgroundColor": "rgba(54, 162, 235, 0.2)", "borderColor": "rgb(54, 162, 235)", "pointBackgroundColor": "rgb(54, 162, 235)", "pointBorderColor": "#fff", "pointHoverBackgroundColor": "#fff", "pointHoverBorderColor": "rgb(54, 162, 235)", "fill": true }] }, options: { scale: { ticks: { //最小刻度 最大刻度 刻度的步长(长度) suggestedMin: 0, suggestedMax: 100, stepSize: 10 } } } }); </script></body></html>
阅读全文
0 0
- chartjs 王者荣耀能力雷达图怎么做
- 王者荣耀
- 王者荣耀
- 自定义View能力雷达图
- 王者荣耀_KEY
- 王者荣耀提取攻略
- 自定义控件--LOL能力雷达分配图
- 36氪领读 | 从QQ、微信到《王者荣耀》,腾讯是怎么设计产品的?
- 用Silverlight做雷达图
- 玩得好王者荣耀却做不好团队管理,我看你是白玩了
- 王者荣耀脚本,按键精灵做的,智能脚本,试用也可以
- 王者的荣耀--Monza后记
- 《王者荣耀》手游感想
- 玩-王者荣耀-英雄缺点
- vue2.0-王者荣耀助手
- 【王者荣耀】入门战斗经验
- 如何戒掉王者荣耀
- “王者荣耀”中的常用英语
- 黑晶科技【VR超级教室】亮相《创业英雄汇》获千万投资!
- 【删前必看】全球顶级的CCF-GAIR 峰会7大环节无死角剧透
- matlab文本文件操作
- webstorm
- java之enum枚举类
- chartjs 王者荣耀能力雷达图怎么做
- 一套好看的验证码
- 坚持#第226天~零基础自学云计算基础语言应用之python1~5节
- 关于各种排序(插入,冒泡,选择,希尔)
- 2016国际物联网产业发展趋势论坛之“智慧名人宴”
- java 手机短信验证视频源码
- Google与苹果的竞争:汽车操作系统之战
- 写论文的几个原则
- 《Java专栏》— 初学Java