$(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: [[1277942400000,2.33918],[1278028800000,2.33417],[1278115200000,2.38924],[1278201600000,2.38924],[1278288000000,2.38924],[1278374400000,2.40175],[1278460800000,2.4258],[1278547200000,2.41072],[1278633600000,2.45372],[1278720000000,2.45412],[1278806400000,2.45412],[1278892800000,2.45412],[1278979200000,2.43706],[1279065600000,2.43749],[1279152000000,2.46853],[1279238400000,2.49585],[1279324800000,2.51008],[1279411200000,2.51008],[1279497600000,2.51008],[1279584000000,2.47872],[1279670400000,2.45301],[1279756800000,2.46962],[1279843200000,2.47661],[1279929600000,2.50208],[1280016000000,2.50208],[1280102400000,2.50208],[1280188800000,2.52999],[1280275200000,2.56924],[1280361600000,2.55923],[1280448000000,2.57633],[1280534400000,2.5652]], 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: [[1277942400000, 2.339183],[1277942400000, 2.339183],[1278028800000, 2.334174],[1278115200000, 2.389239],[1278201600000, 2.389239],[1278288000000, 2.389239],[1278374400000, 2.401745],[1278460800000, 2.425803],[1278547200000, 2.410718],[1278633600000, 2.453725],[1278720000000, 2.454122],[1278806400000, 2.454122],[1278892800000, 2.454122],[1278979200000, 2.437062],[1279065600000, 2.437488],[1279152000000, 2.468528],[1279238400000, 2.495850],[1279324800000, 2.510080],[1279411200000, 2.510080],[1279497600000, 2.510080],[1279584000000, 2.478718],[1279670400000, 2.453013],[1279756800000, 2.469616],[1279843200000, 2.476606],[1279929600000, 2.502081],[1280016000000, 2.502081],[1280102400000, 2.502081],[1280188800000, 2.529994],[1280275200000, 2.569237],[1280361600000, 2.559233],[1280448000000, 2.576329],[1280534400000, 2.565201]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });