$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1364774400000,11.9737],[1364860800000,11.9831],[1364947200000,11.9995],[1365033600000,11.9844],[1365120000000,11.9535],[1365206400000,11.9999],[1365292800000,11.9999],[1365379200000,11.9999],[1365465600000,12.0169],[1365552000000,12.0176],[1365638400000,12.033],[1365724800000,12.0497],[1365811200000,12.0319],[1365897600000,12.0319],[1365984000000,12.0319],[1366070400000,12.0472],[1366156800000,12.0525],[1366243200000,12.0578],[1366329600000,12.0271],[1366416000000,12.0374],[1366502400000,12.0374],[1366588800000,12.0374],[1366675200000,12.0053],[1366761600000,11.9982],[1366848000000,12.0037],[1366934400000,12.0407],[1367020800000,12.0235],[1367107200000,12.0235],[1367193600000,12.0235],[1367280000000,12.0634]], 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: [[1364774400000, 11.973653],[1364774400000, 11.973653],[1364860800000, 11.983077],[1364947200000, 11.999484],[1365033600000, 11.984425],[1365120000000, 11.953490],[1365206400000, 11.999898],[1365292800000, 11.999898],[1365379200000, 11.999898],[1365465600000, 12.016929],[1365552000000, 12.017579],[1365638400000, 12.033029],[1365724800000, 12.049664],[1365811200000, 12.031852],[1365897600000, 12.031852],[1365984000000, 12.031852],[1366070400000, 12.047194],[1366156800000, 12.052480],[1366243200000, 12.057771],[1366329600000, 12.027073],[1366416000000, 12.037415],[1366502400000, 12.037415],[1366588800000, 12.037415],[1366675200000, 12.005305],[1366761600000, 11.998205],[1366848000000, 12.003700],[1366934400000, 12.040679],[1367020800000, 12.023508],[1367107200000, 12.023508],[1367193600000, 12.023508],[1367280000000, 12.063358]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });