$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1133395200000,1.72473],[1133481600000,1.72279],[1133568000000,1.71361],[1133654400000,1.71361],[1133740800000,1.71361],[1133827200000,1.71047],[1133913600000,1.72355],[1134000000000,1.71903],[1134086400000,1.71757],[1134172800000,1.72443],[1134259200000,1.72443],[1134345600000,1.72443],[1134432000000,1.73046],[1134518400000,1.74874],[1134604800000,1.75707],[1134691200000,1.75701],[1134777600000,1.75268],[1134864000000,1.75268],[1134950400000,1.75268],[1135036800000,1.75744],[1135123200000,1.75244],[1135209600000,1.73946],[1135296000000,1.73058],[1135382400000,1.73058],[1135468800000,1.73058],[1135555200000,1.73058],[1135641600000,1.73058],[1135728000000,1.73713],[1135814400000,1.74385],[1135900800000,1.73528]], 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: [[1133395200000, 1.724727],[1133395200000, 1.724727],[1133481600000, 1.722785],[1133568000000, 1.713607],[1133654400000, 1.713607],[1133740800000, 1.713607],[1133827200000, 1.710473],[1133913600000, 1.723549],[1134000000000, 1.719032],[1134086400000, 1.717570],[1134172800000, 1.724432],[1134259200000, 1.724432],[1134345600000, 1.724432],[1134432000000, 1.730460],[1134518400000, 1.748736],[1134604800000, 1.757072],[1134691200000, 1.757011],[1134777600000, 1.752681],[1134864000000, 1.752681],[1134950400000, 1.752681],[1135036800000, 1.757439],[1135123200000, 1.752438],[1135209600000, 1.739460],[1135296000000, 1.730578],[1135382400000, 1.730578],[1135468800000, 1.730578],[1135555200000, 1.730578],[1135641600000, 1.730578],[1135728000000, 1.737126],[1135814400000, 1.743845],[1135900800000, 1.735276]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });