$(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: [[1267401600000,0.040172],[1267488000000,0.0401057],[1267574400000,0.0405323],[1267660800000,0.0409404],[1267747200000,0.0409486],[1267833600000,0.0406462],[1267920000000,0.0406462],[1268006400000,0.0406462],[1268092800000,0.0406462],[1268179200000,0.0405086],[1268265600000,0.0407091],[1268352000000,0.0408318],[1268438400000,0.0412614],[1268524800000,0.0412614],[1268611200000,0.0412614],[1268697600000,0.0413154],[1268784000000,0.0414339],[1268870400000,0.0418387],[1268956800000,0.0415975],[1269043200000,0.0410525],[1269129600000,0.0410525],[1269216000000,0.0410525],[1269302400000,0.0403896],[1269388800000,0.0406173],[1269475200000,0.0400852],[1269561600000,0.0401647],[1269648000000,0.0399537],[1269734400000,0.0399537],[1269820800000,0.0399537],[1269907200000,0.0401345],[1269993600000,0.0401823]], 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: [[1267401600000, 0.040172],[1267401600000, 0.040172],[1267488000000, 0.040106],[1267574400000, 0.040532],[1267660800000, 0.040940],[1267747200000, 0.040949],[1267833600000, 0.040646],[1267920000000, 0.040646],[1268006400000, 0.040646],[1268092800000, 0.040646],[1268179200000, 0.040509],[1268265600000, 0.040709],[1268352000000, 0.040832],[1268438400000, 0.041261],[1268524800000, 0.041261],[1268611200000, 0.041261],[1268697600000, 0.041315],[1268784000000, 0.041434],[1268870400000, 0.041839],[1268956800000, 0.041598],[1269043200000, 0.041052],[1269129600000, 0.041052],[1269216000000, 0.041052],[1269302400000, 0.040390],[1269388800000, 0.040617],[1269475200000, 0.040085],[1269561600000, 0.040165],[1269648000000, 0.039954],[1269734400000, 0.039954],[1269820800000, 0.039954],[1269907200000, 0.040134],[1269993600000, 0.040182]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });