$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1406851200000,0.589317],[1406937600000,0.580547],[1407024000000,0.580547],[1407110400000,0.580547],[1407196800000,0.590463],[1407283200000,0.597064],[1407369600000,0.59756],[1407456000000,0.597324],[1407542400000,0.605059],[1407628800000,0.605059],[1407715200000,0.605059],[1407801600000,0.617122],[1407888000000,0.631492],[1407974400000,0.628389],[1408060800000,0.628273],[1408147200000,0.630853],[1408233600000,0.630853],[1408320000000,0.630853],[1408406400000,0.627736],[1408492800000,0.621306],[1408579200000,0.630556],[1408665600000,0.623712],[1408752000000,0.637278],[1408838400000,0.637278],[1408924800000,0.637278],[1409011200000,0.637278],[1409097600000,0.647807],[1409184000000,0.658201],[1409270400000,0.638075],[1409356800000,0.645533]], 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, 0.589317],[1406851200000, 0.589317],[1406937600000, 0.580547],[1407024000000, 0.580547],[1407110400000, 0.580547],[1407196800000, 0.590463],[1407283200000, 0.597064],[1407369600000, 0.597560],[1407456000000, 0.597324],[1407542400000, 0.605059],[1407628800000, 0.605059],[1407715200000, 0.605059],[1407801600000, 0.617122],[1407888000000, 0.631492],[1407974400000, 0.628389],[1408060800000, 0.628273],[1408147200000, 0.630853],[1408233600000, 0.630853],[1408320000000, 0.630853],[1408406400000, 0.627736],[1408492800000, 0.621306],[1408579200000, 0.630556],[1408665600000, 0.623712],[1408752000000, 0.637278],[1408838400000, 0.637278],[1408924800000, 0.637278],[1409011200000, 0.637278],[1409097600000, 0.647807],[1409184000000, 0.658201],[1409270400000, 0.638075],[1409356800000, 0.645533]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });