$(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: [[1130803200000,3.92858],[1130889600000,3.92089],[1130976000000,3.92683],[1131062400000,3.94134],[1131148800000,3.90321],[1131235200000,3.90321],[1131321600000,3.90321],[1131408000000,3.87006],[1131494400000,3.84714],[1131580800000,3.84142],[1131667200000,3.85877],[1131753600000,3.84044],[1131840000000,3.84044],[1131926400000,3.84044],[1132012800000,3.8417],[1132099200000,3.82264],[1132185600000,3.81207],[1132272000000,3.81746],[1132358400000,3.81297],[1132444800000,3.81297],[1132531200000,3.81297],[1132617600000,3.85108],[1132704000000,3.81941],[1132790400000,3.83893],[1132876800000,3.83873],[1132963200000,3.83915],[1133049600000,3.83915],[1133136000000,3.83915],[1133222400000,3.82757],[1133308800000,3.84819]], 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: [[1130803200000, 3.928577],[1130803200000, 3.928577],[1130889600000, 3.920885],[1130976000000, 3.926832],[1131062400000, 3.941344],[1131148800000, 3.903209],[1131235200000, 3.903209],[1131321600000, 3.903209],[1131408000000, 3.870063],[1131494400000, 3.847135],[1131580800000, 3.841417],[1131667200000, 3.858773],[1131753600000, 3.840443],[1131840000000, 3.840443],[1131926400000, 3.840443],[1132012800000, 3.841700],[1132099200000, 3.822640],[1132185600000, 3.812066],[1132272000000, 3.817457],[1132358400000, 3.812965],[1132444800000, 3.812965],[1132531200000, 3.812965],[1132617600000, 3.851081],[1132704000000, 3.819407],[1132790400000, 3.838926],[1132876800000, 3.838730],[1132963200000, 3.839149],[1133049600000, 3.839149],[1133136000000, 3.839149],[1133222400000, 3.827568],[1133308800000, 3.848194]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });