$(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: [[1159660800000,7.45569],[1159747200000,7.45569],[1159833600000,7.46035],[1159920000000,7.48112],[1160006400000,7.45979],[1160092800000,7.47337],[1160179200000,7.45924],[1160265600000,7.45924],[1160352000000,7.45924],[1160438400000,7.45924],[1160524800000,7.41749],[1160611200000,7.41476],[1160697600000,7.41078],[1160784000000,7.41631],[1160870400000,7.41631],[1160956800000,7.41631],[1161043200000,7.40971],[1161129600000,7.41965],[1161216000000,7.42317],[1161302400000,7.42792],[1161388800000,7.44568],[1161475200000,7.44568],[1161561600000,7.44568],[1161648000000,7.42356],[1161734400000,7.41756],[1161820800000,7.43415],[1161907200000,7.45166],[1161993600000,7.46333],[1162080000000,7.46333],[1162166400000,7.46333],[1162252800000,7.4848]], 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: [[1159660800000, 7.455690],[1159660800000, 7.455690],[1159747200000, 7.455690],[1159833600000, 7.460349],[1159920000000, 7.481116],[1160006400000, 7.459787],[1160092800000, 7.473366],[1160179200000, 7.459236],[1160265600000, 7.459236],[1160352000000, 7.459236],[1160438400000, 7.459236],[1160524800000, 7.417493],[1160611200000, 7.414760],[1160697600000, 7.410777],[1160784000000, 7.416306],[1160870400000, 7.416306],[1160956800000, 7.416306],[1161043200000, 7.409712],[1161129600000, 7.419651],[1161216000000, 7.423174],[1161302400000, 7.427923],[1161388800000, 7.445676],[1161475200000, 7.445676],[1161561600000, 7.445676],[1161648000000, 7.423556],[1161734400000, 7.417559],[1161820800000, 7.434145],[1161907200000, 7.451664],[1161993600000, 7.463326],[1162080000000, 7.463326],[1162166400000, 7.463326],[1162252800000, 7.484797]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });