$(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: [[1318032000000,2.44745],[1318118400000,2.44745],[1318204800000,2.44745],[1318291200000,2.5095],[1318377600000,2.50634],[1318464000000,2.5562],[1318550400000,2.53619],[1318636800000,2.555],[1318723200000,2.555],[1318809600000,2.555],[1318896000000,2.55954],[1318982400000,2.49693],[1319068800000,2.54407],[1319155200000,2.53063],[1319241600000,2.50481],[1319328000000,2.50481],[1319414400000,2.50481],[1319500800000,2.52661],[1319587200000,2.53367],[1319673600000,2.54093],[1319760000000,2.57902]], 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: [[1318032000000, 2.447449],[1318032000000, 2.447449],[1318118400000, 2.447449],[1318204800000, 2.447449],[1318291200000, 2.509504],[1318377600000, 2.506343],[1318464000000, 2.556204],[1318550400000, 2.536194],[1318636800000, 2.555000],[1318723200000, 2.555000],[1318809600000, 2.555000],[1318896000000, 2.559537],[1318982400000, 2.496925],[1319068800000, 2.544070],[1319155200000, 2.530633],[1319241600000, 2.504807],[1319328000000, 2.504807],[1319414400000, 2.504807],[1319500800000, 2.526608],[1319587200000, 2.533670],[1319673600000, 2.540934],[1319760000000, 2.579022]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });