$(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: [[1257033600000,1.13916],[1257120000000,1.13916],[1257206400000,1.13658],[1257292800000,1.12232],[1257379200000,1.13338],[1257465600000,1.14118],[1257552000000,1.14366],[1257638400000,1.14366],[1257724800000,1.14366],[1257811200000,1.16234],[1257897600000,1.16265],[1257984000000,1.17548],[1258070400000,1.16433],[1258156800000,1.16126],[1258243200000,1.16126],[1258329600000,1.16126],[1258416000000,1.1734],[1258502400000,1.16274],[1258588800000,1.17039],[1258675200000,1.15459],[1258761600000,1.14321],[1258848000000,1.14321],[1258934400000,1.14321],[1259020800000,1.16128],[1259107200000,1.15955],[1259193600000,1.16286],[1259280000000,1.15049],[1259366400000,1.14125],[1259452800000,1.14125],[1259539200000,1.14125]], 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: [[1257033600000, 1.139163],[1257033600000, 1.139163],[1257120000000, 1.139163],[1257206400000, 1.136581],[1257292800000, 1.122321],[1257379200000, 1.133377],[1257465600000, 1.141177],[1257552000000, 1.143660],[1257638400000, 1.143660],[1257724800000, 1.143660],[1257811200000, 1.162338],[1257897600000, 1.162648],[1257984000000, 1.175479],[1258070400000, 1.164332],[1258156800000, 1.161265],[1258243200000, 1.161265],[1258329600000, 1.161265],[1258416000000, 1.173398],[1258502400000, 1.162744],[1258588800000, 1.170387],[1258675200000, 1.154590],[1258761600000, 1.143214],[1258848000000, 1.143214],[1258934400000, 1.143214],[1259020800000, 1.161279],[1259107200000, 1.159555],[1259193600000, 1.162863],[1259280000000, 1.150492],[1259366400000, 1.141254],[1259452800000, 1.141254],[1259539200000, 1.141254]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });