$(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: [[1338508800000,8.25404],[1338595200000,8.2015],[1338681600000,8.2015],[1338768000000,8.2015],[1338854400000,8.2015],[1338940800000,8.27134],[1339027200000,8.30999],[1339113600000,8.38111],[1339200000000,8.29591],[1339286400000,8.29591],[1339372800000,8.29591],[1339459200000,8.34787],[1339545600000,8.31188],[1339632000000,8.27134],[1339718400000,8.35392],[1339804800000,8.38247],[1339891200000,8.38247],[1339977600000,8.38247],[1340064000000,8.39712],[1340150400000,8.39848],[1340236800000,8.45505],[1340323200000,8.43172],[1340409600000,8.34524],[1340496000000,8.34524],[1340582400000,8.34524],[1340668800000,8.31199],[1340755200000,8.30195],[1340841600000,8.30326],[1340928000000,8.30326],[1341014400000,8.30326]], 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: [[1338508800000, 8.254036],[1338508800000, 8.254036],[1338595200000, 8.201498],[1338681600000, 8.201498],[1338768000000, 8.201498],[1338854400000, 8.201498],[1338940800000, 8.271339],[1339027200000, 8.309990],[1339113600000, 8.381112],[1339200000000, 8.295912],[1339286400000, 8.295912],[1339372800000, 8.295912],[1339459200000, 8.347870],[1339545600000, 8.311881],[1339632000000, 8.271339],[1339718400000, 8.353920],[1339804800000, 8.382475],[1339891200000, 8.382475],[1339977600000, 8.382475],[1340064000000, 8.397116],[1340150400000, 8.398481],[1340236800000, 8.455052],[1340323200000, 8.431721],[1340409600000, 8.345238],[1340496000000, 8.345238],[1340582400000, 8.345238],[1340668800000, 8.311987],[1340755200000, 8.301951],[1340841600000, 8.303257],[1340928000000, 8.303257],[1341014400000, 8.303257]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });