Found my problem.
In step 3. I did not catch that I had to def a index in the controller
so the call back worked correctly from blee/index.html.erb.
class BleeController < ApplicationController
# Load ZiYa necessary helpers
helper Ziya::HtmlHelpers::Charts
helper Ziya::YamlHelpers::Charts
def index
end
# Callback from the flash movie to get the chart's data
def load_chart
# Create a bar chart with 2 series composed of 3 data points
each.
# Chart will be rendered using the default look and feel
chart = Ziya::Charts::Column.new
chart.add(:axis_category_text, %w{2006 2007 2008})
chart.add(:series, "Dogs", [10,20,30])
chart.add(:series, "Cats", [5,15,30])
respond_to do |fmt|
fmt.xml { render :xml => chart.to_xml }
end
end
end
Then you see the get blee, get charts.swf, get load_chart, get
cino.swf.
Very excited to have Ziya working.
Philip
On Jan 10, 9:23 pm, Fernand Galiana <fernand.gali...@gmail.com> wrote:
> Hi Philip,
> Looks like you may have a yaml format issue.
> For examples take a look athttp://github.com/derailed/ziya-galeria.
> -Fernand
> On Sun, Jan 10, 2010 at 9:10 PM, pblen <blen.phi...@gmail.com> wrote:
> > Newbie questions trying to get started. Where am I going wrong? Are
> > there sample theme files associated with the instructions?
> > Thanks,
> > Philip
> > Followed the setup and get this web page
> > bar200620072008Dogs102030Cats51525
> > with the source being
> > <?xml version="1.0" encoding="UTF-8"?><chart><chart_type>bar</
> > chart_type><chart_data><row><null/><string>2006</string><string>2007</
> > string><string>2008</string></row><row><string>Dogs</
> > string><number>10</number><number>20</number><number>30</number></
> > row><row><string>Cats</string><number>5</number><number>15</
> > number><number>25</number></row></chart_data></chart>
> > The log is recording the following:
> > Processing BleeController#load_chart (for 127.0.0.1 at 2010-01-10
> > 19:58:47) [GET]
> > >>> Ziya attempt to load style sheet file
> > '/Users/pblen/Documents/source/rails_work/zchart/config/initializers/../../ public/charts/themes/default/base_chart
> > >>> Ziya attempt to load style sheet file
> > '/Users/pblen/Documents/source/rails_work/zchart/config/initializers/../../ public/charts/themes/default/bar_chart
> > Completed in 417ms (View: 412, DB: 0) | 200 OK [http://localhost/blee/
> > load_chart]
> > It is looking for two files that are not listed in the instructions.
> > Moving on to the Fred Example.
> > the logs point to a problem with the
> > <%= chart :column %>
> > <%=comp :axis_category %>
> > color: ff0000
> > Processing FredController#load_chart (for 127.0.0.1 at 2010-01-10
> > 20:05:42) [GET]
> > >>> Ziya attempt to load style sheet file
> > '/Users/pblen/Documents/source/rails_work/zchart/config/initializers/../../ public/charts/themes/fred/base_chart
> > >>> Ziya attempt to load style sheet file
> > '/Users/pblen/Documents/source/rails_work/zchart/config/initializers/../../ public/charts/themes/fred/bar_chart
> > >>> ZiYa -- Error encountered loading file
> > `/Users/pblen/Documents/source/rails_work/zchart/config/initializers/../../ public/charts/themes/fred/bar_chart
> > -- syntax error on line 2, col 2: ` color: ff0000'
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
> > 1.8/yaml.rb:133:in `load'
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ZiYa Plugin" group.
> > To post to this group, send email to ziya-plugin@googlegroups.com.
> > To unsubscribe from this group, send email to
> > ziya-plugin+unsubscribe@googlegroups.com<ziya-plugin%2Bunsubscribe@googlegr oups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/ziya-plugin?hl=en.