$(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: [[1122854400000,1.49993],[1122940800000,1.5206],[1123027200000,1.52148],[1123113600000,1.52454],[1123200000000,1.52669],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,1.54748],[1123718400000,1.54954],[1123804800000,1.55235],[1123891200000,1.55732],[1123977600000,1.55732],[1124064000000,1.55732],[1124150400000,1.54122],[1124236800000,1.54836],[1124323200000,1.53955],[1124409600000,1.53613],[1124496000000,1.52382],[1124582400000,1.52382],[1124668800000,1.52382],[1124755200000,1.53629],[1124841600000,1.53349],[1124928000000,1.53349],[1125014400000,1.53286],[1125100800000,1.53144],[1125187200000,1.53144],[1125273600000,1.53144],[1125360000000,1.52878],[1125446400000,1.52138]], 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: [[1122854400000, 1.499930],[1122854400000, 1.499930],[1122940800000, 1.520600],[1123027200000, 1.521476],[1123113600000, 1.524538],[1123200000000, 1.526687],[1123632000000, 1.547484],[1123718400000, 1.549541],[1123804800000, 1.552354],[1123891200000, 1.557318],[1123977600000, 1.557318],[1124064000000, 1.557318],[1124150400000, 1.541218],[1124236800000, 1.548362],[1124323200000, 1.539553],[1124409600000, 1.536131],[1124496000000, 1.523818],[1124582400000, 1.523818],[1124668800000, 1.523818],[1124755200000, 1.536290],[1124841600000, 1.533490],[1124928000000, 1.533490],[1125014400000, 1.532862],[1125100800000, 1.531438],[1125187200000, 1.531438],[1125273600000, 1.531438],[1125360000000, 1.528784],[1125446400000, 1.521382]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });