接着上一节说,这次我使用canvas绘制了饼状图,主要是SectorGraph.js, 引入 import {canvasPoint} from '../../assets/js/canvas';import {basicInfo,histogramMousemoveEvent} from '../../assets/js/SectorGraph'; 使用方法: function histogramCreate(width,point){ var canvas=document.getEleme…