$(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: [[1191196800000,0.20241],[1191283200000,0.20299],[1191369600000,0.20274],[1191456000000,0.20257],[1191542400000,0.20191],[1191628800000,0.20215],[1191715200000,0.20215],[1191801600000,0.20215],[1191888000000,0.20216],[1191974400000,0.20152],[1192060800000,0.20213],[1192147200000,0.20265],[1192233600000,0.20264],[1192320000000,0.20264],[1192406400000,0.20264],[1192492800000,0.20262],[1192579200000,0.2028],[1192665600000,0.20259],[1192752000000,0.20302],[1192838400000,0.20322],[1192924800000,0.20322],[1193011200000,0.20322],[1193097600000,0.20357],[1193184000000,0.20263],[1193270400000,0.20288],[1193356800000,0.20321],[1193443200000,0.20386],[1193529600000,0.20386],[1193616000000,0.20386],[1193702400000,0.20447],[1193788800000,0.20426]], 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: [[1191196800000, 0.202410],[1191196800000, 0.202410],[1191283200000, 0.202990],[1191369600000, 0.202740],[1191456000000, 0.202570],[1191542400000, 0.201910],[1191628800000, 0.202150],[1191715200000, 0.202150],[1191801600000, 0.202150],[1191888000000, 0.202160],[1191974400000, 0.201520],[1192060800000, 0.202130],[1192147200000, 0.202650],[1192233600000, 0.202640],[1192320000000, 0.202640],[1192406400000, 0.202640],[1192492800000, 0.202620],[1192579200000, 0.202800],[1192665600000, 0.202590],[1192752000000, 0.203020],[1192838400000, 0.203220],[1192924800000, 0.203220],[1193011200000, 0.203220],[1193097600000, 0.203570],[1193184000000, 0.202630],[1193270400000, 0.202880],[1193356800000, 0.203210],[1193443200000, 0.203860],[1193529600000, 0.203860],[1193616000000, 0.203860],[1193702400000, 0.204470],[1193788800000, 0.204260]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });