$(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: [[1185926400000,3.9559],[1186012800000,3.88547],[1186099200000,3.94846],[1186185600000,3.96302],[1186272000000,3.96302],[1186358400000,3.96302],[1186444800000,3.93909],[1186531200000,3.9674],[1186617600000,4.0152],[1186704000000,3.9566],[1186790400000,3.87044],[1186876800000,3.87044],[1186963200000,3.87044],[1187049600000,3.91802],[1187136000000,3.8663],[1187222400000,3.763],[1187308800000,3.60945],[1187395200000,3.64578],[1187481600000,3.64578],[1187568000000,3.64578],[1187654400000,3.7423],[1187740800000,3.71341],[1187827200000,3.76005],[1187913600000,3.8161],[1188000000000,3.8161],[1188086400000,3.8161],[1188172800000,3.8161],[1188259200000,3.83844],[1188345600000,3.80644],[1188432000000,3.80102],[1188518400000,3.83049]], 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: [[1185926400000, 3.955901],[1185926400000, 3.955901],[1186012800000, 3.885469],[1186099200000, 3.948455],[1186185600000, 3.963020],[1186272000000, 3.963020],[1186358400000, 3.963020],[1186444800000, 3.939086],[1186531200000, 3.967405],[1186617600000, 4.015200],[1186704000000, 3.956597],[1186790400000, 3.870438],[1186876800000, 3.870438],[1186963200000, 3.870438],[1187049600000, 3.918019],[1187136000000, 3.866300],[1187222400000, 3.762997],[1187308800000, 3.609451],[1187395200000, 3.645777],[1187481600000, 3.645777],[1187568000000, 3.645777],[1187654400000, 3.742304],[1187740800000, 3.713413],[1187827200000, 3.760051],[1187913600000, 3.816105],[1188000000000, 3.816105],[1188086400000, 3.816105],[1188172800000, 3.816105],[1188259200000, 3.838438],[1188345600000, 3.806443],[1188432000000, 3.801024],[1188518400000, 3.830491]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });