$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1267401600000,12.2453],[1267488000000,12.2064],[1267574400000,12.2068],[1267660800000,12.2053],[1267747200000,12.2728],[1267833600000,12.2214],[1267920000000,12.2214],[1268006400000,12.2214],[1268092800000,12.2214],[1268179200000,12.1994],[1268265600000,12.2024],[1268352000000,12.2135],[1268438400000,12.2644],[1268524800000,12.2644],[1268611200000,12.2644],[1268697600000,12.2301],[1268784000000,12.2357],[1268870400000,12.2698],[1268956800000,12.238],[1269043200000,12.1658],[1269129600000,12.1658],[1269216000000,12.1658],[1269302400000,12.1248],[1269388800000,12.1147],[1269475200000,12.0277],[1269561600000,12.011],[1269648000000,12.0044],[1269734400000,12.0044],[1269820800000,12.0044],[1269907200000,12.0363],[1269993600000,12.0424]], 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: [[1267401600000, 12.245342],[1267401600000, 12.245342],[1267488000000, 12.206393],[1267574400000, 12.206848],[1267660800000, 12.205320],[1267747200000, 12.272755],[1267833600000, 12.221399],[1267920000000, 12.221399],[1268006400000, 12.221399],[1268092800000, 12.221399],[1268179200000, 12.199352],[1268265600000, 12.202351],[1268352000000, 12.213465],[1268438400000, 12.264431],[1268524800000, 12.264431],[1268611200000, 12.264431],[1268697600000, 12.230094],[1268784000000, 12.235741],[1268870400000, 12.269807],[1268956800000, 12.238009],[1269043200000, 12.165774],[1269129600000, 12.165774],[1269216000000, 12.165774],[1269302400000, 12.124760],[1269388800000, 12.114733],[1269475200000, 12.027666],[1269561600000, 12.011043],[1269648000000, 12.004366],[1269734400000, 12.004366],[1269820800000, 12.004366],[1269907200000, 12.036262],[1269993600000, 12.042371]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });