$(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: [[1141171200000,4.43163],[1141257600000,4.43652],[1141344000000,4.45142],[1141430400000,4.45446],[1141516800000,4.45446],[1141603200000,4.45446],[1141689600000,4.43415],[1141776000000,4.4119],[1141862400000,4.4119],[1141948800000,4.36424],[1142035200000,4.34059],[1142121600000,4.34059],[1142208000000,4.34059],[1142294400000,4.34984],[1142380800000,4.35209],[1142467200000,4.37388],[1142553600000,4.35657],[1142640000000,4.37282],[1142726400000,4.37282],[1142812800000,4.37282],[1142899200000,4.32553],[1142985600000,4.33622],[1143072000000,4.31066],[1143158400000,4.33324],[1143244800000,4.31893],[1143331200000,4.31893],[1143417600000,4.31893],[1143504000000,4.30683],[1143590400000,4.33411],[1143676800000,4.30278],[1143763200000,4.3298]], 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: [[1141171200000, 4.431625],[1141171200000, 4.431625],[1141257600000, 4.436518],[1141344000000, 4.451423],[1141430400000, 4.454465],[1141516800000, 4.454465],[1141603200000, 4.454465],[1141689600000, 4.434155],[1141776000000, 4.411899],[1141862400000, 4.411899],[1141948800000, 4.364243],[1142035200000, 4.340589],[1142121600000, 4.340589],[1142208000000, 4.340589],[1142294400000, 4.349837],[1142380800000, 4.352092],[1142467200000, 4.373878],[1142553600000, 4.356573],[1142640000000, 4.372815],[1142726400000, 4.372815],[1142812800000, 4.372815],[1142899200000, 4.325526],[1142985600000, 4.336223],[1143072000000, 4.310662],[1143158400000, 4.333244],[1143244800000, 4.318932],[1143331200000, 4.318932],[1143417600000, 4.318932],[1143504000000, 4.306826],[1143590400000, 4.334105],[1143676800000, 4.302781],[1143763200000, 4.329799]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });