$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1296518400000,0.26648],[1296604800000,0.2678],[1296691200000,0.26992],[1296777600000,0.27066],[1296864000000,0.27014],[1296950400000,0.27014],[1297036800000,0.27014],[1297123200000,0.27052],[1297209600000,0.27158],[1297296000000,0.27108],[1297382400000,0.27064],[1297468800000,0.27092],[1297555200000,0.27092],[1297641600000,0.27092],[1297728000000,0.2715],[1297814400000,0.27125],[1297900800000,0.27129],[1297987200000,0.27156],[1298073600000,0.27143],[1298160000000,0.27143],[1298246400000,0.27143],[1298332800000,0.27234],[1298419200000,0.27105],[1298505600000,0.27087],[1298592000000,0.272],[1298678400000,0.27403],[1298764800000,0.27403],[1298851200000,0.27403]], 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: [[1296518400000, 0.266480],[1296518400000, 0.266480],[1296604800000, 0.267800],[1296691200000, 0.269920],[1296777600000, 0.270660],[1296864000000, 0.270140],[1296950400000, 0.270140],[1297036800000, 0.270140],[1297123200000, 0.270520],[1297209600000, 0.271580],[1297296000000, 0.271080],[1297382400000, 0.270640],[1297468800000, 0.270920],[1297555200000, 0.270920],[1297641600000, 0.270920],[1297728000000, 0.271500],[1297814400000, 0.271250],[1297900800000, 0.271290],[1297987200000, 0.271560],[1298073600000, 0.271430],[1298160000000, 0.271430],[1298246400000, 0.271430],[1298332800000, 0.272340],[1298419200000, 0.271050],[1298505600000, 0.270870],[1298592000000, 0.272000],[1298678400000, 0.274030],[1298764800000, 0.274030],[1298851200000, 0.274030]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });