$(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: [[1196467200000,0.476417],[1196553600000,0.476417],[1196640000000,0.476417],[1196726400000,0.473351],[1196812800000,0.475771],[1196899200000,0.475094],[1196985600000,0.469736],[1197072000000,0.472802],[1197158400000,0.472802],[1197244800000,0.472802],[1197331200000,0.475029],[1197417600000,0.473544],[1197504000000,0.473641],[1197590400000,0.473899],[1197676800000,0.468284],[1197763200000,0.468284],[1197849600000,0.468284],[1197936000000,0.46454],[1198022400000,0.465282],[1198108800000,0.464281],[1198195200000,0.463119],[1198281600000,0.46412],[1198368000000,0.46412],[1198454400000,0.46412],[1198540800000,0.464701],[1198627200000,0.464701],[1198713600000,0.464701],[1198800000000,0.468509],[1198886400000,0.47419]], 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: [[1196467200000, 0.476417],[1196467200000, 0.476417],[1196553600000, 0.476417],[1196640000000, 0.476417],[1196726400000, 0.473351],[1196812800000, 0.475771],[1196899200000, 0.475094],[1196985600000, 0.469736],[1197072000000, 0.472802],[1197158400000, 0.472802],[1197244800000, 0.472802],[1197331200000, 0.475029],[1197417600000, 0.473544],[1197504000000, 0.473641],[1197590400000, 0.473899],[1197676800000, 0.468284],[1197763200000, 0.468284],[1197849600000, 0.468284],[1197936000000, 0.464540],[1198022400000, 0.465282],[1198108800000, 0.464281],[1198195200000, 0.463119],[1198281600000, 0.464120],[1198368000000, 0.464120],[1198454400000, 0.464120],[1198540800000, 0.464701],[1198627200000, 0.464701],[1198713600000, 0.464701],[1198800000000, 0.468509],[1198886400000, 0.474190]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });