$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1298937600000,1.4239],[1299024000000,1.42289],[1299110400000,1.42303],[1299196800000,1.42495],[1299283200000,1.42352],[1299369600000,1.42352],[1299456000000,1.42352],[1299542400000,1.42352],[1299628800000,1.42352],[1299715200000,1.42588],[1299801600000,1.40888],[1299888000000,1.40017],[1299974400000,1.40017],[1300060800000,1.40017],[1300147200000,1.4137],[1300233600000,1.39308],[1300320000000,1.40838],[1300406400000,1.40845],[1300492800000,1.4246],[1300579200000,1.4246],[1300665600000,1.4246],[1300752000000,1.43169],[1300838400000,1.4286],[1300924800000,1.4243],[1301011200000,1.42619],[1301097600000,1.42511],[1301184000000,1.42511],[1301270400000,1.42511],[1301356800000,1.41844],[1301443200000,1.41657],[1301529600000,1.42557]], 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, 1.423902],[1298937600000, 1.423902],[1299024000000, 1.422889],[1299110400000, 1.423033],[1299196800000, 1.424946],[1299283200000, 1.423524],[1299369600000, 1.423524],[1299456000000, 1.423524],[1299542400000, 1.423524],[1299628800000, 1.423524],[1299715200000, 1.425881],[1299801600000, 1.408883],[1299888000000, 1.400168],[1299974400000, 1.400168],[1300060800000, 1.400168],[1300147200000, 1.413703],[1300233600000, 1.393084],[1300320000000, 1.408379],[1300406400000, 1.408449],[1300492800000, 1.424597],[1300579200000, 1.424597],[1300665600000, 1.424597],[1300752000000, 1.431685],[1300838400000, 1.428596],[1300924800000, 1.424295],[1301011200000, 1.426188],[1301097600000, 1.425107],[1301184000000, 1.425107],[1301270400000, 1.425107],[1301356800000, 1.418436],[1301443200000, 1.416566],[1301529600000, 1.425566]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });