$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1298937600000,2.7841],[1299024000000,2.78502],[1299110400000,2.78491],[1299196800000,2.78491],[1299283200000,2.78425],[1299369600000,2.78425],[1299456000000,2.78425],[1299542400000,2.78425],[1299628800000,2.78425],[1299715200000,2.78425],[1299801600000,2.78425],[1299888000000,2.78425],[1299974400000,2.78425],[1300060800000,2.78425],[1300147200000,2.78425],[1300233600000,2.78621],[1300320000000,2.78733],[1300406400000,2.78733],[1300492800000,2.78867],[1300579200000,2.78867],[1300665600000,2.78867],[1300752000000,2.78867],[1300838400000,2.78867],[1300924800000,2.78972],[1301011200000,2.79217],[1301097600000,2.79298],[1301184000000,2.79298],[1301270400000,2.79298],[1301356800000,2.79298],[1301443200000,2.79298],[1301529600000,2.79298]], 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, 2.784105],[1298937600000, 2.784105],[1299024000000, 2.785018],[1299110400000, 2.784912],[1299196800000, 2.784912],[1299283200000, 2.784246],[1299369600000, 2.784246],[1299456000000, 2.784246],[1299542400000, 2.784246],[1299628800000, 2.784246],[1299715200000, 2.784246],[1299801600000, 2.784246],[1299888000000, 2.784246],[1299974400000, 2.784246],[1300060800000, 2.784246],[1300147200000, 2.784246],[1300233600000, 2.786211],[1300320000000, 2.787333],[1300406400000, 2.787333],[1300492800000, 2.788667],[1300579200000, 2.788667],[1300665600000, 2.788667],[1300752000000, 2.788667],[1300838400000, 2.788667],[1300924800000, 2.789719],[1301011200000, 2.792175],[1301097600000, 2.792982],[1301184000000, 2.792982],[1301270400000, 2.792982],[1301356800000, 2.792982],[1301443200000, 2.792982],[1301529600000, 2.792982]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });