$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1501545600000,0.43046],[1501632000000,0.43206],[1501718400000,0.42759],[1501804800000,0.4261],[1501891200000,0.42837],[1501977600000,0.42837],[1502064000000,0.42837],[1502150400000,0.42932],[1502236800000,0.42896],[1502323200000,0.42902],[1502409600000,0.42871],[1502496000000,0.42693],[1502582400000,0.42693],[1502668800000,0.42693],[1502755200000,0.42861],[1502841600000,0.42716],[1502928000000,0.4287],[1503014400000,0.4305],[1503100800000,0.42941],[1503187200000,0.42941],[1503273600000,0.42941],[1503360000000,null],[1503446400000,0.4311],[1503532800000,0.43202],[1503619200000,0.43202],[1503705600000,0.43202],[1503792000000,0.43202],[1503878400000,0.43202],[1503964800000,0.43582],[1504051200000,0.43464],[1504137600000,0.43554]], 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: [[1501545600000, 0.430460],[1501545600000, 0.430460],[1501632000000, 0.432060],[1501718400000, 0.427590],[1501804800000, 0.426100],[1501891200000, 0.428370],[1501977600000, 0.428370],[1502064000000, 0.428370],[1502150400000, 0.429320],[1502236800000, 0.428960],[1502323200000, 0.429020],[1502409600000, 0.428710],[1502496000000, 0.426930],[1502582400000, 0.426930],[1502668800000, 0.426930],[1502755200000, 0.428610],[1502841600000, 0.427160],[1502928000000, 0.428700],[1503014400000, 0.430500],[1503100800000, 0.429410],[1503187200000, 0.429410],[1503273600000, 0.429410],[1503446400000, 0.431100],[1503532800000, 0.432020],[1503619200000, 0.432020],[1503705600000, 0.432020],[1503792000000, 0.432020],[1503878400000, 0.432020],[1503964800000, 0.435820],[1504051200000, 0.434640],[1504137600000, 0.435540]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });