$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1359676800000,1.45156],[1359763200000,1.46184],[1359849600000,1.46184],[1359936000000,1.46184],[1360022400000,1.45205],[1360108800000,1.45052],[1360195200000,1.44833],[1360281600000,1.45129],[1360368000000,1.4329],[1360454400000,1.4329],[1360540800000,1.4329],[1360627200000,1.43445],[1360713600000,1.43952],[1360800000000,1.444],[1360886400000,1.42784],[1360972800000,1.42792],[1361059200000,1.42792],[1361145600000,1.42792],[1361232000000,1.43067],[1361318400000,1.4303],[1361404800000,1.43245],[1361491200000,1.41289],[1361577600000,1.41289],[1361664000000,1.41289],[1361750400000,1.41289],[1361836800000,1.42519],[1361923200000,1.40134],[1362009600000,1.40392]], 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: [[1359676800000, 1.451559],[1359676800000, 1.451559],[1359763200000, 1.461844],[1359849600000, 1.461844],[1359936000000, 1.461844],[1360022400000, 1.452045],[1360108800000, 1.450516],[1360195200000, 1.448334],[1360281600000, 1.451286],[1360368000000, 1.432897],[1360454400000, 1.432897],[1360540800000, 1.432897],[1360627200000, 1.434449],[1360713600000, 1.439522],[1360800000000, 1.444002],[1360886400000, 1.427842],[1360972800000, 1.427915],[1361059200000, 1.427915],[1361145600000, 1.427915],[1361232000000, 1.430674],[1361318400000, 1.430295],[1361404800000, 1.432449],[1361491200000, 1.412887],[1361577600000, 1.412887],[1361664000000, 1.412887],[1361750400000, 1.412887],[1361836800000, 1.425187],[1361923200000, 1.401339],[1362009600000, 1.403915]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });