$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1338508800000,4.31755],[1338595200000,4.27298],[1338681600000,4.27298],[1338768000000,4.27298],[1338854400000,4.27298],[1338940800000,4.3187],[1339027200000,4.33929],[1339113600000,4.38362],[1339200000000,4.36145],[1339286400000,4.36145],[1339372800000,4.36145],[1339459200000,4.39208],[1339545600000,4.36756],[1339632000000,4.3187],[1339718400000,4.38243],[1339804800000,4.39431],[1339891200000,4.39431],[1339977600000,4.39431],[1340064000000,4.40717],[1340150400000,4.43212],[1340236800000,4.45395],[1340323200000,4.45414],[1340409600000,4.42249],[1340496000000,4.42249],[1340582400000,4.42249],[1340668800000,4.39635],[1340755200000,4.39565],[1340841600000,4.41539],[1340928000000,4.41539],[1341014400000,4.41539]], 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: [[1338508800000, 4.317551],[1338508800000, 4.317551],[1338595200000, 4.272977],[1338681600000, 4.272977],[1338768000000, 4.272977],[1338854400000, 4.272977],[1338940800000, 4.318702],[1339027200000, 4.339292],[1339113600000, 4.383624],[1339200000000, 4.361454],[1339286400000, 4.361454],[1339372800000, 4.361454],[1339459200000, 4.392076],[1339545600000, 4.367555],[1339632000000, 4.318702],[1339718400000, 4.382432],[1339804800000, 4.394305],[1339891200000, 4.394305],[1339977600000, 4.394305],[1340064000000, 4.407174],[1340150400000, 4.432122],[1340236800000, 4.453951],[1340323200000, 4.454144],[1340409600000, 4.422486],[1340496000000, 4.422486],[1340582400000, 4.422486],[1340668800000, 4.396350],[1340755200000, 4.395646],[1340841600000, 4.415390],[1340928000000, 4.415390],[1341014400000, 4.415390]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });