$(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: [[1185926400000,9.93546],[1186012800000,9.90357],[1186099200000,9.90287],[1186185600000,9.92319],[1186272000000,9.92319],[1186358400000,9.92319],[1186444800000,10.0145],[1186531200000,10.0014],[1186617600000,10.0028],[1186704000000,9.93714],[1186790400000,9.87289],[1186876800000,9.87289],[1186963200000,9.87289],[1187049600000,9.82997],[1187136000000,9.81756],[1187222400000,9.75682],[1187308800000,9.71516],[1187395200000,9.74089],[1187481600000,9.74089],[1187568000000,9.74089],[1187654400000,9.75402],[1187740800000,9.79403],[1187827200000,9.77754],[1187913600000,9.82495],[1188000000000,9.82495],[1188086400000,9.82495],[1188172800000,9.82495],[1188259200000,9.86596],[1188345600000,9.83933],[1188432000000,9.85632],[1188518400000,9.85525]], 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: [[1185926400000, 9.935460],[1185926400000, 9.935460],[1186012800000, 9.903567],[1186099200000, 9.902870],[1186185600000, 9.923188],[1186272000000, 9.923188],[1186358400000, 9.923188],[1186444800000, 10.014480],[1186531200000, 10.001393],[1186617600000, 10.002829],[1186704000000, 9.937143],[1186790400000, 9.872887],[1186876800000, 9.872887],[1186963200000, 9.872887],[1187049600000, 9.829966],[1187136000000, 9.817558],[1187222400000, 9.756817],[1187308800000, 9.715162],[1187395200000, 9.740889],[1187481600000, 9.740889],[1187568000000, 9.740889],[1187654400000, 9.754020],[1187740800000, 9.794027],[1187827200000, 9.777536],[1187913600000, 9.824953],[1188000000000, 9.824953],[1188086400000, 9.824953],[1188172800000, 9.824953],[1188259200000, 9.865956],[1188345600000, 9.839327],[1188432000000, 9.856322],[1188518400000, 9.855248]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });