highchats-y축 경계선

2335 단어 HA
가로 좌표는 날짜:
$(function () {
    var $report = $('#report');
    
    $('#container').highcharts({
        chart: {
        },
        xAxis: {
            plotLines: [{ // mark the weekend
                color: 'red',
                width: 2,
                value: Date.UTC(2010, 0, 4),
                dashStyle: 'longdashdot'
            },{ // mark the weekend
                color: 'red',
                width: 2,
                value: Date.UTC(2010, 0, 6),
                dashStyle: 'longdashdot'
            }],
            tickInterval: 24 * 3600 * 1000,
            // one day
            type: 'datetime'
        },
    
        series: [{
            data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4],
            pointStart: Date.UTC(2010, 0, 1),
            pointInterval: 24 * 3600 * 1000}]
    });
});

  
가로 좌표는 숫자:
    $(function () {  
        var $report = $('#report');  
          
        $('#container').highcharts({  
            chart: {  
            },  
            xAxis: {
                allowDecimals: false
            },
        
            plotOptions: {
                series: {
                    pointStart: 100
                }
            },
            xAxis: {  
                plotLines: [{ // mark the weekend  
                    color: 'red',  
                    width: 2,  
                    value:102,  
                    dashStyle: 'ShortDash'  
                },{ // mark the weekend  
                    color: 'red',  
                    width: 2,  
                    value: 103,  
                    dashStyle: 'ShortDash'  
                }]
               
            },  
            series: [{  
                data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4]
            }]
               
        });  
    });  

좋은 웹페이지 즐겨찾기