$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1159660800000,3.34518],[1159747200000,3.34518],[1159833600000,3.33381],[1159920000000,3.36323],[1160006400000,3.33286],[1160092800000,3.36517],[1160179200000,3.38162],[1160265600000,3.38162],[1160352000000,3.38162],[1160438400000,3.3632],[1160524800000,3.36792],[1160611200000,3.38276],[1160697600000,3.407],[1160784000000,3.43323],[1160870400000,3.43323],[1160956800000,3.43323],[1161043200000,3.41737],[1161129600000,3.40987],[1161216000000,3.42464],[1161302400000,3.46629],[1161388800000,3.46215],[1161475200000,3.46215],[1161561600000,3.46215],[1161648000000,3.45547],[1161734400000,3.4304],[1161820800000,3.43865],[1161907200000,3.48311],[1161993600000,3.48036],[1162080000000,3.48036],[1162166400000,3.48036],[1162252800000,3.46204]], 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, 3.345176],[1159660800000, 3.345176],[1159747200000, 3.345176],[1159833600000, 3.333815],[1159920000000, 3.363234],[1160006400000, 3.332858],[1160092800000, 3.365168],[1160179200000, 3.381620],[1160265600000, 3.381620],[1160352000000, 3.381620],[1160438400000, 3.363198],[1160524800000, 3.367920],[1160611200000, 3.382758],[1160697600000, 3.406996],[1160784000000, 3.433234],[1160870400000, 3.433234],[1160956800000, 3.433234],[1161043200000, 3.417365],[1161129600000, 3.409866],[1161216000000, 3.424640],[1161302400000, 3.466287],[1161388800000, 3.462152],[1161475200000, 3.462152],[1161561600000, 3.462152],[1161648000000, 3.455466],[1161734400000, 3.430400],[1161820800000, 3.438647],[1161907200000, 3.483110],[1161993600000, 3.480365],[1162080000000, 3.480365],[1162166400000, 3.480365],[1162252800000, 3.462040]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });