$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1228089600000,4.48126],[1228176000000,4.58274],[1228262400000,4.68886],[1228348800000,4.74811],[1228435200000,4.73163],[1228521600000,4.68519],[1228608000000,4.68519],[1228694400000,4.68519],[1228780800000,4.90816],[1228867200000,4.86771],[1228953600000,4.91255],[1229040000000,4.97451],[1229126400000,4.91307],[1229212800000,4.91307],[1229299200000,4.91307],[1229385600000,5.10732],[1229472000000,5.19963],[1229558400000,5.40189],[1229644800000,5.55373],[1229731200000,5.36544],[1229817600000,5.36544],[1229904000000,5.36544],[1229990400000,5.39729],[1230076800000,5.32671],[1230163200000,5.31154],[1230249600000,5.31154],[1230336000000,5.25017],[1230422400000,5.25017],[1230508800000,5.25017],[1230595200000,5.33523],[1230681600000,5.31219]], 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: [[1228089600000, 4.481262],[1228089600000, 4.481262],[1228176000000, 4.582744],[1228262400000, 4.688861],[1228348800000, 4.748113],[1228435200000, 4.731632],[1228521600000, 4.685191],[1228608000000, 4.685191],[1228694400000, 4.685191],[1228780800000, 4.908162],[1228867200000, 4.867709],[1228953600000, 4.912552],[1229040000000, 4.974512],[1229126400000, 4.913072],[1229212800000, 4.913072],[1229299200000, 4.913072],[1229385600000, 5.107322],[1229472000000, 5.199633],[1229558400000, 5.401887],[1229644800000, 5.553728],[1229731200000, 5.365436],[1229817600000, 5.365436],[1229904000000, 5.365436],[1229990400000, 5.397285],[1230076800000, 5.326711],[1230163200000, 5.311536],[1230249600000, 5.311536],[1230336000000, 5.250170],[1230422400000, 5.250170],[1230508800000, 5.250170],[1230595200000, 5.335227],[1230681600000, 5.312190]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });