$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1277942400000,1.01834],[1278028800000,1.01542],[1278115200000,1.03916],[1278201600000,1.03916],[1278288000000,1.03916],[1278374400000,1.0325],[1278460800000,1.03356],[1278547200000,1.03338],[1278633600000,1.04832],[1278720000000,1.05396],[1278806400000,1.05396],[1278892800000,1.05396],[1278979200000,1.05075],[1279065600000,1.05625],[1279152000000,1.06648],[1279238400000,1.07635],[1279324800000,1.08319],[1279411200000,1.08319],[1279497600000,1.08319],[1279584000000,1.07386],[1279670400000,1.06773],[1279756800000,1.07003],[1279843200000,1.07388],[1279929600000,1.07864],[1280016000000,1.07864],[1280102400000,1.07864],[1280188800000,1.07622],[1280275200000,1.08741],[1280361600000,1.08179],[1280448000000,1.08924],[1280534400000,1.09003]], 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: [[1277942400000, 1.018339],[1277942400000, 1.018339],[1278028800000, 1.015419],[1278115200000, 1.039164],[1278201600000, 1.039164],[1278288000000, 1.039164],[1278374400000, 1.032504],[1278460800000, 1.033556],[1278547200000, 1.033380],[1278633600000, 1.048321],[1278720000000, 1.053957],[1278806400000, 1.053957],[1278892800000, 1.053957],[1278979200000, 1.050751],[1279065600000, 1.056254],[1279152000000, 1.066484],[1279238400000, 1.076352],[1279324800000, 1.083192],[1279411200000, 1.083192],[1279497600000, 1.083192],[1279584000000, 1.073855],[1279670400000, 1.067731],[1279756800000, 1.070032],[1279843200000, 1.073882],[1279929600000, 1.078643],[1280016000000, 1.078643],[1280102400000, 1.078643],[1280188800000, 1.076225],[1280275200000, 1.087408],[1280361600000, 1.081792],[1280448000000, 1.089237],[1280534400000, 1.090033]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });