$(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: [[1214870400000,4.75677],[1214956800000,4.76473],[1215043200000,4.75062],[1215129600000,4.78593],[1215216000000,4.71552],[1215302400000,4.71552],[1215388800000,4.71552],[1215475200000,4.69084],[1215561600000,4.71711],[1215648000000,4.68951],[1215734400000,4.688],[1215820800000,4.73388],[1215907200000,4.73388],[1215993600000,4.73388],[1216080000000,4.72647],[1216166400000,4.8175],[1216252800000,4.79493],[1216339200000,4.75156],[1216425600000,4.72323],[1216512000000,4.72323],[1216598400000,4.72323],[1216684800000,4.73198],[1216771200000,4.76369],[1216857600000,4.67842],[1216944000000,4.66543],[1217030400000,4.68383],[1217116800000,4.68383],[1217203200000,4.68383],[1217289600000,4.68319],[1217376000000,4.66795],[1217462400000,4.6295]], 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: [[1214870400000, 4.756773],[1214870400000, 4.756773],[1214956800000, 4.764728],[1215043200000, 4.750616],[1215129600000, 4.785927],[1215216000000, 4.715524],[1215302400000, 4.715524],[1215388800000, 4.715524],[1215475200000, 4.690842],[1215561600000, 4.717111],[1215648000000, 4.689511],[1215734400000, 4.688000],[1215820800000, 4.733880],[1215907200000, 4.733880],[1215993600000, 4.733880],[1216080000000, 4.726471],[1216166400000, 4.817504],[1216252800000, 4.794927],[1216339200000, 4.751559],[1216425600000, 4.723233],[1216512000000, 4.723233],[1216598400000, 4.723233],[1216684800000, 4.731980],[1216771200000, 4.763692],[1216857600000, 4.678422],[1216944000000, 4.665432],[1217030400000, 4.683834],[1217116800000, 4.683834],[1217203200000, 4.683834],[1217289600000, 4.683190],[1217376000000, 4.667950],[1217462400000, 4.629498]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });