$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1501545600000,19.0476],[1501632000000,19.039],[1501718400000,19.075],[1501804800000,19.0332],[1501891200000,19.0535],[1501977600000,19.0535],[1502064000000,19.0535],[1502150400000,18.9134],[1502236800000,18.9152],[1502323200000,18.875],[1502409600000,18.8389],[1502496000000,18.8332],[1502582400000,18.8332],[1502668800000,18.8332],[1502755200000,18.8237],[1502841600000,18.7399],[1502928000000,18.6903],[1503014400000,18.6725],[1503100800000,18.6872],[1503187200000,18.6872],[1503273600000,18.6872],[1503360000000,null],[1503446400000,18.6871],[1503532800000,18.755],[1503619200000,18.755],[1503705600000,18.755],[1503792000000,18.755],[1503878400000,18.755],[1503964800000,18.8336],[1504051200000,18.8238],[1504137600000,18.8536]], 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, 19.047563],[1501545600000, 19.047563],[1501632000000, 19.039007],[1501718400000, 19.074984],[1501804800000, 19.033169],[1501891200000, 19.053454],[1501977600000, 19.053454],[1502064000000, 19.053454],[1502150400000, 18.913421],[1502236800000, 18.915159],[1502323200000, 18.875040],[1502409600000, 18.838929],[1502496000000, 18.833170],[1502582400000, 18.833170],[1502668800000, 18.833170],[1502755200000, 18.823704],[1502841600000, 18.739945],[1502928000000, 18.690335],[1503014400000, 18.672454],[1503100800000, 18.687230],[1503187200000, 18.687230],[1503273600000, 18.687230],[1503446400000, 18.687126],[1503532800000, 18.755043],[1503619200000, 18.755043],[1503705600000, 18.755043],[1503792000000, 18.755043],[1503878400000, 18.755043],[1503964800000, 18.833589],[1504051200000, 18.823808],[1504137600000, 18.853579]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });