$(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: [[1388534400000,0.052007],[1388620800000,0.052007],[1388707200000,0.052007],[1388793600000,0.051882],[1388880000000,0.051882],[1388966400000,0.051882],[1389052800000,0.051882],[1389139200000,0.051882],[1389225600000,0.051738],[1389312000000,0.051731],[1389398400000,0.051728],[1389484800000,0.051728],[1389571200000,0.051728],[1389657600000,0.051688],[1389744000000,0.051648],[1389830400000,0.051571],[1389916800000,0.051511],[1390003200000,0.051511],[1390089600000,0.051511],[1390176000000,0.051511],[1390262400000,0.051478],[1390348800000,0.051468],[1390435200000,0.051521],[1390521600000,0.051534],[1390608000000,0.051538],[1390694400000,0.051538],[1390780800000,0.051538],[1390867200000,0.051511],[1390953600000,0.051452],[1391040000000,0.051402],[1391126400000,0.051389]], 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: [[1388534400000, 0.052007],[1388534400000, 0.052007],[1388620800000, 0.052007],[1388707200000, 0.052007],[1388793600000, 0.051882],[1388880000000, 0.051882],[1388966400000, 0.051882],[1389052800000, 0.051882],[1389139200000, 0.051882],[1389225600000, 0.051738],[1389312000000, 0.051731],[1389398400000, 0.051728],[1389484800000, 0.051728],[1389571200000, 0.051728],[1389657600000, 0.051688],[1389744000000, 0.051648],[1389830400000, 0.051571],[1389916800000, 0.051511],[1390003200000, 0.051511],[1390089600000, 0.051511],[1390176000000, 0.051511],[1390262400000, 0.051478],[1390348800000, 0.051468],[1390435200000, 0.051521],[1390521600000, 0.051534],[1390608000000, 0.051538],[1390694400000, 0.051538],[1390780800000, 0.051538],[1390867200000, 0.051511],[1390953600000, 0.051452],[1391040000000, 0.051402],[1391126400000, 0.051389]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });