$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1168041600000,9.46757],[1168128000000,9.46757],[1168214400000,9.46757],[1168300800000,9.46757],[1168387200000,9.41982],[1168473600000,9.39676],[1168560000000,9.39521],[1168646400000,9.33204],[1168732800000,9.33204],[1168819200000,9.33204],[1168905600000,9.36813],[1168992000000,9.37816],[1169078400000,9.3463],[1169164800000,9.35571],[1169251200000,9.38043],[1169337600000,9.38043],[1169424000000,9.38043],[1169510400000,9.36451],[1169596800000,9.44115],[1169683200000,9.41716],[1169769600000,9.39626],[1169856000000,9.34721],[1169942400000,9.34721],[1170028800000,9.34721],[1170115200000,9.36842],[1170201600000,9.4054]], 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: [[1168041600000, 9.467574],[1168041600000, 9.467574],[1168128000000, 9.467574],[1168214400000, 9.467574],[1168300800000, 9.467574],[1168387200000, 9.419817],[1168473600000, 9.396762],[1168560000000, 9.395214],[1168646400000, 9.332041],[1168732800000, 9.332041],[1168819200000, 9.332041],[1168905600000, 9.368126],[1168992000000, 9.378158],[1169078400000, 9.346301],[1169164800000, 9.355713],[1169251200000, 9.380433],[1169337600000, 9.380433],[1169424000000, 9.380433],[1169510400000, 9.364507],[1169596800000, 9.441147],[1169683200000, 9.417157],[1169769600000, 9.396258],[1169856000000, 9.347209],[1169942400000, 9.347209],[1170028800000, 9.347209],[1170115200000, 9.368421],[1170201600000, 9.405398]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });