$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс KZT, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс KZT', data: [[1391212800000,0.051402],[1391299200000,0.051402],[1391385600000,0.051402],[1391472000000,0.051405],[1391558400000,0.051359],[1391644800000,0.051342],[1391731200000,0.056014],[1391817600000,0.054844],[1391904000000,0.054844],[1391990400000,0.054844],[1392076800000,0.054983],[1392163200000,0.05217],[1392249600000,0.046345],[1392336000000,0.04678],[1392422400000,0.046829],[1392508800000,0.046829],[1392595200000,0.046829],[1392681600000,0.046861],[1392768000000,0.047081],[1392854400000,0.047606],[1392940800000,0.047825],[1393027200000,0.048327],[1393113600000,0.048327],[1393200000000,0.048327],[1393286400000,0.048982],[1393372800000,0.051103],[1393459200000,0.051526],[1393545600000,0.054256]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1391212800000, 0.051402],[1391212800000, 0.051402],[1391299200000, 0.051402],[1391385600000, 0.051402],[1391472000000, 0.051405],[1391558400000, 0.051359],[1391644800000, 0.051342],[1391731200000, 0.056014],[1391817600000, 0.054844],[1391904000000, 0.054844],[1391990400000, 0.054844],[1392076800000, 0.054983],[1392163200000, 0.052170],[1392249600000, 0.046345],[1392336000000, 0.046780],[1392422400000, 0.046829],[1392508800000, 0.046829],[1392595200000, 0.046829],[1392681600000, 0.046861],[1392768000000, 0.047081],[1392854400000, 0.047606],[1392940800000, 0.047825],[1393027200000, 0.048327],[1393113600000, 0.048327],[1393200000000, 0.048327],[1393286400000, 0.048982],[1393372800000, 0.051103],[1393459200000, 0.051526],[1393545600000, 0.054256]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });