• Content count

  • Joined

  • Last visited

About jcesarotero

  • Rank
    Forum Newbie
  1. Ipad Simulator Works. Device Does Not Work.

    Hello : Eureka !. Now FusionCharts works on both : emulator and device (Iphone and also iPad). What helped to get it work ?. This post helped me a lot ... http://stackoverflow.com/questions/2017937/how-to-add-js-file-to-my-xcode-project Xcode compiles, by default,. any *.js file included in Xcode project. Instructions from previous link show how to tell Xcode not to compile *.js files. Instead they must be only copied (without any changes ;-) So, at this moment 2 problems remain pending ... a) FusionCharts shows BLACK background color ALWAYS ¡¡¡ only on Simulator !!! (devices, iPad ios 4.3.3 and iPhone show WHITE background fine ;-) Decimal and Thousand separators don't work. Although "." is indicated for Thousand Separator and "," is passed as Decimal Separator numbers are show as 123,456.78 instead 123.456,78 Any ideas ?. Thanks in advance.
  2. Hello : I've made a sample project on XCode 4 that ... - Loads HTML webpage from local storage (Bundle Resources) and it's loaded on a UIWebView object in MainWindow - HTML code draws FusionCharts Graph using Data.xml local file - Project includes FusionCharts.js highcharts.js and jquery.min.js files as JavaScript (not compiled) files in Bundle Resources, included on package when compiled Testing this project on ... - iPad Simulator : Works OK ! - iPad Device : Fails :-( (it does not render graph) - iPhone Simulator : Fails :-( (it does not render graph) - iPhone Device : Fails :-( (it does not render graph) HTML Content File is ... ==================== <html> <head> <title>My First chart using FusionCharts - Using JavaScript</title> <script type="text/javascript" src="FusionCharts.js"></script> </head> <body> <div id="GraphArea" align="center">Grafico</div> <script type="text/javascript"> var myChart = new FusionCharts("Column2D.swf", "MyGraph", "400", "300", "1", "1" ); myChart.setXMLUrl("Data.xml"); myChart.render("GraphArea"); myChart.bgColor </script> <h5 align="center">-- Fin --</h5> </body> </html> ==================== NOTE : Debugging and registerWithJS are ON ("1", "1"), but no debugging info is shown. XML Data File says .... ==================== <?xml version="1.0"?> <chart caption="Resumen de Ventas" subCaption="Ejercicio 2011" numberSuffix="€" sNumberSuffix="€" formatNumberScale="0" syncAxisLimits="1" rotateValues="1" showSum="0" decimalSeparator="," thousandSeparator="." bgColor="ccddee,aabbcc"> <!-- Data for single series chart --> <set label="1 Trimestre" value="232400.25"/> <set label="2 Trimestre" value="339800.75"/> <set label="3 Trimestre" value="411900.48"/> <set label="4 Trimestre" value="398400.35"/> <!-- Data for multi-series stacked and combination chart --> <categories> <category label="1T"/> <category label="2T"/> <category label="3T"/> <category label="4T"/> </categories> <dataset seriesName="Artículos"> <set value="232400"/> <set value="232400"/> <set value="339800"/> <set value="411900"/> <set value="398400"/> <!-- Data for multi-series stacked chart - nested dataset--> <dataset seriesName="123 - Cervezas"> <set value="232400"/> <set value="232400"/> <set value="339800"/> <set value="411900"/> <set value="398400"/> </dataset> <dataset seriesName="556 - Aguas"> <set value="232400"/> <set value="232400"/> <set value="339800"/> <set value="411900"/> <set value="398400"/> </dataset> </dataset> <dataset seriesName="Servicios" renderAs="line" parentYAxis="S" showValues="1" valuePosition="BELOW"> <set value="147400"/> <set value="189100"/> <set value="219800"/> <set value="289100"/> <set value="209800"/> <!-- Data for multi-series stacked chart - nested dataset--> <dataset seriesName="Todos los Servicios" renderAs="line" parentYAxis="S"> <set value="214400"/> <set value="214100"/> <set value="284800"/> <set value="323100"/> <set value="324800"/> </dataset> </dataset> <!-- Data for multi-series stacked chart line chart - line dataset --> <lineset seriesName="Objetivo de Rentabilidad" valuePosition="BELOW"> <set value="104400"/> <set value="104100"/> <set value="144800"/> <set value="213100"/> <set value="214800"/> </lineset> </chart> ==================== It renders graph OK always on iPad Simulator (whatever kind of chart you try [Line, Column2D, Bar2D, MSBar2D, ...]) but fails on iPhone Simulator and both kind of devices (iPad and iPhone). By the way, 2 additional errors when program is tested on iPad Simulator ... a) Background Color shows always BLACK COLOR (whatever color indicated as bgColor) Numbers do not show DECIMAL SEPARATOR and THOUSAND SEPARATOR as indicated by decimalSeparator and thousandSeparator parameters (numbers shown in graph apply POINT as DECIMAL SEPARATOR instead COMMA, and COMMA as THOUSAND SEPARATOR instead POINT) Any suggestions or ideas about how to debug program to get it work on iPhone/iPad devices and not only on iPad Simulator ?. Are background and decimal/thousand separators FusionCharts bugs, or may be bugs from simulator behaviour ?. Thanks in advance for any clues !
  3. Hello : Same issue for me. Latest FusionCharts version (downloaded today : May 26) shows BLACK background when loaded on UIWebView from local Bundle Resource (although code asks for WHITE background color [bgColor="ffffff"]) Any suggestion or workaround to avoid black background color and get white background work ? Here is a screenshot from my sample project ....