$(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: [[1259625600000,0.0438151],[1259712000000,0.0442982],[1259798400000,0.0445755],[1259884800000,0.0447606],[1259971200000,0.044699],[1260057600000,0.044699],[1260144000000,0.044699],[1260230400000,0.0436675],[1260316800000,0.0431435],[1260403200000,0.0430911],[1260489600000,0.0432425],[1260576000000,0.043132],[1260662400000,0.043132],[1260748800000,0.043132],[1260835200000,0.0427893],[1260921600000,0.0418399],[1261008000000,0.0418064],[1261094400000,0.0411097],[1261180800000,0.0412438],[1261267200000,0.0412438],[1261353600000,0.0412438],[1261440000000,0.0417124],[1261526400000,0.0414866],[1261612800000,0.0415605],[1261699200000,0.0420234],[1261785600000,0.0420208],[1261872000000,0.0420208],[1261958400000,0.0420208],[1262044800000,0.0419816],[1262131200000,0.0421991],[1262217600000,0.042076]], 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: [[1259625600000, 0.043815],[1259625600000, 0.043815],[1259712000000, 0.044298],[1259798400000, 0.044575],[1259884800000, 0.044761],[1259971200000, 0.044699],[1260057600000, 0.044699],[1260144000000, 0.044699],[1260230400000, 0.043667],[1260316800000, 0.043144],[1260403200000, 0.043091],[1260489600000, 0.043243],[1260576000000, 0.043132],[1260662400000, 0.043132],[1260748800000, 0.043132],[1260835200000, 0.042789],[1260921600000, 0.041840],[1261008000000, 0.041806],[1261094400000, 0.041110],[1261180800000, 0.041244],[1261267200000, 0.041244],[1261353600000, 0.041244],[1261440000000, 0.041712],[1261526400000, 0.041487],[1261612800000, 0.041561],[1261699200000, 0.042023],[1261785600000, 0.042021],[1261872000000, 0.042021],[1261958400000, 0.042021],[1262044800000, 0.041982],[1262131200000, 0.042199],[1262217600000, 0.042076]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });