$(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: [[1294272000000,2.69834],[1294358400000,2.70255],[1294444800000,2.70255],[1294531200000,2.70255],[1294617600000,2.70255],[1294704000000,2.6298],[1294790400000,2.65014],[1294876800000,2.68684],[1294963200000,2.71564],[1295049600000,2.73527],[1295136000000,2.73527],[1295222400000,2.73527],[1295308800000,2.73042],[1295395200000,2.74436],[1295481600000,2.77558],[1295568000000,2.73471],[1295654400000,2.77151],[1295740800000,2.77151],[1295827200000,2.77151],[1295913600000,2.77948],[1296000000000,2.78508],[1296086400000,2.80346],[1296172800000,2.78999],[1296259200000,2.77974],[1296345600000,2.77974],[1296432000000,2.77974]], 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: [[1294272000000, 2.698336],[1294272000000, 2.698336],[1294358400000, 2.702546],[1294444800000, 2.702546],[1294531200000, 2.702546],[1294617600000, 2.702546],[1294704000000, 2.629804],[1294790400000, 2.650141],[1294876800000, 2.686837],[1294963200000, 2.715636],[1295049600000, 2.735272],[1295136000000, 2.735272],[1295222400000, 2.735272],[1295308800000, 2.730422],[1295395200000, 2.744359],[1295481600000, 2.775581],[1295568000000, 2.734714],[1295654400000, 2.771512],[1295740800000, 2.771512],[1295827200000, 2.771512],[1295913600000, 2.779482],[1296000000000, 2.785084],[1296086400000, 2.803457],[1296172800000, 2.789993],[1296259200000, 2.779740],[1296345600000, 2.779740],[1296432000000, 2.779740]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });