$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1385856000000,10.8793],[1385942400000,10.8793],[1386028800000,10.8193],[1386115200000,10.8529],[1386201600000,10.8641],[1386288000000,10.8657],[1386374400000,10.9192],[1386460800000,10.9192],[1386547200000,10.9192],[1386633600000,10.968],[1386720000000,10.9904],[1386806400000,11.004],[1386892800000,11.0104],[1386979200000,10.972],[1387065600000,10.972],[1387152000000,10.972],[1387238400000,11.0112],[1387324800000,10.9896],[1387411200000,10.9896],[1387497600000,10.924],[1387584000000,10.9144],[1387670400000,10.9144],[1387756800000,10.9144],[1387843200000,10.952],[1387929600000,10.9376],[1388016000000,10.9376],[1388102400000,10.9376],[1388188800000,11.0415],[1388275200000,11.0415],[1388361600000,11.0415],[1388448000000,11.0415]], 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, 10.879272],[1385856000000, 10.879272],[1385942400000, 10.879272],[1386028800000, 10.819325],[1386115200000, 10.852895],[1386201600000, 10.864086],[1386288000000, 10.865684],[1386374400000, 10.919237],[1386460800000, 10.919237],[1386547200000, 10.919237],[1386633600000, 10.967995],[1386720000000, 10.990375],[1386806400000, 11.003963],[1386892800000, 11.010358],[1386979200000, 10.971991],[1387065600000, 10.971991],[1387152000000, 10.971991],[1387238400000, 11.011157],[1387324800000, 10.989576],[1387411200000, 10.989576],[1387497600000, 10.924033],[1387584000000, 10.914442],[1387670400000, 10.914442],[1387756800000, 10.914442],[1387843200000, 10.952009],[1387929600000, 10.937621],[1388016000000, 10.937621],[1388102400000, 10.937621],[1388188800000, 11.041530],[1388275200000, 11.041530],[1388361600000, 11.041530],[1388448000000, 11.041530]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });