$(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: [[1393632000000,1.51345],[1393718400000,1.51345],[1393804800000,1.51345],[1393891200000,1.55186],[1393977600000,1.51103],[1394064000000,1.46581],[1394150400000,1.46134],[1394236800000,1.44851],[1394323200000,1.44851],[1394409600000,1.44851],[1394496000000,1.44851],[1394582400000,1.45854],[1394668800000,1.45458],[1394755200000,1.49289],[1394841600000,1.50318],[1394928000000,1.50318],[1395014400000,1.50318],[1395100800000,1.53129],[1395187200000,1.56939],[1395273600000,1.56201],[1395360000000,1.57066],[1395446400000,1.58692],[1395532800000,1.58692],[1395619200000,1.58692],[1395705600000,1.61268],[1395792000000,1.64638],[1395878400000,1.6531],[1395964800000,1.67368],[1396051200000,1.68762],[1396137600000,1.68762],[1396224000000,1.68762]], 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: [[1393632000000, 1.513446],[1393632000000, 1.513446],[1393718400000, 1.513446],[1393804800000, 1.513446],[1393891200000, 1.551859],[1393977600000, 1.511026],[1394064000000, 1.465813],[1394150400000, 1.461344],[1394236800000, 1.448511],[1394323200000, 1.448511],[1394409600000, 1.448511],[1394496000000, 1.448511],[1394582400000, 1.458543],[1394668800000, 1.454579],[1394755200000, 1.492887],[1394841600000, 1.503181],[1394928000000, 1.503181],[1395014400000, 1.503181],[1395100800000, 1.531286],[1395187200000, 1.569392],[1395273600000, 1.562009],[1395360000000, 1.570660],[1395446400000, 1.586923],[1395532800000, 1.586923],[1395619200000, 1.586923],[1395705600000, 1.612676],[1395792000000, 1.646379],[1395878400000, 1.653101],[1395964800000, 1.673678],[1396051200000, 1.687616],[1396137600000, 1.687616],[1396224000000, 1.687616]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });