$(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: [[1330560000000,7.9867],[1330646400000,7.9867],[1330732800000,7.988],[1330819200000,7.988],[1330905600000,7.988],[1330992000000,7.988],[1331078400000,7.988],[1331164800000,7.9875],[1331251200000,7.9875],[1331337600000,7.9875],[1331424000000,7.9875],[1331510400000,7.9875],[1331596800000,7.986],[1331683200000,7.985],[1331769600000,7.984],[1331856000000,7.984],[1331942400000,7.985],[1332028800000,7.985],[1332115200000,7.985],[1332201600000,7.985],[1332288000000,7.985],[1332374400000,7.985],[1332460800000,7.9857],[1332547200000,7.9857],[1332633600000,7.9857],[1332720000000,7.9857],[1332806400000,7.986],[1332892800000,7.9857],[1332979200000,7.9857],[1333065600000,7.9867],[1333152000000,7.9879]], 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: [[1330560000000, 7.986700],[1330560000000, 7.986700],[1330646400000, 7.986700],[1330732800000, 7.988000],[1330819200000, 7.988000],[1330905600000, 7.988000],[1330992000000, 7.988000],[1331078400000, 7.988000],[1331164800000, 7.987500],[1331251200000, 7.987500],[1331337600000, 7.987500],[1331424000000, 7.987500],[1331510400000, 7.987500],[1331596800000, 7.986000],[1331683200000, 7.985000],[1331769600000, 7.984000],[1331856000000, 7.984000],[1331942400000, 7.985000],[1332028800000, 7.985000],[1332115200000, 7.985000],[1332201600000, 7.985000],[1332288000000, 7.985000],[1332374400000, 7.985000],[1332460800000, 7.985700],[1332547200000, 7.985700],[1332633600000, 7.985700],[1332720000000, 7.985700],[1332806400000, 7.986000],[1332892800000, 7.985700],[1332979200000, 7.985700],[1333065600000, 7.986700],[1333152000000, 7.987900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });