$(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: [[1225497600000,10.4084],[1225584000000,10.4084],[1225670400000,10.4084],[1225756800000,10.4713],[1225843200000,10.5317],[1225929600000,10.5705],[1226016000000,10.4578],[1226102400000,10.4307],[1226188800000,10.4307],[1226275200000,10.4307],[1226361600000,10.504],[1226448000000,10.3813],[1226534400000,10.2134],[1226620800000,10.2084],[1226707200000,10.3364],[1226793600000,10.3364],[1226880000000,10.3364],[1226966400000,10.3413],[1227052800000,10.4988],[1227139200000,10.6743],[1227225600000,10.6072],[1227312000000,10.9651],[1227398400000,10.9651],[1227484800000,10.9651],[1227571200000,11.3377],[1227657600000,11.9379],[1227744000000,12.2945],[1227830400000,12.2578],[1227916800000,12.3372],[1228003200000,12.3372]], 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, 10.408417],[1225497600000, 10.408417],[1225584000000, 10.408417],[1225670400000, 10.408417],[1225756800000, 10.471300],[1225843200000, 10.531670],[1225929600000, 10.570502],[1226016000000, 10.457838],[1226102400000, 10.430742],[1226188800000, 10.430742],[1226275200000, 10.430742],[1226361600000, 10.503966],[1226448000000, 10.381292],[1226534400000, 10.213425],[1226620800000, 10.208387],[1226707200000, 10.336388],[1226793600000, 10.336388],[1226880000000, 10.336388],[1226966400000, 10.341291],[1227052800000, 10.498797],[1227139200000, 10.674252],[1227225600000, 10.607211],[1227312000000, 10.965144],[1227398400000, 10.965144],[1227484800000, 10.965144],[1227571200000, 11.337748],[1227657600000, 11.937909],[1227744000000, 12.294542],[1227830400000, 12.257818],[1227916800000, 12.337208],[1228003200000, 12.337208]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });