$(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: [[1341100800000,1.32567],[1341187200000,1.32567],[1341273600000,1.33745],[1341360000000,1.3366],[1341446400000,1.33554],[1341532800000,1.32845],[1341619200000,1.31564],[1341705600000,1.31573],[1341792000000,1.31573],[1341878400000,1.31072],[1341964800000,1.31161],[1342051200000,1.31105],[1342137600000,1.30289],[1342224000000,1.30889],[1342310400000,1.30889],[1342396800000,1.30889],[1342483200000,1.30601],[1342569600000,1.3132],[1342656000000,1.30687],[1342742400000,1.31341],[1342828800000,1.31368],[1342915200000,1.31368],[1343001600000,1.31368],[1343088000000,1.31087],[1343174400000,1.31073],[1343260800000,1.31606],[1343347200000,1.32442],[1343433600000,1.31741],[1343520000000,1.31741],[1343606400000,1.31741],[1343692800000,1.31881]], 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: [[1341100800000, 1.325673],[1341100800000, 1.325673],[1341187200000, 1.325673],[1341273600000, 1.337447],[1341360000000, 1.336601],[1341446400000, 1.335539],[1341532800000, 1.328448],[1341619200000, 1.315643],[1341705600000, 1.315725],[1341792000000, 1.315725],[1341878400000, 1.310718],[1341964800000, 1.311614],[1342051200000, 1.311047],[1342137600000, 1.302888],[1342224000000, 1.308893],[1342310400000, 1.308893],[1342396800000, 1.308893],[1342483200000, 1.306015],[1342569600000, 1.313204],[1342656000000, 1.306868],[1342742400000, 1.313407],[1342828800000, 1.313682],[1342915200000, 1.313682],[1343001600000, 1.313682],[1343088000000, 1.310869],[1343174400000, 1.310735],[1343260800000, 1.316060],[1343347200000, 1.324425],[1343433600000, 1.317406],[1343520000000, 1.317406],[1343606400000, 1.317406],[1343692800000, 1.318813]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });