$(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: [[1467331200000,19.1633],[1467417600000,19.2068],[1467504000000,19.2068],[1467590400000,19.2068],[1467676800000,19.2908],[1467763200000,19.2074],[1467849600000,19.0704],[1467936000000,19.1896],[1468022400000,19.0854],[1468108800000,19.0854],[1468195200000,19.0854],[1468281600000,19.0199],[1468368000000,19.0661],[1468454400000,19.0161],[1468540800000,19.184],[1468627200000,19.2816],[1468713600000,19.2816],[1468800000000,19.2816],[1468886400000,19.1924],[1468972800000,19.0633],[1469059200000,18.9995],[1469145600000,19.0143],[1469232000000,18.9308],[1469318400000,18.9308],[1469404800000,18.9308],[1469491200000,18.8192],[1469577600000,18.729],[1469664000000,18.8139],[1469750400000,null],[1469836800000,18.8264],[1469923200000,18.8264]], 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: [[1467331200000, 19.163309],[1467331200000, 19.163309],[1467417600000, 19.206840],[1467504000000, 19.206840],[1467590400000, 19.206840],[1467676800000, 19.290804],[1467763200000, 19.207435],[1467849600000, 19.070360],[1467936000000, 19.189556],[1468022400000, 19.085355],[1468108800000, 19.085355],[1468195200000, 19.085355],[1468281600000, 19.019933],[1468368000000, 19.066131],[1468454400000, 19.016142],[1468540800000, 19.183991],[1468627200000, 19.281572],[1468713600000, 19.281572],[1468800000000, 19.281572],[1468886400000, 19.192444],[1468972800000, 19.063345],[1469059200000, 18.999451],[1469145600000, 19.014297],[1469232000000, 18.930829],[1469318400000, 18.930829],[1469404800000, 18.930829],[1469491200000, 18.819151],[1469577600000, 18.729024],[1469664000000, 18.813928],[1469836800000, 18.826410],[1469923200000, 18.826410]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });