2013年7月14日 星期日

html chat


highstock chat

http://hongkong2000.no-ip.org:8080/Test/history.html


chart = new Highcharts.StockChart({
                chart:         {renderTo:'container',alignTicks:false,backgroundColor: '#ECE9D8',
                                    events : {load : function() {setInterval(function() {clock();}, 3000);}}
                                    },
                rangeSelector:     {selected: 1},
                title:             {text: '<%=Company%> : Historical'},
                tooltip:         {positioner: function () {return { x: 80, y: 50 };}},
                plotOptions:    {candlestick: {color: 'red', upColor: 'green'}},//blue
                rangeSelector:     {selected: 1},
                navigator:        {enabled: false},  //scrollbar:    {enabled: false},
                yAxis:             [{title: {text: 'OHLC'},height: 200,lineWidth: 2},
                                      {title: {text: 'Volume'},top: 300,height: 100,offset: 0,lineWidth: 2}],

                series:         [{type: 'candlestick',name: '<%=Company%>',data: ohlc,dataGrouping: { units: groupingUnits}},{type: 'column',name: 'Volume',data: volume,yAxis: 1,dataGrouping: { units: groupingUnits}}]
                            

})

沒有留言:

張貼留言