$(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: [[1349049600000,14.8448],[1349136000000,14.784],[1349222400000,14.8427],[1349308800000,14.8171],[1349395200000,14.8689],[1349481600000,14.9296],[1349568000000,14.9296],[1349654400000,14.9296],[1349740800000,14.8769],[1349827200000,14.8691],[1349913600000,14.7999],[1350000000000,14.8332],[1350086400000,14.8929],[1350172800000,14.8929],[1350259200000,14.8929],[1350345600000,14.8919],[1350432000000,14.978],[1350518400000,15.0629],[1350604800000,15.0628],[1350691200000,14.9632],[1350777600000,14.9632],[1350864000000,14.9632],[1350950400000,14.9932],[1351036800000,14.9288],[1351123200000,14.8564],[1351209600000,14.9193],[1351296000000,14.8195],[1351382400000,14.8195],[1351468800000,14.8195],[1351555200000,14.8102],[1351641600000,14.8837]], 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: [[1349049600000, 14.844799],[1349049600000, 14.844799],[1349136000000, 14.783950],[1349222400000, 14.842667],[1349308800000, 14.817077],[1349395200000, 14.868909],[1349481600000, 14.929606],[1349568000000, 14.929606],[1349654400000, 14.929606],[1349740800000, 14.876945],[1349827200000, 14.869069],[1349913600000, 14.799853],[1350000000000, 14.833152],[1350086400000, 14.892862],[1350172800000, 14.892862],[1350259200000, 14.892862],[1350345600000, 14.891871],[1350432000000, 14.977977],[1350518400000, 15.062936],[1350604800000, 15.062803],[1350691200000, 14.963199],[1350777600000, 14.963199],[1350864000000, 14.963199],[1350950400000, 14.993188],[1351036800000, 14.928761],[1351123200000, 14.856442],[1351209600000, 14.919272],[1351296000000, 14.819541],[1351382400000, 14.819541],[1351468800000, 14.819541],[1351555200000, 14.810187],[1351641600000, 14.883676]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });