$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1330560000000,12.7225],[1330646400000,12.7343],[1330732800000,12.6789],[1330819200000,12.6789],[1330905600000,12.6789],[1330992000000,12.6522],[1331078400000,12.6198],[1331164800000,12.5519],[1331251200000,12.5519],[1331337600000,12.5519],[1331424000000,12.5519],[1331510400000,12.5519],[1331596800000,12.4843],[1331683200000,12.475],[1331769600000,12.5435],[1331856000000,12.5079],[1331942400000,12.6258],[1332028800000,12.6258],[1332115200000,12.6258],[1332201600000,12.6746],[1332288000000,12.6635],[1332374400000,12.6477],[1332460800000,12.6182],[1332547200000,12.6446],[1332633600000,12.6446],[1332720000000,12.6446],[1332806400000,12.6942],[1332892800000,12.7376],[1332979200000,12.6943],[1333065600000,12.6824],[1333152000000,12.7937]], 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, 12.722504],[1330560000000, 12.722504],[1330646400000, 12.734334],[1330732800000, 12.678924],[1330819200000, 12.678924],[1330905600000, 12.678924],[1330992000000, 12.652173],[1331078400000, 12.619802],[1331164800000, 12.551922],[1331251200000, 12.551922],[1331337600000, 12.551922],[1331424000000, 12.551922],[1331510400000, 12.551922],[1331596800000, 12.484311],[1331683200000, 12.475040],[1331769600000, 12.543542],[1331856000000, 12.507899],[1331942400000, 12.625830],[1332028800000, 12.625830],[1332115200000, 12.625830],[1332201600000, 12.674603],[1332288000000, 12.663546],[1332374400000, 12.647659],[1332460800000, 12.618230],[1332547200000, 12.644582],[1332633600000, 12.644582],[1332720000000, 12.644582],[1332806400000, 12.694221],[1332892800000, 12.737569],[1332979200000, 12.694312],[1333065600000, 12.682398],[1333152000000, 12.793667]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });