$(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: [[1267401600000,3.14018],[1267488000000,3.12977],[1267574400000,3.13313],[1267660800000,3.15424],[1267747200000,3.16057],[1267833600000,3.14052],[1267920000000,3.14052],[1268006400000,3.14052],[1268092800000,3.14052],[1268179200000,3.13482],[1268265600000,3.14644],[1268352000000,3.15652],[1268438400000,3.18052],[1268524800000,3.18052],[1268611200000,3.18052],[1268697600000,3.16615],[1268784000000,3.1703],[1268870400000,3.17765],[1268956800000,3.15547],[1269043200000,3.1234],[1269129600000,3.1234],[1269216000000,3.1234],[1269302400000,3.10339],[1269388800000,3.11276],[1269475200000,3.06525],[1269561600000,3.06784],[1269648000000,3.06677],[1269734400000,3.06677],[1269820800000,3.06677],[1269907200000,3.09192],[1269993600000,3.09444]], 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, 3.140185],[1267401600000, 3.140185],[1267488000000, 3.129771],[1267574400000, 3.133132],[1267660800000, 3.154244],[1267747200000, 3.160567],[1267833600000, 3.140523],[1267920000000, 3.140523],[1268006400000, 3.140523],[1268092800000, 3.140523],[1268179200000, 3.134821],[1268265600000, 3.146445],[1268352000000, 3.156520],[1268438400000, 3.180525],[1268524800000, 3.180525],[1268611200000, 3.180525],[1268697600000, 3.166146],[1268784000000, 3.170304],[1268870400000, 3.177649],[1268956800000, 3.155473],[1269043200000, 3.123401],[1269129600000, 3.123401],[1269216000000, 3.123401],[1269302400000, 3.103386],[1269388800000, 3.112761],[1269475200000, 3.065252],[1269561600000, 3.067842],[1269648000000, 3.066766],[1269734400000, 3.066766],[1269820800000, 3.066766],[1269907200000, 3.091916],[1269993600000, 3.094441]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });