$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1349049600000,0.645372],[1349136000000,0.645675],[1349222400000,0.645654],[1349308800000,0.646045],[1349395200000,0.646238],[1349481600000,0.646856],[1349568000000,0.646856],[1349654400000,0.646856],[1349740800000,0.648756],[1349827200000,0.651294],[1349913600000,0.651702],[1350000000000,0.652884],[1350086400000,0.654113],[1350172800000,0.654113],[1350259200000,0.654113],[1350345600000,0.655567],[1350432000000,0.656703],[1350518400000,0.656952],[1350604800000,0.657362],[1350691200000,0.656968],[1350777600000,0.656968],[1350864000000,0.656968],[1350950400000,0.656418],[1351036800000,0.655164],[1351123200000,0.654386],[1351209600000,0.65313],[1351296000000,0.652559],[1351382400000,0.652559],[1351468800000,0.652559],[1351555200000,0.65241],[1351641600000,0.652826]], 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, 0.645372],[1349049600000, 0.645372],[1349136000000, 0.645675],[1349222400000, 0.645654],[1349308800000, 0.646045],[1349395200000, 0.646238],[1349481600000, 0.646856],[1349568000000, 0.646856],[1349654400000, 0.646856],[1349740800000, 0.648756],[1349827200000, 0.651294],[1349913600000, 0.651702],[1350000000000, 0.652884],[1350086400000, 0.654113],[1350172800000, 0.654113],[1350259200000, 0.654113],[1350345600000, 0.655567],[1350432000000, 0.656703],[1350518400000, 0.656952],[1350604800000, 0.657362],[1350691200000, 0.656968],[1350777600000, 0.656968],[1350864000000, 0.656968],[1350950400000, 0.656418],[1351036800000, 0.655164],[1351123200000, 0.654386],[1351209600000, 0.653130],[1351296000000, 0.652559],[1351382400000, 0.652559],[1351468800000, 0.652559],[1351555200000, 0.652410],[1351641600000, 0.652826]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });