$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1385856000000,7.5582],[1385942400000,7.5582],[1386028800000,7.52021],[1386115200000,7.50287],[1386201600000,7.50075],[1386288000000,7.5003],[1386374400000,7.50566],[1386460800000,7.50566],[1386547200000,7.50566],[1386633600000,7.49538],[1386720000000,7.52559],[1386806400000,7.54678],[1386892800000,7.55635],[1386979200000,7.5017],[1387065600000,7.5017],[1387152000000,7.5017],[1387238400000,7.55275],[1387324800000,7.54934],[1387411200000,7.5163],[1387497600000,7.45668],[1387584000000,7.47565],[1387670400000,7.47565],[1387756800000,7.47565],[1387843200000,7.54063],[1387929600000,7.53332],[1388016000000,7.53332],[1388102400000,7.53332],[1388188800000,7.49544],[1388275200000,7.49544],[1388361600000,7.49544],[1388448000000,7.49544]], 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: [[1385856000000, 7.558199],[1385856000000, 7.558199],[1385942400000, 7.558199],[1386028800000, 7.520209],[1386115200000, 7.502866],[1386201600000, 7.500750],[1386288000000, 7.500300],[1386374400000, 7.505662],[1386460800000, 7.505662],[1386547200000, 7.505662],[1386633600000, 7.495383],[1386720000000, 7.525592],[1386806400000, 7.546782],[1386892800000, 7.556350],[1386979200000, 7.501703],[1387065600000, 7.501703],[1387152000000, 7.501703],[1387238400000, 7.552752],[1387324800000, 7.549341],[1387411200000, 7.516296],[1387497600000, 7.456678],[1387584000000, 7.475645],[1387670400000, 7.475645],[1387756800000, 7.475645],[1387843200000, 7.540628],[1387929600000, 7.533316],[1388016000000, 7.533316],[1388102400000, 7.533316],[1388188800000, 7.495438],[1388275200000, 7.495438],[1388361600000, 7.495438],[1388448000000, 7.495438]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });