$(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: [[1272672000000,0.0395523],[1272758400000,0.0395523],[1272844800000,0.0395523],[1272931200000,0.0395523],[1273017600000,0.0395523],[1273104000000,0.0370026],[1273190400000,0.0361008],[1273276800000,0.0358748],[1273363200000,0.0358748],[1273449600000,0.0358748],[1273536000000,0.0358748],[1273622400000,0.0364517],[1273708800000,0.0367285],[1273795200000,0.0366171],[1273881600000,0.0358564],[1273968000000,null],[1274054400000,0.0358564],[1274140800000,0.0352303],[1274227200000,0.035512],[1274313600000,0.0347937],[1274400000000,0.0345426],[1274486400000,0.035206],[1274572800000,0.035206],[1274659200000,0.035206],[1274745600000,0.035206],[1274832000000,0.0345507],[1274918400000,0.0351621],[1275004800000,0.0350799],[1275091200000,0.0358283],[1275177600000,0.0358283],[1275264000000,0.0358283]], 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: [[1272672000000, 0.039552],[1272672000000, 0.039552],[1272758400000, 0.039552],[1272844800000, 0.039552],[1272931200000, 0.039552],[1273017600000, 0.039552],[1273104000000, 0.037003],[1273190400000, 0.036101],[1273276800000, 0.035875],[1273363200000, 0.035875],[1273449600000, 0.035875],[1273536000000, 0.035875],[1273622400000, 0.036452],[1273708800000, 0.036728],[1273795200000, 0.036617],[1273881600000, 0.035856],[1274054400000, 0.035856],[1274140800000, 0.035230],[1274227200000, 0.035512],[1274313600000, 0.034794],[1274400000000, 0.034543],[1274486400000, 0.035206],[1274572800000, 0.035206],[1274659200000, 0.035206],[1274745600000, 0.035206],[1274832000000, 0.034551],[1274918400000, 0.035162],[1275004800000, 0.035080],[1275091200000, 0.035828],[1275177600000, 0.035828],[1275264000000, 0.035828]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });