$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1412121600000,0.071188],[1412208000000,0.071222],[1412294400000,0.071193],[1412380800000,0.071141],[1412467200000,0.071141],[1412553600000,0.071141],[1412640000000,0.071188],[1412726400000,0.071322],[1412812800000,0.071233],[1412899200000,0.071127],[1412985600000,0.071232],[1413072000000,0.071232],[1413158400000,0.071232],[1413244800000,0.071248],[1413331200000,0.07124],[1413417600000,0.071243],[1413504000000,0.07135],[1413590400000,0.071357],[1413676800000,0.071357],[1413763200000,0.071357],[1413849600000,0.071356],[1413936000000,0.071353],[1414022400000,0.071413],[1414108800000,0.071554],[1414195200000,0.0716],[1414281600000,0.0716],[1414368000000,0.0716],[1414454400000,0.071601],[1414540800000,0.071604],[1414627200000,0.071612],[1414713600000,0.071614]], 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: [[1412121600000, 0.071188],[1412121600000, 0.071188],[1412208000000, 0.071222],[1412294400000, 0.071193],[1412380800000, 0.071141],[1412467200000, 0.071141],[1412553600000, 0.071141],[1412640000000, 0.071188],[1412726400000, 0.071322],[1412812800000, 0.071233],[1412899200000, 0.071127],[1412985600000, 0.071232],[1413072000000, 0.071232],[1413158400000, 0.071232],[1413244800000, 0.071248],[1413331200000, 0.071240],[1413417600000, 0.071243],[1413504000000, 0.071350],[1413590400000, 0.071357],[1413676800000, 0.071357],[1413763200000, 0.071357],[1413849600000, 0.071356],[1413936000000, 0.071353],[1414022400000, 0.071413],[1414108800000, 0.071554],[1414195200000, 0.071600],[1414281600000, 0.071600],[1414368000000, 0.071600],[1414454400000, 0.071601],[1414540800000, 0.071604],[1414627200000, 0.071612],[1414713600000, 0.071614]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });