$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1493596800000,1.07834],[1493683200000,1.07834],[1493769600000,1.07834],[1493856000000,1.07778],[1493942400000,1.08122],[1494028800000,1.08498],[1494115200000,1.08498],[1494201600000,1.08498],[1494288000000,1.08498],[1494374400000,1.08498],[1494460800000,1.0806],[1494547200000,1.0791],[1494633600000,1.08344],[1494720000000,1.08344],[1494806400000,1.08344],[1494892800000,1.09724],[1494979200000,1.10646],[1495065600000,1.11096],[1495152000000,1.10293],[1495238400000,1.11228],[1495324800000,1.11228],[1495411200000,1.11228],[1495497600000,1.1181],[1495584000000,1.11394],[1495670400000,1.11097],[1495756800000,1.11561],[1495843200000,1.11585],[1495929600000,1.11585],[1496016000000,1.11585],[1496102400000,1.1168],[1496188800000,1.11248]], 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: [[1493596800000, 1.078341],[1493596800000, 1.078341],[1493683200000, 1.078341],[1493769600000, 1.078341],[1493856000000, 1.077776],[1493942400000, 1.081220],[1494028800000, 1.084981],[1494115200000, 1.084981],[1494201600000, 1.084981],[1494288000000, 1.084981],[1494374400000, 1.084981],[1494460800000, 1.080597],[1494547200000, 1.079097],[1494633600000, 1.083439],[1494720000000, 1.083439],[1494806400000, 1.083439],[1494892800000, 1.097239],[1494979200000, 1.106461],[1495065600000, 1.110962],[1495152000000, 1.102931],[1495238400000, 1.112276],[1495324800000, 1.112276],[1495411200000, 1.112276],[1495497600000, 1.118099],[1495584000000, 1.113941],[1495670400000, 1.110973],[1495756800000, 1.115612],[1495843200000, 1.115846],[1495929600000, 1.115846],[1496016000000, 1.115846],[1496102400000, 1.116802],[1496188800000, 1.112478]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });