$(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: [[1267401600000,15.2883],[1267488000000,15.2376],[1267574400000,15.2518],[1267660800000,15.3545],[1267747200000,15.3897],[1267833600000,15.2964],[1267920000000,15.2964],[1268006400000,15.2964],[1268092800000,15.2964],[1268179200000,15.2794],[1268265600000,15.3447],[1268352000000,15.3938],[1268438400000,15.5065],[1268524800000,15.5065],[1268611200000,15.5065],[1268697600000,15.4495],[1268784000000,15.4676],[1268870400000,15.5013],[1268956800000,15.3865],[1269043200000,15.2345],[1269129600000,15.2345],[1269216000000,15.2345],[1269302400000,15.1347],[1269388800000,15.1783],[1269475200000,14.9508],[1269561600000,14.9741],[1269648000000,14.9603],[1269734400000,14.9603],[1269820800000,14.9603],[1269907200000,15.0788],[1269993600000,15.074]], 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: [[1267401600000, 15.288254],[1267401600000, 15.288254],[1267488000000, 15.237556],[1267574400000, 15.251767],[1267660800000, 15.354539],[1267747200000, 15.389655],[1267833600000, 15.296371],[1267920000000, 15.296371],[1268006400000, 15.296371],[1268092800000, 15.296371],[1268179200000, 15.279374],[1268265600000, 15.344698],[1268352000000, 15.393831],[1268438400000, 15.506519],[1268524800000, 15.506519],[1268611200000, 15.506519],[1268697600000, 15.449502],[1268784000000, 15.467607],[1268870400000, 15.501251],[1268956800000, 15.386550],[1269043200000, 15.234467],[1269129600000, 15.234467],[1269216000000, 15.234467],[1269302400000, 15.134707],[1269388800000, 15.178280],[1269475200000, 14.950845],[1269561600000, 14.974051],[1269648000000, 14.960340],[1269734400000, 14.960340],[1269820800000, 14.960340],[1269907200000, 15.078768],[1269993600000, 15.074048]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });