$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1212969600000,5.92091],[1213056000000,5.93586],[1213142400000,5.93238],[1213228800000,5.92938],[1213315200000,5.93145],[1213401600000,5.92783],[1213488000000,5.92783],[1213574400000,5.92783],[1213660800000,5.92783],[1213747200000,5.93726],[1213833600000,5.93543],[1213920000000,5.94232],[1214006400000,5.93598],[1214092800000,5.93598],[1214179200000,5.93598],[1214265600000,5.94909],[1214352000000,5.94399],[1214438400000,5.95055],[1214524800000,5.94957],[1214611200000,5.96567],[1214697600000,5.96567],[1214784000000,5.96567]], 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, 5.920908],[1212969600000, 5.920908],[1213056000000, 5.935855],[1213142400000, 5.932380],[1213228800000, 5.929383],[1213315200000, 5.931452],[1213401600000, 5.927830],[1213488000000, 5.927830],[1213574400000, 5.927830],[1213660800000, 5.927830],[1213747200000, 5.937255],[1213833600000, 5.935429],[1213920000000, 5.942322],[1214006400000, 5.935985],[1214092800000, 5.935985],[1214179200000, 5.935985],[1214265600000, 5.949092],[1214352000000, 5.943988],[1214438400000, 5.950552],[1214524800000, 5.949571],[1214611200000, 5.965674],[1214697600000, 5.965674],[1214784000000, 5.965674]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });