$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1249084800000,0.0408396],[1249171200000,0.0408396],[1249257600000,0.0408396],[1249344000000,0.0413775],[1249430400000,0.0413745],[1249516800000,0.0414652],[1249603200000,0.0409872],[1249689600000,0.0405438],[1249776000000,0.0405438],[1249862400000,0.0405438],[1249948800000,0.0406585],[1250035200000,0.0400881],[1250121600000,0.0400831],[1250208000000,0.0412947],[1250294400000,0.0412429],[1250380800000,0.0412429],[1250467200000,0.0412429],[1250553600000,0.040077],[1250640000000,0.0404919],[1250726400000,0.0403597],[1250812800000,0.0413619],[1250899200000,0.042362],[1250985600000,0.042362],[1251072000000,0.042362],[1251158400000,0.042362],[1251244800000,0.0427279],[1251331200000,0.0425861],[1251417600000,0.0424533],[1251504000000,0.0423853],[1251590400000,0.0423853],[1251676800000,0.0423853]], 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: [[1249084800000, 0.040840],[1249084800000, 0.040840],[1249171200000, 0.040840],[1249257600000, 0.040840],[1249344000000, 0.041377],[1249430400000, 0.041375],[1249516800000, 0.041465],[1249603200000, 0.040987],[1249689600000, 0.040544],[1249776000000, 0.040544],[1249862400000, 0.040544],[1249948800000, 0.040659],[1250035200000, 0.040088],[1250121600000, 0.040083],[1250208000000, 0.041295],[1250294400000, 0.041243],[1250380800000, 0.041243],[1250467200000, 0.041243],[1250553600000, 0.040077],[1250640000000, 0.040492],[1250726400000, 0.040360],[1250812800000, 0.041362],[1250899200000, 0.042362],[1250985600000, 0.042362],[1251072000000, 0.042362],[1251158400000, 0.042362],[1251244800000, 0.042728],[1251331200000, 0.042586],[1251417600000, 0.042453],[1251504000000, 0.042385],[1251590400000, 0.042385],[1251676800000, 0.042385]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });