$(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: [[1128124800000,3.90798],[1128211200000,3.90798],[1128297600000,3.90798],[1128384000000,3.87859],[1128470400000,3.88747],[1128556800000,3.8909],[1128643200000,3.93972],[1128729600000,3.96068],[1128816000000,3.96068],[1128902400000,3.96068],[1128988800000,3.93937],[1129075200000,3.92343],[1129161600000,3.91784],[1129248000000,3.89964],[1129334400000,3.90784],[1129420800000,3.90784],[1129507200000,3.90784],[1129593600000,3.90777],[1129680000000,3.87465],[1129766400000,3.88937],[1129852800000,3.8916],[1129939200000,3.92295],[1130025600000,3.92295],[1130112000000,3.92295],[1130198400000,3.90504],[1130284800000,3.93018],[1130371200000,3.9355],[1130457600000,3.96175],[1130544000000,3.96513],[1130630400000,3.96513],[1130716800000,3.96513]], 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: [[1128124800000, 3.907981],[1128124800000, 3.907981],[1128211200000, 3.907981],[1128297600000, 3.907981],[1128384000000, 3.878590],[1128470400000, 3.887471],[1128556800000, 3.890904],[1128643200000, 3.939719],[1128729600000, 3.960682],[1128816000000, 3.960682],[1128902400000, 3.960682],[1128988800000, 3.939365],[1129075200000, 3.923426],[1129161600000, 3.917845],[1129248000000, 3.899639],[1129334400000, 3.907839],[1129420800000, 3.907839],[1129507200000, 3.907839],[1129593600000, 3.907769],[1129680000000, 3.874653],[1129766400000, 3.889372],[1129852800000, 3.891603],[1129939200000, 3.922952],[1130025600000, 3.922952],[1130112000000, 3.922952],[1130198400000, 3.905037],[1130284800000, 3.930176],[1130371200000, 3.935501],[1130457600000, 3.961745],[1130544000000, 3.965127],[1130630400000, 3.965127],[1130716800000, 3.965127]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });