Tim Uckun

Members
  • Content count

    4
  • Joined

  • Last visited

About Tim Uckun

  • Rank
    Forum Newbie
  1. Fusioncharts Rails 3 Sample Application

    Thanks I will try that. I do have one other question though. When plotting multiple series I have to specify all the keys for all the series but I might not have a corresponding value in all the series. For example let's say I am plotting the sales of various items over the week. Every day I sold some things so categories keys would be mon, tues, wed, etc. But maybe I did not sell any white shirts on monday so I don't have an entry in my database for white shirts with monday's date on it. When I pull the data out of my database there is no entry for that database and when fill out the XML it's missing an item. Wouldn't it make more sense to specify both the key and the value for the data points and let fusion charts figure how to plot them? This is how all the javascript libraries work, you specify a JSON document with the key value pairs or an array of arrays containing keys and values. Thanks.
  2. Fusioncharts Rails 3 Sample Application

    I got past the /Data.xml problem now it's saying "no data to display" even though the debug output is . The dataSource used is str_data.The data is <chart xAxisName="Date" showValues="1" labelStep="2" caption="Visitors" palette="2" subcaption="(In Units)"><categories><category label="2011-04-01"/><category label="2011-04-01"/><category label="2011-04-02"/><category label="2011-04-02"/><category label="2011-04-03"/><category label="2011-04-03"/><category label="2011-04-04"/><category label="2011-04-04"/></categories><dataset seriesName="New Visitors"><set value="232"/><set value="222"/><set value="270"/><set value="248"/></dataset><dataset seriesname="Returning Visitors"><set value="43"/><set value="38"/><set value="48"/><set value="48"/></dataset></chart> Notice the different capitalizations of seriesName and seriesname I tried both because the docs say to use lowercase but your example uses upper case.
  3. Fusioncharts Rails 3 Sample Application

    I would also like to report one other thing. I tried to make the charts work with another rails application and was unable to do so. Your example rails app works (displays charts) but then I try to port the code to another app it fails because it seems like it's trying to do very specific things. For example when I call - xml = @chart_data - render_chart '/FusionChartsFree/Charts/FCF_MSLine.swf','', xml, 'FactorySum', 700, 400, false, false the javascript FusionCharts.js is trying to fetch /Data.xml if this file does not exist it fails. If I put the file in there it still fails but only gives a vague error. I am not quite sure what is going wrong but if you could provide some pointers I would appreciate it very much.
  4. Fusioncharts Rails 3 Sample Application

    Hey Guys. I just downloaded and tried to run this app and it didn't work "out of the box". First of all it throws up an error message on "Encoding.default_external = Encoding::UTF_8" I presume some gem is missing. Also rake db:migrate doesn't populate the database. Trying to run the SQL files by hand also doesn't work because the schema creates tables in lower case and the sample data attempts to insert the date in Camel_Case. Just thought you'd want to know. I did get the application going by commenting out the encoding statement and doing a search and replace on the data file.