$(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: [[1435708800000,16.983],[1435795200000,16.7725],[1435881600000,16.6522],[1435968000000,16.705],[1436054400000,16.705],[1436140800000,16.705],[1436227200000,16.8244],[1436313600000,17.0346],[1436400000000,17.2421],[1436486400000,17.2236],[1436572800000,17.2485],[1436659200000,17.2485],[1436745600000,17.2485],[1436832000000,17.2663],[1436918400000,17.2372],[1437004800000,17.347],[1437091200000,16.9815],[1437177600000,16.963],[1437264000000,16.963],[1437350400000,16.963],[1437436800000,16.9678],[1437523200000,16.9505],[1437609600000,16.9391],[1437696000000,16.968],[1437782400000,16.8619],[1437868800000,16.8619],[1437955200000,16.8619],[1438041600000,16.8619],[1438128000000,16.9352],[1438214400000,17.0391],[1438300800000,16.6496]], 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: [[1435708800000, 16.982975],[1435708800000, 16.982975],[1435795200000, 16.772460],[1435881600000, 16.652185],[1435968000000, 16.704998],[1436054400000, 16.704998],[1436140800000, 16.704998],[1436227200000, 16.824421],[1436313600000, 17.034605],[1436400000000, 17.242077],[1436486400000, 17.223627],[1436572800000, 17.248513],[1436659200000, 17.248513],[1436745600000, 17.248513],[1436832000000, 17.266276],[1436918400000, 17.237187],[1437004800000, 17.347047],[1437091200000, 16.981473],[1437177600000, 16.962957],[1437264000000, 16.962957],[1437350400000, 16.962957],[1437436800000, 16.967761],[1437523200000, 16.950504],[1437609600000, 16.939073],[1437696000000, 16.968021],[1437782400000, 16.861888],[1437868800000, 16.861888],[1437955200000, 16.861888],[1438041600000, 16.861888],[1438128000000, 16.935217],[1438214400000, 17.039075],[1438300800000, 16.649578]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });