$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1185926400000,0.753214],[1186012800000,0.745145],[1186099200000,0.747395],[1186185600000,0.750564],[1186272000000,0.750564],[1186358400000,0.750564],[1186444800000,0.756908],[1186531200000,0.75584],[1186617600000,0.754326],[1186704000000,0.747203],[1186790400000,0.741816],[1186876800000,0.741816],[1186963200000,0.741816],[1187049600000,0.740126],[1187136000000,0.736817],[1187222400000,0.726814],[1187308800000,0.719168],[1187395200000,0.725961],[1187481600000,0.725961],[1187568000000,0.725961],[1187654400000,0.72944],[1187740800000,0.728447],[1187827200000,0.726033],[1187913600000,0.731654],[1188000000000,0.731654],[1188086400000,0.731654],[1188172800000,0.731654],[1188259200000,0.735946],[1188345600000,0.736262],[1188432000000,0.732405],[1188518400000,0.732485]], 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: [[1185926400000, 0.753214],[1185926400000, 0.753214],[1186012800000, 0.745145],[1186099200000, 0.747395],[1186185600000, 0.750564],[1186272000000, 0.750564],[1186358400000, 0.750564],[1186444800000, 0.756908],[1186531200000, 0.755840],[1186617600000, 0.754326],[1186704000000, 0.747203],[1186790400000, 0.741816],[1186876800000, 0.741816],[1186963200000, 0.741816],[1187049600000, 0.740126],[1187136000000, 0.736817],[1187222400000, 0.726814],[1187308800000, 0.719168],[1187395200000, 0.725961],[1187481600000, 0.725961],[1187568000000, 0.725961],[1187654400000, 0.729440],[1187740800000, 0.728447],[1187827200000, 0.726033],[1187913600000, 0.731654],[1188000000000, 0.731654],[1188086400000, 0.731654],[1188172800000, 0.731654],[1188259200000, 0.735946],[1188345600000, 0.736262],[1188432000000, 0.732405],[1188518400000, 0.732485]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });