$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1136246400000,3.0352],[1136332800000,3.0352],[1136419200000,3.0352],[1136505600000,3.06648],[1136592000000,3.06852],[1136678400000,3.06852],[1136764800000,3.06852],[1136851200000,3.06852],[1136937600000,3.0902],[1137024000000,3.09839],[1137110400000,3.11333],[1137196800000,3.09431],[1137283200000,3.09431],[1137369600000,3.09431],[1137456000000,3.09042],[1137542400000,3.09176],[1137628800000,3.10047],[1137715200000,3.09706],[1137801600000,3.10208],[1137888000000,3.10208],[1137974400000,3.10208],[1138060800000,3.11646],[1138147200000,3.11472],[1138233600000,3.12078],[1138320000000,3.1136],[1138406400000,3.10604],[1138492800000,3.10604],[1138579200000,3.10604],[1138665600000,3.09622]], 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: [[1136246400000, 3.035197],[1136246400000, 3.035197],[1136332800000, 3.035197],[1136419200000, 3.035197],[1136505600000, 3.066479],[1136592000000, 3.068518],[1136678400000, 3.068518],[1136764800000, 3.068518],[1136851200000, 3.068518],[1136937600000, 3.090195],[1137024000000, 3.098386],[1137110400000, 3.113327],[1137196800000, 3.094307],[1137283200000, 3.094307],[1137369600000, 3.094307],[1137456000000, 3.090420],[1137542400000, 3.091758],[1137628800000, 3.100473],[1137715200000, 3.097056],[1137801600000, 3.102077],[1137888000000, 3.102077],[1137974400000, 3.102077],[1138060800000, 3.116460],[1138147200000, 3.114721],[1138233600000, 3.120775],[1138320000000, 3.113595],[1138406400000, 3.106043],[1138492800000, 3.106043],[1138579200000, 3.106043],[1138665600000, 3.096219]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });