$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1128124800000,6.08121],[1128211200000,6.08121],[1128297600000,6.08121],[1128384000000,6.02616],[1128470400000,6.02869],[1128556800000,6.03324],[1128643200000,6.0908],[1128729600000,6.13272],[1128816000000,6.13272],[1128902400000,6.13272],[1128988800000,6.10444],[1129075200000,6.07111],[1129161600000,6.06404],[1129248000000,6.0499],[1129334400000,6.0595],[1129420800000,6.0595],[1129507200000,6.0595],[1129593600000,6.07111],[1129680000000,6.02818],[1129766400000,6.03475],[1129852800000,6.03627],[1129939200000,6.06606],[1130025600000,6.06606],[1130112000000,6.06606],[1130198400000,6.03172],[1130284800000,6.06858],[1130371200000,6.08979],[1130457600000,6.12565],[1130544000000,6.12969],[1130630400000,6.12969],[1130716800000,6.12969]], 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, 6.081210],[1128124800000, 6.081210],[1128211200000, 6.081210],[1128297600000, 6.081210],[1128384000000, 6.026165],[1128470400000, 6.028690],[1128556800000, 6.033235],[1128643200000, 6.090805],[1128729600000, 6.132720],[1128816000000, 6.132720],[1128902400000, 6.132720],[1128988800000, 6.104440],[1129075200000, 6.071110],[1129161600000, 6.064040],[1129248000000, 6.049900],[1129334400000, 6.059495],[1129420800000, 6.059495],[1129507200000, 6.059495],[1129593600000, 6.071110],[1129680000000, 6.028185],[1129766400000, 6.034750],[1129852800000, 6.036265],[1129939200000, 6.066060],[1130025600000, 6.066060],[1130112000000, 6.066060],[1130198400000, 6.031720],[1130284800000, 6.068585],[1130371200000, 6.089795],[1130457600000, 6.125650],[1130544000000, 6.129690],[1130630400000, 6.129690],[1130716800000, 6.129690]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });