$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1533168000000,0.077431],[1533254400000,0.077247],[1533340800000,0.077461],[1533427200000,0.077461],[1533513600000,0.077461],[1533600000000,0.077786],[1533686400000,0.077464],[1533772800000,0.077345],[1533859200000,0.076573],[1533945600000,0.076361],[1534032000000,0.076361],[1534118400000,0.076361],[1534204800000,0.075283],[1534291200000,0.075586],[1534377600000,0.0759],[1534464000000,0.076677],[1534550400000,0.07747],[1534636800000,0.07747],[1534723200000,0.07747],[1534809600000,0.076784],[1534896000000,0.076819],[1534982400000,0.077104],[1535068800000,0.077021],[1535155200000,0.077021],[1535241600000,0.077021],[1535328000000,0.077021],[1535414400000,0.077204],[1535500800000,0.077638],[1535587200000,0.077364],[1535673600000,0.077813]], 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: [[1533168000000, 0.077431],[1533168000000, 0.077431],[1533254400000, 0.077247],[1533340800000, 0.077461],[1533427200000, 0.077461],[1533513600000, 0.077461],[1533600000000, 0.077786],[1533686400000, 0.077464],[1533772800000, 0.077345],[1533859200000, 0.076573],[1533945600000, 0.076361],[1534032000000, 0.076361],[1534118400000, 0.076361],[1534204800000, 0.075283],[1534291200000, 0.075586],[1534377600000, 0.075900],[1534464000000, 0.076677],[1534550400000, 0.077470],[1534636800000, 0.077470],[1534723200000, 0.077470],[1534809600000, 0.076784],[1534896000000, 0.076819],[1534982400000, 0.077104],[1535068800000, 0.077021],[1535155200000, 0.077021],[1535241600000, 0.077021],[1535328000000, 0.077021],[1535414400000, 0.077204],[1535500800000, 0.077638],[1535587200000, 0.077364],[1535673600000, 0.077813]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });