$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1501545600000,26.6924],[1501632000000,26.7587],[1501718400000,26.7406],[1501804800000,26.6938],[1501891200000,26.6838],[1501977600000,26.6838],[1502064000000,26.6838],[1502150400000,26.4969],[1502236800000,26.4858],[1502323200000,26.7222],[1502409600000,26.5782],[1502496000000,26.7058],[1502582400000,26.7058],[1502668800000,26.7058],[1502755200000,26.4722],[1502841600000,26.3315],[1502928000000,26.2543],[1503014400000,26.3768],[1503100800000,26.5134],[1503187200000,26.5134],[1503273600000,26.5134],[1503360000000,null],[1503446400000,26.3633],[1503532800000,26.4582],[1503619200000,26.4582],[1503705600000,26.4582],[1503792000000,26.4582],[1503878400000,26.4582],[1503964800000,26.7166],[1504051200000,26.9197],[1504137600000,26.6859]], 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, 26.692412],[1501545600000, 26.692412],[1501632000000, 26.758695],[1501718400000, 26.740601],[1501804800000, 26.693767],[1501891200000, 26.683788],[1501977600000, 26.683788],[1502064000000, 26.683788],[1502150400000, 26.496912],[1502236800000, 26.485836],[1502323200000, 26.722230],[1502409600000, 26.578155],[1502496000000, 26.705834],[1502582400000, 26.705834],[1502668800000, 26.705834],[1502755200000, 26.472173],[1502841600000, 26.331453],[1502928000000, 26.254300],[1503014400000, 26.376843],[1503100800000, 26.513450],[1503187200000, 26.513450],[1503273600000, 26.513450],[1503446400000, 26.363253],[1503532800000, 26.458242],[1503619200000, 26.458242],[1503705600000, 26.458242],[1503792000000, 26.458242],[1503878400000, 26.458242],[1503964800000, 26.716609],[1504051200000, 26.919731],[1504137600000, 26.685853]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });