$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1141171200000,3.84785],[1141257600000,3.84312],[1141344000000,3.87145],[1141430400000,3.87618],[1141516800000,3.87618],[1141603200000,3.87618],[1141689600000,3.85356],[1141776000000,3.80764],[1141862400000,3.80764],[1141948800000,3.75873],[1142035200000,3.74206],[1142121600000,3.74206],[1142208000000,3.74206],[1142294400000,3.74999],[1142380800000,3.74534],[1142467200000,3.78979],[1142553600000,3.77624],[1142640000000,3.81466],[1142726400000,3.81466],[1142812800000,3.81466],[1142899200000,3.79264],[1142985600000,3.77166],[1143072000000,3.74952],[1143158400000,3.77958],[1143244800000,3.74286],[1143331200000,3.74286],[1143417600000,3.74286],[1143504000000,3.75781],[1143590400000,3.72099],[1143676800000,3.70673],[1143763200000,3.75099]], 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: [[1141171200000, 3.847850],[1141171200000, 3.847850],[1141257600000, 3.843118],[1141344000000, 3.871450],[1141430400000, 3.876181],[1141516800000, 3.876181],[1141603200000, 3.876181],[1141689600000, 3.853559],[1141776000000, 3.807636],[1141862400000, 3.807636],[1141948800000, 3.758726],[1142035200000, 3.742055],[1142121600000, 3.742055],[1142208000000, 3.742055],[1142294400000, 3.749991],[1142380800000, 3.745338],[1142467200000, 3.789785],[1142553600000, 3.776236],[1142640000000, 3.814658],[1142726400000, 3.814658],[1142812800000, 3.814658],[1142899200000, 3.792640],[1142985600000, 3.771661],[1143072000000, 3.749520],[1143158400000, 3.779583],[1143244800000, 3.742860],[1143331200000, 3.742860],[1143417600000, 3.742860],[1143504000000, 3.757812],[1143590400000, 3.720988],[1143676800000, 3.706728],[1143763200000, 3.750986]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });