$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1225497600000,0.558781],[1225584000000,0.558781],[1225670400000,0.558781],[1225756800000,0.558838],[1225843200000,0.56217],[1225929600000,0.562024],[1226016000000,0.559502],[1226102400000,0.559734],[1226188800000,0.559734],[1226275200000,0.559734],[1226361600000,0.557711],[1226448000000,0.557171],[1226534400000,0.557447],[1226620800000,0.557571],[1226707200000,0.55784],[1226793600000,0.55784],[1226880000000,0.55784],[1226966400000,0.558911],[1227052800000,0.567919],[1227139200000,0.578466],[1227225600000,0.579085],[1227312000000,0.59585],[1227398400000,0.59585],[1227484800000,0.59585],[1227571200000,0.607676],[1227657600000,0.637851],[1227744000000,0.65015],[1227830400000,0.649806],[1227916800000,0.662623],[1228003200000,0.662623]], 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: [[1225497600000, 0.558781],[1225497600000, 0.558781],[1225584000000, 0.558781],[1225670400000, 0.558781],[1225756800000, 0.558838],[1225843200000, 0.562170],[1225929600000, 0.562024],[1226016000000, 0.559502],[1226102400000, 0.559734],[1226188800000, 0.559734],[1226275200000, 0.559734],[1226361600000, 0.557711],[1226448000000, 0.557171],[1226534400000, 0.557447],[1226620800000, 0.557571],[1226707200000, 0.557840],[1226793600000, 0.557840],[1226880000000, 0.557840],[1226966400000, 0.558911],[1227052800000, 0.567919],[1227139200000, 0.578466],[1227225600000, 0.579085],[1227312000000, 0.595850],[1227398400000, 0.595850],[1227484800000, 0.595850],[1227571200000, 0.607676],[1227657600000, 0.637851],[1227744000000, 0.650150],[1227830400000, 0.649806],[1227916800000, 0.662623],[1228003200000, 0.662623]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });