$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1212969600000,0.00228],[1213056000000,0.00228],[1213142400000,0.00228],[1213228800000,0.00228],[1213315200000,0.00228],[1213401600000,0.00228],[1213488000000,0.00228],[1213574400000,0.00228],[1213660800000,0.00228],[1213747200000,0.00228],[1213833600000,0.00228],[1213920000000,0.00228],[1214006400000,0.00228],[1214092800000,0.00228],[1214179200000,0.00228],[1214265600000,0.00228],[1214352000000,0.00228],[1214438400000,0.00228],[1214524800000,0.00228],[1214611200000,0.00228],[1214697600000,0.00228],[1214784000000,0.00228]], 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, 0.002280],[1212969600000, 0.002280],[1213056000000, 0.002280],[1213142400000, 0.002280],[1213228800000, 0.002280],[1213315200000, 0.002280],[1213401600000, 0.002280],[1213488000000, 0.002280],[1213574400000, 0.002280],[1213660800000, 0.002280],[1213747200000, 0.002280],[1213833600000, 0.002280],[1213920000000, 0.002280],[1214006400000, 0.002280],[1214092800000, 0.002280],[1214179200000, 0.002280],[1214265600000, 0.002280],[1214352000000, 0.002280],[1214438400000, 0.002280],[1214524800000, 0.002280],[1214611200000, 0.002280],[1214697600000, 0.002280],[1214784000000, 0.002280]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });