<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
canvas{
border: 1px solid red;
}
</style>
<body>
<canvas width="800px" height="800px">
浏览器不支持
</canvas>
<script>
var canvasEle= document.querySelector("canvas");
var cxt= canvasEle.getContext("2d");
var data=[
{
msg:'8000以下',
value:0.1,