$(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: [[1298937600000,3.17912],[1299024000000,3.17809],[1299110400000,3.17429],[1299196800000,3.18372],[1299283200000,3.20755],[1299369600000,3.20755],[1299456000000,3.20755],[1299542400000,3.20755],[1299628800000,3.20755],[1299715200000,3.20088],[1299801600000,3.17537],[1299888000000,3.16526],[1299974400000,3.16526],[1300060800000,3.16526],[1300147200000,3.20548],[1300233600000,3.19302],[1300320000000,3.20972],[1300406400000,3.22192],[1300492800000,3.25246],[1300579200000,3.25246],[1300665600000,3.25246],[1300752000000,3.26719],[1300838400000,3.27111],[1300924800000,3.25507],[1301011200000,3.25609],[1301097600000,3.25404],[1301184000000,3.25404],[1301270400000,3.25404],[1301356800000,3.2349],[1301443200000,3.24274],[1301529600000,3.24827]], 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: [[1298937600000, 3.179120],[1298937600000, 3.179120],[1299024000000, 3.178092],[1299110400000, 3.174294],[1299196800000, 3.183719],[1299283200000, 3.207547],[1299369600000, 3.207547],[1299456000000, 3.207547],[1299542400000, 3.207547],[1299628800000, 3.207547],[1299715200000, 3.200883],[1299801600000, 3.175373],[1299888000000, 3.165261],[1299974400000, 3.165261],[1300060800000, 3.165261],[1300147200000, 3.205479],[1300233600000, 3.193022],[1300320000000, 3.209724],[1300406400000, 3.221918],[1300492800000, 3.252462],[1300579200000, 3.252462],[1300665600000, 3.252462],[1300752000000, 3.267193],[1300838400000, 3.271106],[1300924800000, 3.255071],[1301011200000, 3.256093],[1301097600000, 3.254037],[1301184000000, 3.254037],[1301270400000, 3.254037],[1301356800000, 3.234903],[1301443200000, 3.242741],[1301529600000, 3.248274]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });