$(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: [[1388534400000,3.69789],[1388620800000,3.69789],[1388707200000,3.69789],[1388793600000,3.67704],[1388880000000,3.67704],[1388966400000,3.67704],[1389052800000,3.67704],[1389139200000,3.67704],[1389225600000,3.6732],[1389312000000,3.65778],[1389398400000,3.67081],[1389484800000,3.67081],[1389571200000,3.67081],[1389657600000,3.67092],[1389744000000,3.6439],[1389830400000,3.64233],[1389916800000,3.62378],[1390003200000,3.60218],[1390089600000,3.60218],[1390176000000,3.60218],[1390262400000,3.56934],[1390348800000,3.54947],[1390435200000,3.53963],[1390521600000,3.51032],[1390608000000,3.43076],[1390694400000,3.43076],[1390780800000,3.43076],[1390867200000,3.44924],[1390953600000,3.52151],[1391040000000,3.57263],[1391126400000,3.52171],[1391212800000,3.51419],[1391299200000,3.51419],[1391385600000,3.51419],[1391472000000,3.53354],[1391558400000,3.55323],[1391644800000,3.56987],[1391731200000,3.91154],[1391817600000,3.838],[1391904000000,3.838],[1391990400000,3.838],[1392076800000,3.85602],[1392163200000,3.88813],[1392249600000,3.89851],[1392336000000,3.91247],[1392422400000,3.95285],[1392508800000,3.95285],[1392595200000,3.95285],[1392681600000,3.96674],[1392768000000,3.98489],[1392854400000,4.01145],[1392940800000,3.99886],[1393027200000,4.07061],[1393113600000,4.07061],[1393200000000,4.07061],[1393286400000,4.14536],[1393372800000,4.26941],[1393459200000,4.28885],[1393545600000,4.49127],[1393632000000,4.38481],[1393718400000,4.38481],[1393804800000,4.38481],[1393891200000,4.49946],[1393977600000,4.38668],[1394064000000,4.28084],[1394150400000,4.26483],[1394236800000,4.20968],[1394323200000,4.20968],[1394409600000,4.20968],[1394496000000,4.20968],[1394582400000,4.17286],[1394668800000,4.14307],[1394755200000,4.25759],[1394841600000,4.29433],[1394928000000,4.29433],[1395014400000,4.29433],[1395100800000,4.38633],[1395187200000,4.48312],[1395273600000,4.46413],[1395360000000,4.51844],[1395446400000,4.55278],[1395532800000,4.55278],[1395619200000,4.55278],[1395705600000,4.63595],[1395792000000,4.74228],[1395878400000,4.83426],[1395964800000,4.9668],[1396051200000,5.00114],[1396137600000,5.00114],[1396224000000,5.00114],[1396310400000,5.10699],[1396396800000,5.16385],[1396483200000,5.29529],[1396569600000,5.24038],[1396656000000,5.24038],[1396742400000,5.24038],[1396828800000,5.24038]], 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: [[1389744000000, 3.604384],[1389744000000, 3.604384],[1392422400000, 3.907397],[1394841600000, 4.470145],[1397520000000, 5.218238]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });