$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1338508800000,14.2083],[1338595200000,14.1094],[1338681600000,14.1094],[1338768000000,14.1094],[1338854400000,14.1094],[1338940800000,14.2564],[1339027200000,14.3186],[1339113600000,14.4427],[1339200000000,14.2909],[1339286400000,14.2909],[1339372800000,14.2909],[1339459200000,14.3842],[1339545600000,14.3266],[1339632000000,14.2564],[1339718400000,14.3964],[1339804800000,14.4459],[1339891200000,14.4459],[1339977600000,14.4459],[1340064000000,14.4753],[1340150400000,14.4723],[1340236800000,14.5719],[1340323200000,14.5287],[1340409600000,14.3805],[1340496000000,14.3805],[1340582400000,14.3805],[1340668800000,14.3323],[1340755200000,14.3154],[1340841600000,14.3188],[1340928000000,14.3188],[1341014400000,14.3188]], 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, 14.208252],[1338508800000, 14.208252],[1338595200000, 14.109396],[1338681600000, 14.109396],[1338768000000, 14.109396],[1338854400000, 14.109396],[1338940800000, 14.256427],[1339027200000, 14.318606],[1339113600000, 14.442688],[1339200000000, 14.290906],[1339286400000, 14.290906],[1339372800000, 14.290906],[1339459200000, 14.384207],[1339545600000, 14.326634],[1339632000000, 14.256427],[1339718400000, 14.396364],[1339804800000, 14.445908],[1339891200000, 14.445908],[1339977600000, 14.445908],[1340064000000, 14.475293],[1340150400000, 14.472285],[1340236800000, 14.571860],[1340323200000, 14.528691],[1340409600000, 14.380536],[1340496000000, 14.380536],[1340582400000, 14.380536],[1340668800000, 14.332329],[1340755200000, 14.315354],[1340841600000, 14.318796],[1340928000000, 14.318796],[1341014400000, 14.318796]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });