vue结合highcharts实现的曲线图表效果代码

代码语言:html

所属分类:图表

代码描述:vue结合highcharts实现的曲线图表效果代码

代码标签: 实现 曲线 图表 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">


</head>

<body translate="no" >
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue@2.6.1.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/highcharts.js"></script>
<!-- vue-highcharts should be load after Highcharts -->
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue-highcharts.min.js"></script>
<div id="app">
  <highcharts :options="options" ref="highcharts"></highcharts>
  <button @click="updateCredits">update credits</button>
</div>


  
  
      <script >
var options = {
  title: {
    text: 'Monthly Average Temperature',
    x: -20 //center
  },
  subtitle: {
    text: 'Source: WorldClimate.com',
    x: -20 },

  xAxis: {
    categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
    'Jul', 'Aug', 'Sep', 'Oct', 'Nov'.........完整代码请登录后点击上方下载按钮下载查看

网友评论0