$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1296518400000,9.96924],[1296604800000,9.973],[1296691200000,9.97576],[1296777600000,9.97827],[1296864000000,9.98078],[1296950400000,9.98078],[1297036800000,9.98078],[1297123200000,9.9799],[1297209600000,9.9799],[1297296000000,9.98115],[1297382400000,9.98504],[1297468800000,9.9868],[1297555200000,9.9868],[1297641600000,9.9868],[1297728000000,9.9868],[1297814400000,9.9868],[1297900800000,9.98454],[1297987200000,9.98956],[1298073600000,9.99082],[1298160000000,9.99082],[1298246400000,9.99082],[1298332800000,9.99006],[1298419200000,9.98968],[1298505600000,9.98703],[1298592000000,9.98577],[1298678400000,9.98703],[1298764800000,9.98703],[1298851200000,9.98703]], 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: [[1296518400000, 9.969244],[1296518400000, 9.969244],[1296604800000, 9.973000],[1296691200000, 9.975757],[1296777600000, 9.978269],[1296864000000, 9.980781],[1296950400000, 9.980781],[1297036800000, 9.980781],[1297123200000, 9.979902],[1297209600000, 9.979902],[1297296000000, 9.981151],[1297382400000, 9.985043],[1297468800000, 9.986799],[1297555200000, 9.986799],[1297641600000, 9.986799],[1297728000000, 9.986799],[1297814400000, 9.986799],[1297900800000, 9.984536],[1297987200000, 9.989560],[1298073600000, 9.990816],[1298160000000, 9.990816],[1298246400000, 9.990816],[1298332800000, 9.990060],[1298419200000, 9.989680],[1298505600000, 9.987033],[1298592000000, 9.985774],[1298678400000, 9.987029],[1298764800000, 9.987029],[1298851200000, 9.987029]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });