$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1164931200000,0.0260116],[1165017600000,0.0261136],[1165104000000,0.0261136],[1165190400000,0.0261136],[1165276800000,0.0262101],[1165363200000,0.0263489],[1165449600000,0.0262466],[1165536000000,0.0262263],[1165622400000,0.0261451],[1165708800000,0.0261451],[1165795200000,0.0261451],[1165881600000,0.0260049],[1165968000000,0.0263336],[1166054400000,0.0264274],[1166140800000,0.0262924],[1166227200000,0.026122],[1166313600000,0.026122],[1166400000000,0.026122],[1166486400000,0.0261455],[1166572800000,0.0262505],[1166659200000,0.0264689],[1166745600000,0.0264031],[1166832000000,0.0264122],[1166918400000,0.0264122],[1167004800000,0.0264122],[1167091200000,0.0264122],[1167177600000,0.0264122],[1167264000000,0.0262183],[1167350400000,0.0264067],[1167436800000,0.0264164]], 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: [[1164931200000, 0.026012],[1164931200000, 0.026012],[1165017600000, 0.026114],[1165104000000, 0.026114],[1165190400000, 0.026114],[1165276800000, 0.026210],[1165363200000, 0.026349],[1165449600000, 0.026247],[1165536000000, 0.026226],[1165622400000, 0.026145],[1165708800000, 0.026145],[1165795200000, 0.026145],[1165881600000, 0.026005],[1165968000000, 0.026334],[1166054400000, 0.026427],[1166140800000, 0.026292],[1166227200000, 0.026122],[1166313600000, 0.026122],[1166400000000, 0.026122],[1166486400000, 0.026145],[1166572800000, 0.026250],[1166659200000, 0.026469],[1166745600000, 0.026403],[1166832000000, 0.026412],[1166918400000, 0.026412],[1167004800000, 0.026412],[1167091200000, 0.026412],[1167177600000, 0.026412],[1167264000000, 0.026218],[1167350400000, 0.026407],[1167436800000, 0.026416]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });