$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1222819200000,9.81247],[1222905600000,9.65376],[1222992000000,9.53973],[1223078400000,9.49333],[1223164800000,9.49333],[1223251200000,9.49333],[1223337600000,9.3574],[1223424000000,9.39999],[1223510400000,9.53429],[1223596800000,9.50276],[1223683200000,9.41915],[1223769600000,9.41915],[1223856000000,9.41915],[1223942400000,9.4621],[1224028800000,9.543],[1224115200000,9.46862],[1224201600000,9.46176],[1224288000000,9.37902],[1224374400000,9.37902],[1224460800000,9.37902],[1224547200000,9.43807],[1224633600000,9.31226],[1224720000000,9.21365],[1224806400000,9.29569],[1224892800000,9.26464],[1224979200000,9.26464],[1225065600000,9.26464],[1225152000000,9.39814],[1225238400000,9.70871],[1225324800000,10.3679],[1225411200000,10.586]], 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: [[1222819200000, 9.812472],[1222819200000, 9.812472],[1222905600000, 9.653756],[1222992000000, 9.539727],[1223078400000, 9.493329],[1223164800000, 9.493329],[1223251200000, 9.493329],[1223337600000, 9.357401],[1223424000000, 9.399988],[1223510400000, 9.534288],[1223596800000, 9.502760],[1223683200000, 9.419151],[1223769600000, 9.419151],[1223856000000, 9.419151],[1223942400000, 9.462104],[1224028800000, 9.542996],[1224115200000, 9.468625],[1224201600000, 9.461762],[1224288000000, 9.379020],[1224374400000, 9.379020],[1224460800000, 9.379020],[1224547200000, 9.438070],[1224633600000, 9.312257],[1224720000000, 9.213653],[1224806400000, 9.295688],[1224892800000, 9.264636],[1224979200000, 9.264636],[1225065600000, 9.264636],[1225152000000, 9.398139],[1225238400000, 9.708709],[1225324800000, 10.367908],[1225411200000, 10.586045]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });