$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1228089600000,0.347227],[1228176000000,0.351565],[1228262400000,0.357798],[1228348800000,0.36348],[1228435200000,0.361201],[1228521600000,0.361777],[1228608000000,0.361777],[1228694400000,0.361777],[1228780800000,0.369887],[1228867200000,0.37061],[1228953600000,0.372994],[1229040000000,0.381044],[1229126400000,0.383575],[1229212800000,0.383575],[1229299200000,0.383575],[1229385600000,0.395316],[1229472000000,0.401719],[1229558400000,0.421143],[1229644800000,0.433539],[1229731200000,0.417051],[1229817600000,0.417051],[1229904000000,0.417051],[1229990400000,0.416289],[1230076800000,0.413805],[1230163200000,0.413348],[1230249600000,0.413348],[1230336000000,0.408572],[1230422400000,0.408572],[1230508800000,0.408572],[1230595200000,0.415343],[1230681600000,0.40764]], 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: [[1228089600000, 0.347227],[1228089600000, 0.347227],[1228176000000, 0.351565],[1228262400000, 0.357798],[1228348800000, 0.363480],[1228435200000, 0.361201],[1228521600000, 0.361777],[1228608000000, 0.361777],[1228694400000, 0.361777],[1228780800000, 0.369887],[1228867200000, 0.370610],[1228953600000, 0.372994],[1229040000000, 0.381044],[1229126400000, 0.383575],[1229212800000, 0.383575],[1229299200000, 0.383575],[1229385600000, 0.395316],[1229472000000, 0.401719],[1229558400000, 0.421143],[1229644800000, 0.433539],[1229731200000, 0.417051],[1229817600000, 0.417051],[1229904000000, 0.417051],[1229990400000, 0.416289],[1230076800000, 0.413805],[1230163200000, 0.413348],[1230249600000, 0.413348],[1230336000000, 0.408572],[1230422400000, 0.408572],[1230508800000, 0.408572],[1230595200000, 0.415343],[1230681600000, 0.407640]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });