$(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: 'Курс EEK, грн'}, 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: 'Курс EEK', data: [[1257033600000,0.756052],[1257120000000,0.756052],[1257206400000,0.754999],[1257292800000,0.75054],[1257379200000,0.756116],[1257465600000,0.761451],[1257552000000,0.759219],[1257638400000,0.759219],[1257724800000,0.759219],[1257811200000,0.765193],[1257897600000,0.764245],[1257984000000,0.768044],[1258070400000,0.762599],[1258156800000,0.759811],[1258243200000,0.759811],[1258329600000,0.759811],[1258416000000,0.764509],[1258502400000,0.759626],[1258588800000,0.763871],[1258675200000,0.758985],[1258761600000,0.756534],[1258848000000,0.756534],[1258934400000,0.756534],[1259020800000,0.764347],[1259107200000,0.764398],[1259193600000,0.769738],[1259280000000,0.76874],[1259366400000,0.760926],[1259452800000,0.760926],[1259539200000,0.760926]], 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, 0.756052],[1257033600000, 0.756052],[1257120000000, 0.756052],[1257206400000, 0.754999],[1257292800000, 0.750540],[1257379200000, 0.756116],[1257465600000, 0.761451],[1257552000000, 0.759219],[1257638400000, 0.759219],[1257724800000, 0.759219],[1257811200000, 0.765193],[1257897600000, 0.764245],[1257984000000, 0.768044],[1258070400000, 0.762599],[1258156800000, 0.759811],[1258243200000, 0.759811],[1258329600000, 0.759811],[1258416000000, 0.764509],[1258502400000, 0.759626],[1258588800000, 0.763871],[1258675200000, 0.758985],[1258761600000, 0.756534],[1258848000000, 0.756534],[1258934400000, 0.756534],[1259020800000, 0.764347],[1259107200000, 0.764398],[1259193600000, 0.769738],[1259280000000, 0.768740],[1259366400000, 0.760926],[1259452800000, 0.760926],[1259539200000, 0.760926]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });