$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1122854400000,0.0449339],[1122940800000,0.0451496],[1123027200000,0.0453413],[1123113600000,0.0454319],[1123200000000,0.0453003],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,0.0450471],[1123718400000,0.0454904],[1123804800000,0.0457465],[1123891200000,0.0461472],[1123977600000,0.0461472],[1124064000000,0.0461472],[1124150400000,0.0461035],[1124236800000,0.0461863],[1124323200000,0.0460473],[1124409600000,0.0457467],[1124496000000,0.0457395],[1124582400000,0.0457395],[1124668800000,0.0457395],[1124755200000,0.0461185],[1124841600000,0.0458931],[1124928000000,0.0458931],[1125014400000,0.0458996],[1125100800000,0.0460612],[1125187200000,0.0460612],[1125273600000,0.0460612],[1125360000000,0.0457227],[1125446400000,0.0452942]], 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: [[1122854400000, 0.044934],[1122854400000, 0.044934],[1122940800000, 0.045150],[1123027200000, 0.045341],[1123113600000, 0.045432],[1123200000000, 0.045300],[1123632000000, 0.045047],[1123718400000, 0.045490],[1123804800000, 0.045747],[1123891200000, 0.046147],[1123977600000, 0.046147],[1124064000000, 0.046147],[1124150400000, 0.046103],[1124236800000, 0.046186],[1124323200000, 0.046047],[1124409600000, 0.045747],[1124496000000, 0.045740],[1124582400000, 0.045740],[1124668800000, 0.045740],[1124755200000, 0.046118],[1124841600000, 0.045893],[1124928000000, 0.045893],[1125014400000, 0.045900],[1125100800000, 0.046061],[1125187200000, 0.046061],[1125273600000, 0.046061],[1125360000000, 0.045723],[1125446400000, 0.045294]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });