$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1385856000000,12.2709],[1385942400000,12.2709],[1386028800000,12.2456],[1386115200000,12.2644],[1386201600000,12.2653],[1386288000000,12.2668],[1386374400000,12.2956],[1386460800000,12.2956],[1386547200000,12.2956],[1386633600000,12.3049],[1386720000000,12.3189],[1386806400000,12.3267],[1386892800000,12.3341],[1386979200000,12.2922],[1387065600000,12.2922],[1387152000000,12.2922],[1387238400000,12.3234],[1387324800000,12.3079],[1387411200000,12.3142],[1387497600000,12.2849],[1387584000000,12.2668],[1387670400000,12.2668],[1387756800000,12.2668],[1387843200000,12.2833],[1387929600000,12.2795],[1388016000000,12.2795],[1388102400000,12.2795],[1388188800000,12.3508],[1388275200000,12.3508],[1388361600000,12.3508],[1388448000000,12.3508]], 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: [[1385856000000, 12.270909],[1385856000000, 12.270909],[1385942400000, 12.270909],[1386028800000, 12.245605],[1386115200000, 12.264356],[1386201600000, 12.265297],[1386288000000, 12.266803],[1386374400000, 12.295561],[1386460800000, 12.295561],[1386547200000, 12.295561],[1386633600000, 12.304855],[1386720000000, 12.318851],[1386806400000, 12.326716],[1386892800000, 12.334096],[1386979200000, 12.292233],[1387065600000, 12.292233],[1387152000000, 12.292233],[1387238400000, 12.323409],[1387324800000, 12.307887],[1387411200000, 12.314201],[1387497600000, 12.284903],[1387584000000, 12.266841],[1387670400000, 12.266841],[1387756800000, 12.266841],[1387843200000, 12.283336],[1387929600000, 12.279505],[1388016000000, 12.279505],[1388102400000, 12.279505],[1388188800000, 12.350849],[1388275200000, 12.350849],[1388361600000, 12.350849],[1388448000000, 12.350849]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });