我正在寻找一种基于jQuery UI滑块确定的值动态更新Highcharts的方法.我还没精通AJAX或者JSON,所以我运气不好.我试图让收入在给定月份内逐步增加(例如,订阅服务).为了更容易,我把它放在jsFiddle http://jsfiddle.net/nlem33/Sbm2T/3/上.任何帮助将不胜感激,谢谢!
$(function () {
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
backgroundColor: null,
type: 'area'
},
title: {
text: ''
},
subtitle: {
text: ''
},
xAxis: {
categories: ['1', '2', '3', '4', '5', '6',],
tickmarkPlacement: 'on',
title: {
text: 'months'
}
},
yAxis: {
title: {
text: '$(thousands)'
},
labels: {
formatter: function() {
return this.value / 1000;
}
}
},
tooltip: {
formatter: function() {
return ''+
this.x +': '+ …Run Code Online (Sandbox Code Playgroud) 我试图将时钟放在图像上但我无法弄清楚如何使SVG的背景透明.
chart: {
type: 'gauge',
plotBackgroundColor: 'transparent',
plotBackgroundImage: null,
plotBorderWidth: 0,
plotShadow: false,
height: 200
},
Run Code Online (Sandbox Code Playgroud)