$(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: [[1188604800000,1.81359],[1188691200000,1.81359],[1188777600000,1.81359],[1188864000000,1.80218],[1188950400000,1.79324],[1189036800000,1.79514],[1189123200000,1.80703],[1189209600000,1.81625],[1189296000000,1.81625],[1189382400000,1.81625],[1189468800000,1.82785],[1189555200000,1.84223],[1189641600000,1.85496],[1189728000000,1.85587],[1189814400000,1.84746],[1189900800000,1.84746],[1189987200000,1.84746],[1190073600000,1.85237],[1190160000000,1.85079],[1190246400000,1.8695],[1190332800000,1.8793],[1190419200000,1.88414],[1190505600000,1.88414],[1190592000000,1.88414],[1190678400000,1.89524],[1190764800000,1.88903],[1190851200000,null],[1190937600000,null],[1191024000000,1.8978],[1191110400000,1.8978]], 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: [[1188604800000, 1.813591],[1188604800000, 1.813591],[1188691200000, 1.813591],[1188777600000, 1.813591],[1188864000000, 1.802183],[1188950400000, 1.793243],[1189036800000, 1.795145],[1189123200000, 1.807027],[1189209600000, 1.816255],[1189296000000, 1.816255],[1189382400000, 1.816255],[1189468800000, 1.827847],[1189555200000, 1.842227],[1189641600000, 1.854958],[1189728000000, 1.855873],[1189814400000, 1.847463],[1189900800000, 1.847463],[1189987200000, 1.847463],[1190073600000, 1.852370],[1190160000000, 1.850790],[1190246400000, 1.869503],[1190332800000, 1.879300],[1190419200000, 1.884144],[1190505600000, 1.884144],[1190592000000, 1.884144],[1190678400000, 1.895244],[1190764800000, 1.889029],[1191024000000, 1.897799],[1191110400000, 1.897799]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });