$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1406851200000,13.3264],[1406937600000,13.1528],[1407024000000,13.1528],[1407110400000,13.1528],[1407196800000,13.4171],[1407283200000,13.5661],[1407369600000,13.5797],[1407456000000,13.6816],[1407542400000,13.8705],[1407628800000,13.8705],[1407715200000,13.8705],[1407801600000,14.148],[1407888000000,14.4951],[1407974400000,14.4155],[1408060800000,14.4133],[1408147200000,14.4887],[1408233600000,14.4887],[1408320000000,14.4887],[1408406400000,14.4482],[1408492800000,14.3177],[1408579200000,14.5886],[1408665600000,14.3888],[1408752000000,14.6381],[1408838400000,14.6381],[1408924800000,14.6381],[1409011200000,14.6381],[1409097600000,14.9172],[1409184000000,15.1621],[1409270400000,14.6723],[1409356800000,14.8671]], 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, 13.326364],[1406851200000, 13.326364],[1406937600000, 13.152825],[1407024000000, 13.152825],[1407110400000, 13.152825],[1407196800000, 13.417091],[1407283200000, 13.566061],[1407369600000, 13.579712],[1407456000000, 13.681641],[1407542400000, 13.870544],[1407628800000, 13.870544],[1407715200000, 13.870544],[1407801600000, 14.147993],[1407888000000, 14.495062],[1407974400000, 14.415462],[1408060800000, 14.413261],[1408147200000, 14.488694],[1408233600000, 14.488694],[1408320000000, 14.488694],[1408406400000, 14.448199],[1408492800000, 14.317694],[1408579200000, 14.588646],[1408665600000, 14.388758],[1408752000000, 14.638070],[1408838400000, 14.638070],[1408924800000, 14.638070],[1409011200000, 14.638070],[1409097600000, 14.917199],[1409184000000, 15.162149],[1409270400000, 14.672334],[1409356800000, 14.867075]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });