$(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: [[1212969600000,4.6532],[1213056000000,4.66289],[1213142400000,4.61123],[1213228800000,4.59803],[1213315200000,4.53706],[1213401600000,4.54102],[1213488000000,4.54102],[1213574400000,4.54102],[1213660800000,4.54102],[1213747200000,4.56107],[1213833600000,4.56799],[1213920000000,4.59628],[1214006400000,4.62964],[1214092800000,4.62964],[1214179200000,4.62964],[1214265600000,4.61651],[1214352000000,4.62453],[1214438400000,4.63886],[1214524800000,4.65422],[1214611200000,4.66096],[1214697600000,4.66096],[1214784000000,4.66096]], 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: [[1212969600000, 4.653201],[1212969600000, 4.653201],[1213056000000, 4.662886],[1213142400000, 4.611227],[1213228800000, 4.598034],[1213315200000, 4.537056],[1213401600000, 4.541024],[1213488000000, 4.541024],[1213574400000, 4.541024],[1213660800000, 4.541024],[1213747200000, 4.561073],[1213833600000, 4.567993],[1213920000000, 4.596277],[1214006400000, 4.629637],[1214092800000, 4.629637],[1214179200000, 4.629637],[1214265600000, 4.616510],[1214352000000, 4.624533],[1214438400000, 4.638856],[1214524800000, 4.654222],[1214611200000, 4.660958],[1214697600000, 4.660958],[1214784000000, 4.660958]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });