小编use*_*685的帖子

如何使用jQuery UI滑块动态更新highcharts

我正在寻找一种基于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)

javascript jquery jquery-ui uislider highcharts

2
推荐指数
1
解决办法
7403
查看次数

如何使Highchart的SVG时钟背景透明?

我试图将时钟放在图像上但我无法弄清楚如何使SVG的背景透明.

http://jsfiddle.net/YWUvU/

chart: {
        type: 'gauge',
        plotBackgroundColor: 'transparent',
        plotBackgroundImage: null,
        plotBorderWidth: 0,
        plotShadow: false,
        height: 200
    },
Run Code Online (Sandbox Code Playgroud)

svg highcharts

2
推荐指数
1
解决办法
4843
查看次数

标签 统计

highcharts ×2

javascript ×1

jquery ×1

jquery-ui ×1

svg ×1

uislider ×1