一、vue中使用highcharts图表
1、安装highcharts
npm install highcharts --save
2、在组件中使用
<template> <div id="container" style="min-width:400px;height:400px">123123</div> </template> <script> import Highcharts from 'highcharts' export default { name: "charts", mounted(){ Highcharts.chart('container', { chart: { type: 'line' }, title: { text: '最近七天代码行数图' }, ....... </script>