$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1246406400000,3.12763],[1246492800000,3.11881],[1246579200000,3.10797],[1246665600000,3.09883],[1246752000000,3.09883],[1246838400000,3.09883],[1246924800000,3.07406],[1247011200000,3.09792],[1247097600000,3.06963],[1247184000000,3.08843],[1247270400000,3.06959],[1247356800000,3.06959],[1247443200000,3.06959],[1247529600000,3.08593],[1247616000000,3.09027],[1247702400000,3.11384],[1247788800000,3.12675],[1247875200000,3.12238],[1247961600000,3.12238],[1248048000000,3.12238],[1248134400000,3.15493],[1248220800000,3.15552],[1248307200000,3.14957],[1248393600000,3.15793],[1248480000000,3.15876],[1248566400000,3.15876],[1248652800000,3.15876],[1248739200000,3.17858],[1248825600000,3.16909],[1248912000000,3.1453],[1248998400000,3.13311]], 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: [[1246406400000, 3.127631],[1246406400000, 3.127631],[1246492800000, 3.118813],[1246579200000, 3.107967],[1246665600000, 3.098834],[1246752000000, 3.098834],[1246838400000, 3.098834],[1246924800000, 3.074059],[1247011200000, 3.097920],[1247097600000, 3.069630],[1247184000000, 3.088432],[1247270400000, 3.069589],[1247356800000, 3.069589],[1247443200000, 3.069589],[1247529600000, 3.085930],[1247616000000, 3.090273],[1247702400000, 3.113837],[1247788800000, 3.126745],[1247875200000, 3.122383],[1247961600000, 3.122383],[1248048000000, 3.122383],[1248134400000, 3.154932],[1248220800000, 3.155522],[1248307200000, 3.149573],[1248393600000, 3.157925],[1248480000000, 3.158758],[1248566400000, 3.158758],[1248652800000, 3.158758],[1248739200000, 3.178580],[1248825600000, 3.169093],[1248912000000, 3.145297],[1248998400000, 3.133109]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });