• Content count

  • Joined

  • Last visited

Everything posted by malli08

  1. Hi, I am using this jar file to generate a live demo which will show the current data and data hitoric data. i worked on basic example but it is not showing historic data. my code is Index.jsp -------------------------------- <div id="chartContainer">FusionCharts will load here!</div> <script type="text/javascript"><!-- var myChart = new FusionCharts("FusionChart/RealTimeLine.swf","myChartId", "400", "300","0","1","#bbbe6"); myChart.setXMLUrl("Data.xml"); myChart.render("chartContainer"); --> </script> StockPrice.jsp ----------------------------------------------------- <% int lowerLimit = 30; int upperLimit = 35; double randomValue = Math.random()*100*(upperLimit-lowerLimit)/100+lowerLimit; long factor = (long)Math.pow(10,2); randomValue = randomValue * factor; long tmp = Math.round(randomValue); double roundedRandomValue=(double)randomValue / factor; Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); String timeLabel = sdf.format(cal.getTime()); String dataParameters = "&label=" +timeLabel+ "&value=" +roundedRandomValue+"&"; System.out.println(dataParameters); out.print(dataParameters); %> Data.xml -------------------------------------------------------- <?xml version="1.0" encoding="windows-1252" ?> <chart caption="Stock Price Monitor" subCaption="NIBM" dataStreamURL="StockPrice.jsp" refreshInterval="3" numberPrefix="$" setAdaptiveYMin="1" xAxisName="Time" showRealTimeValue="1" labelDisplay="Rotate" slantLabels="1" canvasLeftMargin="50" numDisplaySets="20"> <categories> <categories label="15 Senods before"/> <categories label="12 Senods before"/> <categories label="9 Senods before"/> <categories label="6 Senods before"/> <categories label="3 Senods before"/> </categories> <dataset seriesName="ForEx" showValues="0" color='FF8000'> <set value="32.34"/> <set value="32.34"/> <set value="34.75"/> <set value="33.34"/> <set value="33.65"/> </dataset> <styles> <definition> <style type="font" name="captionFont" size="14"/> </definition> <application> <apply toObject="Realtimevalue" styles="captionFont"/> </application> </styles> </chart> It is showing only current data, it is not showing historic data... thanks in advance
  2. Hi, This is a great library which is providing charting solution for different technologies. I want to use this in my JSP pages but, i have some doubts about it. Some of them ar my client requirement also. I have to develop a time series chart (ie., realtimeline chart) for ForEx trading. my doubts are... 1) Is the chart is zoomable(zoomin and out ). 2) If user starts his browser at any time on that time the market may starts then the old data i am storing in db is it possible to display old data. and the chart should continue with current changes. 3) Can i call servlet in XML file because we are fallowing MVC so the logic will be some where not in JSP. Which can be accessed through servlets. I am eagerly waiting for your reply thank you.
  3. Forex Chart In Swings

    Hi, I am new to this forum. I have a question is it possible to draw a live ForEX chart in java swing using FusionCharts. If so please help with documentation. Thanks in advance
  4. Hi, i have downloaded the zip file for developing charts in swing and i have gone through Readme.txt file also but i can't find fussioncharts.swf file in zip file i downloaded in fussionchart zip file. please help me on this.