$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1349049600000,1.4024],[1349136000000,1.39504],[1349222400000,1.40173],[1349308800000,1.39164],[1349395200000,1.39352],[1349481600000,1.40563],[1349568000000,1.40563],[1349654400000,1.40563],[1349740800000,1.39926],[1349827200000,1.39815],[1349913600000,1.39247],[1350000000000,1.39863],[1350086400000,1.40084],[1350172800000,1.40084],[1350259200000,1.40084],[1350345600000,1.39915],[1350432000000,1.41086],[1350518400000,1.4179],[1350604800000,1.42134],[1350691200000,1.41101],[1350777600000,1.41101],[1350864000000,1.41101],[1350950400000,1.41356],[1351036800000,1.4015],[1351123200000,1.39133],[1351209600000,1.39185],[1351296000000,1.38164],[1351382400000,1.38164],[1351468800000,1.38164],[1351555200000,1.38344],[1351641600000,1.39292]], 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: [[1349049600000, 1.402395],[1349049600000, 1.402395],[1349136000000, 1.395037],[1349222400000, 1.401729],[1349308800000, 1.391644],[1349395200000, 1.393516],[1349481600000, 1.405626],[1349568000000, 1.405626],[1349654400000, 1.405626],[1349740800000, 1.399261],[1349827200000, 1.398154],[1349913600000, 1.392468],[1350000000000, 1.398626],[1350086400000, 1.400841],[1350172800000, 1.400841],[1350259200000, 1.400841],[1350345600000, 1.399153],[1350432000000, 1.410860],[1350518400000, 1.417904],[1350604800000, 1.421339],[1350691200000, 1.411007],[1350777600000, 1.411007],[1350864000000, 1.411007],[1350950400000, 1.413559],[1351036800000, 1.401496],[1351123200000, 1.391330],[1351209600000, 1.391852],[1351296000000, 1.381636],[1351382400000, 1.381636],[1351468800000, 1.381636],[1351555200000, 1.383437],[1351641600000, 1.392918]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });