$(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: [[1051747200000,0.17149],[1051833600000,0.17149],[1051920000000,0.17149],[1052006400000,0.17149],[1052092800000,0.17149],[1052179200000,0.17144],[1052265600000,0.17139],[1052352000000,0.17149],[1052438400000,0.17149],[1052524800000,0.17149],[1052611200000,0.17149],[1052697600000,0.17149],[1052784000000,0.172],[1052870400000,0.17215],[1052956800000,0.17214],[1053043200000,0.17265],[1053129600000,0.17265],[1053216000000,0.17265],[1053302400000,0.17265],[1053388800000,0.17265],[1053475200000,0.17265],[1053561600000,0.17297],[1053648000000,0.17297],[1053734400000,0.17297],[1053820800000,0.17297],[1053907200000,null],[1053993600000,0.1736],[1054080000000,0.1736],[1054166400000,0.17389],[1054252800000,0.17366],[1054339200000,0.17366]], 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: [[1051747200000, 0.171490],[1051747200000, 0.171490],[1051833600000, 0.171490],[1051920000000, 0.171490],[1052006400000, 0.171490],[1052092800000, 0.171490],[1052179200000, 0.171440],[1052265600000, 0.171390],[1052352000000, 0.171490],[1052438400000, 0.171490],[1052524800000, 0.171490],[1052611200000, 0.171490],[1052697600000, 0.171490],[1052784000000, 0.172000],[1052870400000, 0.172150],[1052956800000, 0.172140],[1053043200000, 0.172650],[1053129600000, 0.172650],[1053216000000, 0.172650],[1053302400000, 0.172650],[1053388800000, 0.172650],[1053475200000, 0.172650],[1053561600000, 0.172970],[1053648000000, 0.172970],[1053734400000, 0.172970],[1053820800000, 0.172970],[1053993600000, 0.173600],[1054080000000, 0.173600],[1054166400000, 0.173890],[1054252800000, 0.173660],[1054339200000, 0.173660]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });