$(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: [[1404864000000,13.097],[1404950400000,13.0335],[1405036800000,null],[1405123200000,13.1008],[1405209600000,13.1008],[1405296000000,13.1008],[1405382400000,13.0948],[1405468800000,13.1422],[1405555200000,13.1377],[1405641600000,13.0463],[1405728000000,12.9706],[1405814400000,null],[1405900800000,null],[1405987200000,12.9811],[1406073600000,12.9904],[1406160000000,12.9189],[1406246400000,12.9473],[1406332800000,13.0294],[1406419200000,13.0294],[1406505600000,13.0294],[1406592000000,13.1153],[1406678400000,13.2536],[1406764800000,13.2645]], 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: [[1404864000000, 13.096954],[1404864000000, 13.096954],[1404950400000, 13.033511],[1405123200000, 13.100770],[1405209600000, 13.100770],[1405296000000, 13.100770],[1405382400000, 13.094828],[1405468800000, 13.142241],[1405555200000, 13.137713],[1405641600000, 13.046323],[1405728000000, 12.970623],[1405987200000, 12.981051],[1406073600000, 12.990403],[1406160000000, 12.918922],[1406246400000, 12.947309],[1406332800000, 13.029434],[1406419200000, 13.029434],[1406505600000, 13.029434],[1406592000000, 13.115262],[1406678400000, 13.253555],[1406764800000, 13.264550]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });