$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1251763200000,0.25091],[1251849600000,0.25115],[1251936000000,0.24974],[1252022400000,0.25135],[1252108800000,0.25296],[1252195200000,0.25296],[1252281600000,0.25296],[1252368000000,0.25438],[1252454400000,0.25488],[1252540800000,0.2567],[1252627200000,0.25884],[1252713600000,0.26029],[1252800000000,0.26029],[1252886400000,0.26029],[1252972800000,0.25912],[1253059200000,0.25829],[1253145600000,0.26152],[1253232000000,0.26347],[1253318400000,0.26359],[1253404800000,0.26359],[1253491200000,0.26359],[1253577600000,0.26363],[1253664000000,0.26479],[1253750400000,0.26689],[1253836800000,0.26629],[1253923200000,0.26568],[1254009600000,0.26568],[1254096000000,0.26568],[1254182400000,0.26524],[1254268800000,0.26618]], 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: [[1251763200000, 0.250910],[1251763200000, 0.250910],[1251849600000, 0.251150],[1251936000000, 0.249740],[1252022400000, 0.251350],[1252108800000, 0.252960],[1252195200000, 0.252960],[1252281600000, 0.252960],[1252368000000, 0.254380],[1252454400000, 0.254880],[1252540800000, 0.256700],[1252627200000, 0.258840],[1252713600000, 0.260290],[1252800000000, 0.260290],[1252886400000, 0.260290],[1252972800000, 0.259120],[1253059200000, 0.258290],[1253145600000, 0.261520],[1253232000000, 0.263470],[1253318400000, 0.263590],[1253404800000, 0.263590],[1253491200000, 0.263590],[1253577600000, 0.263630],[1253664000000, 0.264790],[1253750400000, 0.266890],[1253836800000, 0.266290],[1253923200000, 0.265680],[1254009600000, 0.265680],[1254096000000, 0.265680],[1254182400000, 0.265240],[1254268800000, 0.266180]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });