您好,登錄后才能下訂單哦!
$(function () { $('#container').highcharts({ chart: { type: 'columnrange', inverted: true }, title: { text: '項(xiàng)目進(jìn)度圖' }, subtitle: { text: '更新時(shí)間:2015-10-24' }, xAxis: { categories: ['Jan', 'Feb', 'Mar'] //任務(wù)名稱 }, yAxis: { type:"datetime", title: { text: '時(shí)間' }, dateTimeLabelFormats: { day : '%m-%d' /* second: '%H:%M:%S', minute: '%e. %b %H:%M', hour: '%b/%e %H:%M', day: '%e日/%b', week: '%e. %b', month: '%b %y', year: '%Y' */ }, tickInterval: 24 * 3600 * 1000 }, plotOptions:{ columnrange:{ grouping:false } }, tooltip: { formatter: function() { return this.x + "<br>" + this.series.name + "<br>" + "日期:" + Highcharts.dateFormat('%Y-%m-%e', this.point.low) + " ~ " + Highcharts.dateFormat('%Y-%m-%e', this.point.high); } }, legend: { enabled: false }, series: [ { name: '開發(fā)周期', data: [ [Date.UTC(2015,9,14), Date.UTC(2015,9,15)], //只要采用的是Date.UTC的形式,必須將月份減掉1再傳入,否則會(huì)有時(shí)間錯(cuò)位問題,切記?。? [Date.UTC(2015,9,12), Date.UTC(2015,9,11)], [Date.UTC(2015,9,3), Date.UTC(2015,9,5)] ] }, { name: '開發(fā)周期2', data: [ [Date.UTC(2015,9,15), Date.UTC(2015,9,16)], [Date.UTC(2015,9,14), Date.UTC(2015,9,17)], [Date.UTC(2015,9,5), Date.UTC(2015,9,7)] ] } ] }); });
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。