$(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: [[1251763200000,1.11574],[1251849600000,1.11767],[1251936000000,1.10041],[1252022400000,1.10982],[1252108800000,1.10871],[1252195200000,1.10871],[1252281600000,1.10871],[1252368000000,1.12372],[1252454400000,1.13619],[1252540800000,1.13484],[1252627200000,1.13526],[1252713600000,1.14282],[1252800000000,1.14282],[1252886400000,1.14282],[1252972800000,1.13462],[1253059200000,1.14166],[1253145600000,1.15813],[1253232000000,1.16471],[1253318400000,1.16426],[1253404800000,1.16426],[1253491200000,1.16426],[1253577600000,1.15755],[1253664000000,1.17239],[1253750400000,1.17451],[1253836800000,1.16952],[1253923200000,1.15681],[1254009600000,1.15681],[1254096000000,1.15681],[1254182400000,1.14714],[1254268800000,1.13884]], 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: [[1251763200000, 1.115744],[1251763200000, 1.115744],[1251849600000, 1.117668],[1251936000000, 1.100408],[1252022400000, 1.109823],[1252108800000, 1.108715],[1252195200000, 1.108715],[1252281600000, 1.108715],[1252368000000, 1.123715],[1252454400000, 1.136193],[1252540800000, 1.134842],[1252627200000, 1.135256],[1252713600000, 1.142821],[1252800000000, 1.142821],[1252886400000, 1.142821],[1252972800000, 1.134622],[1253059200000, 1.141660],[1253145600000, 1.158129],[1253232000000, 1.164708],[1253318400000, 1.164258],[1253404800000, 1.164258],[1253491200000, 1.164258],[1253577600000, 1.157547],[1253664000000, 1.172385],[1253750400000, 1.174508],[1253836800000, 1.169521],[1253923200000, 1.156806],[1254009600000, 1.156806],[1254096000000, 1.156806],[1254182400000, 1.147138],[1254268800000, 1.138840]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });