$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1406851200000,0.3386],[1406937600000,0.33753],[1407024000000,0.33753],[1407110400000,0.33753],[1407196800000,0.341],[1407283200000,0.34485],[1407369600000,0.34512],[1407456000000,0.34501],[1407542400000,0.34778],[1407628800000,0.34778],[1407715200000,0.34778],[1407801600000,0.35192],[1407888000000,0.3645],[1407974400000,0.36329],[1408060800000,0.36143],[1408147200000,0.36447],[1408233600000,0.36447],[1408320000000,0.36447],[1408406400000,0.36313],[1408492800000,0.3595],[1408579200000,0.36619],[1408665600000,0.36199],[1408752000000,0.36787],[1408838400000,0.36787],[1408924800000,0.36787],[1409011200000,0.36787],[1409097600000,0.37817],[1409184000000,0.38441],[1409270400000,0.37182],[1409356800000,0.37476]], 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.338600],[1406851200000, 0.338600],[1406937600000, 0.337530],[1407024000000, 0.337530],[1407110400000, 0.337530],[1407196800000, 0.341000],[1407283200000, 0.344850],[1407369600000, 0.345120],[1407456000000, 0.345010],[1407542400000, 0.347780],[1407628800000, 0.347780],[1407715200000, 0.347780],[1407801600000, 0.351920],[1407888000000, 0.364500],[1407974400000, 0.363290],[1408060800000, 0.361430],[1408147200000, 0.364470],[1408233600000, 0.364470],[1408320000000, 0.364470],[1408406400000, 0.363130],[1408492800000, 0.359500],[1408579200000, 0.366190],[1408665600000, 0.361990],[1408752000000, 0.367870],[1408838400000, 0.367870],[1408924800000, 0.367870],[1409011200000, 0.367870],[1409097600000, 0.378170],[1409184000000, 0.384410],[1409270400000, 0.371820],[1409356800000, 0.374760]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });