$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1251763200000,7.989],[1251849600000,7.98],[1251936000000,7.985],[1252022400000,7.985],[1252108800000,7.995],[1252195200000,7.995],[1252281600000,7.995],[1252368000000,7.995],[1252454400000,7.997],[1252540800000,7.995],[1252627200000,7.9944],[1252713600000,7.9974],[1252800000000,7.9974],[1252886400000,7.9974],[1252972800000,7.9969],[1253059200000,8.0042],[1253145600000,8.0042],[1253232000000,8.0065],[1253318400000,8.0065],[1253404800000,8.0065],[1253491200000,8.0065],[1253577600000,8.0068],[1253664000000,8.0068],[1253750400000,8.0068],[1253836800000,8.0068],[1253923200000,8.0068],[1254009600000,8.0068],[1254096000000,8.0068],[1254182400000,8.01],[1254268800000,8.01]], 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: [[1251763200000, 7.989000],[1251763200000, 7.989000],[1251849600000, 7.980000],[1251936000000, 7.985000],[1252022400000, 7.985000],[1252108800000, 7.995000],[1252195200000, 7.995000],[1252281600000, 7.995000],[1252368000000, 7.995000],[1252454400000, 7.997000],[1252540800000, 7.995000],[1252627200000, 7.994400],[1252713600000, 7.997400],[1252800000000, 7.997400],[1252886400000, 7.997400],[1252972800000, 7.996900],[1253059200000, 8.004200],[1253145600000, 8.004200],[1253232000000, 8.006500],[1253318400000, 8.006500],[1253404800000, 8.006500],[1253491200000, 8.006500],[1253577600000, 8.006800],[1253664000000, 8.006800],[1253750400000, 8.006800],[1253836800000, 8.006800],[1253923200000, 8.006800],[1254009600000, 8.006800],[1254096000000, 8.006800],[1254182400000, 8.010000],[1254268800000, 8.010000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });