$(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: [[1406851200000,18.5472],[1406937600000,18.3195],[1407024000000,18.3195],[1407110400000,18.3195],[1407196800000,18.653],[1407283200000,18.8424],[1407369600000,18.9221],[1407456000000,19.0545],[1407542400000,19.3044],[1407628800000,19.3044],[1407715200000,19.3044],[1407801600000,19.6483],[1407888000000,20.12],[1407974400000,20.0444],[1408060800000,20.0121],[1408147200000,20.0843],[1408233600000,20.0843],[1408320000000,20.0843],[1408406400000,19.9898],[1408492800000,19.8186],[1408579200000,20.1952],[1408665600000,19.9774],[1408752000000,20.3373],[1408838400000,20.3373],[1408924800000,20.3373],[1409011200000,20.3373],[1409097600000,20.7463],[1409184000000,21.0969],[1409270400000,20.3992],[1409356800000,20.6557]], 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: [[1406851200000, 18.547234],[1406851200000, 18.547234],[1406937600000, 18.319452],[1407024000000, 18.319452],[1407110400000, 18.319452],[1407196800000, 18.653031],[1407283200000, 18.842407],[1407369600000, 18.922066],[1407456000000, 19.054484],[1407542400000, 19.304397],[1407628800000, 19.304397],[1407715200000, 19.304397],[1407801600000, 19.648330],[1407888000000, 20.120008],[1407974400000, 20.044400],[1408060800000, 20.012085],[1408147200000, 20.084265],[1408233600000, 20.084265],[1408320000000, 20.084265],[1408406400000, 19.989803],[1408492800000, 19.818556],[1408579200000, 20.195180],[1408665600000, 19.977437],[1408752000000, 20.337338],[1408838400000, 20.337338],[1408924800000, 20.337338],[1409011200000, 20.337338],[1409097600000, 20.746304],[1409184000000, 21.096892],[1409270400000, 20.399201],[1409356800000, 20.655687]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });