$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1159660800000,4.02575],[1159747200000,4.02575],[1159833600000,4.04389],[1159920000000,4.05867],[1160006400000,4.03161],[1160092800000,4.04362],[1160179200000,4.02703],[1160265600000,4.02703],[1160352000000,4.02703],[1160438400000,4.00536],[1160524800000,3.97994],[1160611200000,3.97578],[1160697600000,3.97198],[1160784000000,3.978],[1160870400000,3.978],[1160956800000,3.978],[1161043200000,3.97039],[1161129600000,3.979],[1161216000000,3.98454],[1161302400000,3.99025],[1161388800000,4.01594],[1161475200000,4.01594],[1161561600000,4.01594],[1161648000000,3.98691],[1161734400000,3.97864],[1161820800000,3.99152],[1161907200000,4.01266],[1161993600000,4.02546],[1162080000000,4.02546],[1162166400000,4.02546],[1162252800000,4.04362]], 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, 4.025754],[1159660800000, 4.025754],[1159747200000, 4.025754],[1159833600000, 4.043889],[1159920000000, 4.058673],[1160006400000, 4.031609],[1160092800000, 4.043624],[1160179200000, 4.027026],[1160265600000, 4.027026],[1160352000000, 4.027026],[1160438400000, 4.005359],[1160524800000, 3.979942],[1160611200000, 3.975781],[1160697600000, 3.971978],[1160784000000, 3.978000],[1160870400000, 3.978000],[1160956800000, 3.978000],[1161043200000, 3.970395],[1161129600000, 3.979000],[1161216000000, 3.984535],[1161302400000, 3.990253],[1161388800000, 4.015939],[1161475200000, 4.015939],[1161561600000, 4.015939],[1161648000000, 3.986909],[1161734400000, 3.978644],[1161820800000, 3.991518],[1161907200000, 4.012663],[1161993600000, 4.025464],[1162080000000, 4.025464],[1162166400000, 4.025464],[1162252800000, 4.043625]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });