$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1385856000000,15.4755],[1385942400000,15.4755],[1386028800000,15.3902],[1386115200000,15.4424],[1386201600000,15.4627],[1386288000000,15.4606],[1386374400000,15.5323],[1386460800000,15.5323],[1386547200000,15.5323],[1386633600000,15.5995],[1386720000000,15.6313],[1386806400000,15.6506],[1386892800000,15.662],[1386979200000,15.6074],[1387065600000,15.6074],[1387152000000,15.6074],[1387238400000,15.6653],[1387324800000,15.6324],[1387411200000,15.6368],[1387497600000,15.5436],[1387584000000,15.5432],[1387670400000,15.5432],[1387756800000,15.5432],[1387843200000,15.5967],[1387929600000,15.5762],[1388016000000,15.5762],[1388102400000,15.5762],[1388188800000,15.7332],[1388275200000,15.7332],[1388361600000,15.7332],[1388448000000,15.7332]], 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, 15.475494],[1385856000000, 15.475494],[1385942400000, 15.475494],[1386028800000, 15.390220],[1386115200000, 15.442367],[1386201600000, 15.462689],[1386288000000, 15.460564],[1386374400000, 15.532343],[1386460800000, 15.532343],[1386547200000, 15.532343],[1386633600000, 15.599480],[1386720000000, 15.631311],[1386806400000, 15.650637],[1386892800000, 15.661959],[1386979200000, 15.607384],[1387065600000, 15.607384],[1387152000000, 15.607384],[1387238400000, 15.665325],[1387324800000, 15.632398],[1387411200000, 15.636846],[1387497600000, 15.543587],[1387584000000, 15.543209],[1387670400000, 15.543209],[1387756800000, 15.543209],[1387843200000, 15.596708],[1387929600000, 15.576219],[1388016000000, 15.576219],[1388102400000, 15.576219],[1388188800000, 15.733158],[1388275200000, 15.733158],[1388361600000, 15.733158],[1388448000000, 15.733158]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });