$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1294272000000,8.33497],[1294358400000,8.21892],[1294444800000,8.21892],[1294531200000,8.21892],[1294617600000,8.21892],[1294704000000,8.24191],[1294790400000,8.21844],[1294876800000,8.17951],[1294963200000,8.18651],[1295049600000,8.21747],[1295136000000,8.21747],[1295222400000,8.21747],[1295308800000,8.22695],[1295395200000,8.29113],[1295481600000,8.27664],[1295568000000,8.31312],[1295654400000,8.25256],[1295740800000,8.25256],[1295827200000,8.25256],[1295913600000,8.29629],[1296000000000,8.38598],[1296086400000,8.40256],[1296172800000,8.40555],[1296259200000,8.41117],[1296345600000,8.41117],[1296432000000,8.41117]], 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: [[1294272000000, 8.334966],[1294272000000, 8.334966],[1294358400000, 8.218922],[1294444800000, 8.218922],[1294531200000, 8.218922],[1294617600000, 8.218922],[1294704000000, 8.241909],[1294790400000, 8.218438],[1294876800000, 8.179506],[1294963200000, 8.186509],[1295049600000, 8.217465],[1295136000000, 8.217465],[1295222400000, 8.217465],[1295308800000, 8.226952],[1295395200000, 8.291126],[1295481600000, 8.276644],[1295568000000, 8.313123],[1295654400000, 8.252558],[1295740800000, 8.252558],[1295827200000, 8.252558],[1295913600000, 8.296291],[1296000000000, 8.385978],[1296086400000, 8.402561],[1296172800000, 8.405555],[1296259200000, 8.411173],[1296345600000, 8.411173],[1296432000000, 8.411173]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });