$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1364774400000,2.44834],[1364860800000,2.44834],[1364947200000,2.45257],[1365033600000,2.44665],[1365120000000,2.44597],[1365206400000,2.47883],[1365292800000,2.47883],[1365379200000,2.47883],[1365465600000,2.52145],[1365552000000,2.52345],[1365638400000,2.54121],[1365724800000,2.54985],[1365811200000,2.54202],[1365897600000,2.54202],[1365984000000,2.54202],[1366070400000,2.54197],[1366156800000,2.5495],[1366243200000,2.5505],[1366329600000,2.53405],[1366416000000,2.5566],[1366502400000,2.5566],[1366588800000,2.5566],[1366675200000,2.53669],[1366761600000,2.51147],[1366848000000,2.51304],[1366934400000,2.52124],[1367020800000,2.49822],[1367107200000,2.49822],[1367193600000,2.49822],[1367280000000,2.53727]], 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: [[1364774400000, 2.448339],[1364774400000, 2.448339],[1364860800000, 2.448339],[1364947200000, 2.452567],[1365033600000, 2.446650],[1365120000000, 2.445968],[1365206400000, 2.478830],[1365292800000, 2.478830],[1365379200000, 2.478830],[1365465600000, 2.521446],[1365552000000, 2.523453],[1365638400000, 2.541215],[1365724800000, 2.549853],[1365811200000, 2.542023],[1365897600000, 2.542023],[1365984000000, 2.542023],[1366070400000, 2.541973],[1366156800000, 2.549503],[1366243200000, 2.550495],[1366329600000, 2.534053],[1366416000000, 2.556598],[1366502400000, 2.556598],[1366588800000, 2.556598],[1366675200000, 2.536691],[1366761600000, 2.511467],[1366848000000, 2.513041],[1366934400000, 2.521244],[1367020800000, 2.498221],[1367107200000, 2.498221],[1367193600000, 2.498221],[1367280000000, 2.537273]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });