$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1338508800000,2.25734],[1338595200000,2.23192],[1338681600000,2.23192],[1338768000000,2.23192],[1338854400000,2.23192],[1338940800000,2.26718],[1339027200000,2.29405],[1339113600000,2.35751],[1339200000000,2.31961],[1339286400000,2.31961],[1339372800000,2.31961],[1339459200000,2.33413],[1339545600000,2.30673],[1339632000000,2.26718],[1339718400000,2.32477],[1339804800000,2.34212],[1339891200000,2.34212],[1339977600000,2.34212],[1340064000000,2.35591],[1340150400000,2.37144],[1340236800000,2.39513],[1340323200000,2.38063],[1340409600000,2.35458],[1340496000000,2.35458],[1340582400000,2.35458],[1340668800000,2.34583],[1340755200000,2.34714],[1340841600000,2.34577],[1340928000000,2.34577],[1341014400000,2.34577]], 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, 2.257338],[1338508800000, 2.257338],[1338595200000, 2.231923],[1338681600000, 2.231923],[1338768000000, 2.231923],[1338854400000, 2.231923],[1338940800000, 2.267181],[1339027200000, 2.294045],[1339113600000, 2.357507],[1339200000000, 2.319611],[1339286400000, 2.319611],[1339372800000, 2.319611],[1339459200000, 2.334131],[1339545600000, 2.306733],[1339632000000, 2.267181],[1339718400000, 2.324771],[1339804800000, 2.342116],[1339891200000, 2.342116],[1339977600000, 2.342116],[1340064000000, 2.355908],[1340150400000, 2.371440],[1340236800000, 2.395129],[1340323200000, 2.380633],[1340409600000, 2.354579],[1340496000000, 2.354579],[1340582400000, 2.354579],[1340668800000, 2.345829],[1340755200000, 2.347138],[1340841600000, 2.345770],[1340928000000, 2.345770],[1341014400000, 2.345770]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });