$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1396310400000,9.96005],[1396396800000,10.0488],[1396483200000,10.2085],[1396569600000,10.1868],[1396656000000,10.5298],[1396742400000,10.5298],[1396828800000,10.5298],[1396915200000,10.5707],[1397001600000,10.67],[1397088000000,10.8677],[1397174400000,11.5403],[1397260800000,11.529],[1397347200000,11.529],[1397433600000,11.529],[1397520000000,11.8308],[1397606400000,11.2943],[1397692800000,10.3685],[1397779200000,10.2453],[1397865600000,10.1983],[1397952000000,10.1983],[1398038400000,10.1983],[1398124800000,10.1983],[1398211200000,10.2166],[1398297600000,10.453],[1398384000000,10.3282],[1398470400000,10.3246],[1398556800000,10.3246],[1398643200000,10.3246],[1398729600000,10.3079],[1398816000000,10.3487]], 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: [[1396310400000, 9.960053],[1396310400000, 9.960053],[1396396800000, 10.048848],[1396483200000, 10.208536],[1396569600000, 10.186837],[1396656000000, 10.529843],[1396742400000, 10.529843],[1396828800000, 10.529843],[1396915200000, 10.570747],[1397001600000, 10.669957],[1397088000000, 10.867705],[1397174400000, 11.540332],[1397260800000, 11.529040],[1397347200000, 11.529040],[1397433600000, 11.529040],[1397520000000, 11.830849],[1397606400000, 11.294279],[1397692800000, 10.368500],[1397779200000, 10.245313],[1397865600000, 10.198338],[1397952000000, 10.198338],[1398038400000, 10.198338],[1398124800000, 10.198338],[1398211200000, 10.216578],[1398297600000, 10.452954],[1398384000000, 10.328223],[1398470400000, 10.324594],[1398556800000, 10.324594],[1398643200000, 10.324594],[1398729600000, 10.307899],[1398816000000, 10.348660]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });