$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1375315200000,8.61468],[1375401600000,8.58938],[1375488000000,8.52229],[1375574400000,null],[1375660800000,8.52229],[1375747200000,8.57863],[1375833600000,8.62073],[1375920000000,8.63135],[1376006400000,8.67689],[1376092800000,8.68322],[1376179200000,8.68322],[1376265600000,8.68322],[1376352000000,8.61094],[1376438400000,8.59581],[1376524800000,8.52608],[1376611200000,8.55258],[1376697600000,8.63094],[1376784000000,8.63094],[1376870400000,8.63094],[1376956800000,8.63493],[1377043200000,8.68638],[1377129600000,8.69036],[1377216000000,8.62343],[1377302400000,8.63785],[1377388800000,8.63785],[1377475200000,8.63785],[1377561600000,8.63785],[1377648000000,8.67247],[1377734400000,8.68044],[1377820800000,8.61514],[1377907200000,8.59361]], 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: [[1375315200000, 8.614685],[1375315200000, 8.614685],[1375401600000, 8.589376],[1375488000000, 8.522295],[1375660800000, 8.522295],[1375747200000, 8.578627],[1375833600000, 8.620729],[1375920000000, 8.631350],[1376006400000, 8.676890],[1376092800000, 8.683216],[1376179200000, 8.683216],[1376265600000, 8.683216],[1376352000000, 8.610939],[1376438400000, 8.595806],[1376524800000, 8.526081],[1376611200000, 8.552581],[1376697600000, 8.630939],[1376784000000, 8.630939],[1376870400000, 8.630939],[1376956800000, 8.634925],[1377043200000, 8.686380],[1377129600000, 8.690358],[1377216000000, 8.623430],[1377302400000, 8.637847],[1377388800000, 8.637847],[1377475200000, 8.637847],[1377561600000, 8.637847],[1377648000000, 8.672467],[1377734400000, 8.680437],[1377820800000, 8.615140],[1377907200000, 8.593611]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });