$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1168041600000,1.70598],[1168128000000,1.70598],[1168214400000,1.70598],[1168300800000,1.70598],[1168387200000,1.70318],[1168473600000,1.68014],[1168560000000,1.69049],[1168646400000,1.68103],[1168732800000,1.68103],[1168819200000,1.68103],[1168905600000,1.68899],[1168992000000,1.68468],[1169078400000,1.67451],[1169164800000,1.68173],[1169251200000,1.69924],[1169337600000,1.69924],[1169424000000,1.69924],[1169510400000,1.69821],[1169596800000,1.70601],[1169683200000,1.69005],[1169769600000,1.68156],[1169856000000,1.66017],[1169942400000,1.66017],[1170028800000,1.66017],[1170115200000,1.66075],[1170201600000,1.66329]], 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, 1.705977],[1168041600000, 1.705977],[1168128000000, 1.705977],[1168214400000, 1.705977],[1168300800000, 1.705977],[1168387200000, 1.703176],[1168473600000, 1.680142],[1168560000000, 1.690494],[1168646400000, 1.681030],[1168732800000, 1.681030],[1168819200000, 1.681030],[1168905600000, 1.688989],[1168992000000, 1.684677],[1169078400000, 1.674513],[1169164800000, 1.681728],[1169251200000, 1.699244],[1169337600000, 1.699244],[1169424000000, 1.699244],[1169510400000, 1.698212],[1169596800000, 1.706010],[1169683200000, 1.690048],[1169769600000, 1.681563],[1169856000000, 1.660170],[1169942400000, 1.660170],[1170028800000, 1.660170],[1170115200000, 1.660755],[1170201600000, 1.663288]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });