$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1298937600000,0.0405469],[1299024000000,0.0402484],[1299110400000,0.0404018],[1299196800000,0.0405786],[1299283200000,0.0407245],[1299369600000,0.0407245],[1299456000000,0.0407245],[1299542400000,0.0407245],[1299628800000,0.0407245],[1299715200000,0.0405013],[1299801600000,0.0401638],[1299888000000,0.0400624],[1299974400000,0.0400624],[1300060800000,0.0400624],[1300147200000,0.0405343],[1300233600000,0.0402309],[1300320000000,0.040536],[1300406400000,0.0406394],[1300492800000,0.0410832],[1300579200000,0.0410832],[1300665600000,0.0410832],[1300752000000,0.0416042],[1300838400000,0.0417649],[1300924800000,0.0416881],[1301011200000,0.0419846],[1301097600000,0.0421865],[1301184000000,0.0421865],[1301270400000,0.0421865],[1301356800000,0.0417863],[1301443200000,0.0418124],[1301529600000,0.0419904]], 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, 0.040547],[1298937600000, 0.040547],[1299024000000, 0.040248],[1299110400000, 0.040402],[1299196800000, 0.040579],[1299283200000, 0.040724],[1299369600000, 0.040724],[1299456000000, 0.040724],[1299542400000, 0.040724],[1299628800000, 0.040724],[1299715200000, 0.040501],[1299801600000, 0.040164],[1299888000000, 0.040062],[1299974400000, 0.040062],[1300060800000, 0.040062],[1300147200000, 0.040534],[1300233600000, 0.040231],[1300320000000, 0.040536],[1300406400000, 0.040639],[1300492800000, 0.041083],[1300579200000, 0.041083],[1300665600000, 0.041083],[1300752000000, 0.041604],[1300838400000, 0.041765],[1300924800000, 0.041688],[1301011200000, 0.041985],[1301097600000, 0.042187],[1301184000000, 0.042187],[1301270400000, 0.042187],[1301356800000, 0.041786],[1301443200000, 0.041812],[1301529600000, 0.041990]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });