$(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: [[1359676800000,15.4832],[1359763200000,15.5728],[1359849600000,15.5728],[1359936000000,15.5728],[1360022400000,15.4678],[1360108800000,15.4595],[1360195200000,15.4367],[1360281600000,15.472],[1360368000000,15.2799],[1360454400000,15.2799],[1360540800000,15.2799],[1360627200000,15.3015],[1360713600000,15.3487],[1360800000000,15.3988],[1360886400000,15.2241],[1360972800000,15.2239],[1361059200000,15.2239],[1361145600000,15.2239],[1361232000000,15.257],[1361318400000,15.2492],[1361404800000,15.2732],[1361491200000,15.063],[1361577600000,15.063],[1361664000000,15.063],[1361750400000,15.063],[1361836800000,15.1934],[1361923200000,14.9406],[1362009600000,14.9421]], 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: [[1359676800000, 15.483224],[1359676800000, 15.483224],[1359763200000, 15.572825],[1359849600000, 15.572825],[1359936000000, 15.572825],[1360022400000, 15.467819],[1360108800000, 15.459529],[1360195200000, 15.436688],[1360281600000, 15.472017],[1360368000000, 15.279929],[1360454400000, 15.279929],[1360540800000, 15.279929],[1360627200000, 15.301539],[1360713600000, 15.348662],[1360800000000, 15.398834],[1360886400000, 15.224055],[1360972800000, 15.223946],[1361059200000, 15.223946],[1361145600000, 15.223946],[1361232000000, 15.256974],[1361318400000, 15.249186],[1361404800000, 15.273176],[1361491200000, 15.062984],[1361577600000, 15.062984],[1361664000000, 15.062984],[1361750400000, 15.062984],[1361836800000, 15.193438],[1361923200000, 14.940603],[1362009600000, 14.942095]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });