Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
load style sheet file error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
pblen  
View profile  
 More options Jan 10, 11:10 pm
From: pblen <blen.phi...@gmail.com>
Date: Sun, 10 Jan 2010 20:10:59 -0800 (PST)
Local: Sun, Jan 10 2010 11:10 pm
Subject: load style sheet file error
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'

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fernand Galiana  
View profile  
 More options Jan 11, 12:23 am
From: Fernand Galiana <fernand.gali...@gmail.com>
Date: Sun, 10 Jan 2010 22:23:02 -0700
Local: Mon, Jan 11 2010 12:23 am
Subject: Re: load style sheet file error

Hi Philip,

  Looks like you may have a yaml format issue.
  For examples take a look at http://github.com/derailed/ziya-galeria.

-Fernand


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pblen  
View profile  
 More options Jan 29, 7:27 pm
From: pblen <blen.phi...@gmail.com>
Date: Fri, 29 Jan 2010 16:27:28 -0800 (PST)
Local: Fri, Jan 29 2010 7:27 pm
Subject: Re: load style sheet file error
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:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google