Are Ziya Graphs (or Flash based graphs in general) Printable?

2 views
Skip to first unread message

Marston

unread,
Jan 15, 2007, 8:05:44 PM1/15/07
to ZiYa Plugin
I'm looking to switch from gruff, though a requirement I have is
printable graphs. I'm not too much into flash which is why I'm posting
this. Now I could have my configuration set wrong or there may be
special settings, but from printing for example the line graphs on the
Ziya demo gallery the graphs didn't print.

>From a quick google it seems that Flash based graphs in general don't
print very well? I'd really like to use them though, can anyone shed
some light on this for me?

Fernand Galiana

unread,
Jan 15, 2007, 9:23:22 PM1/15/07
to ziya-...@googlegroups.com
Hi Marston,

  Good question !! This is kind of a soar point with the current state of affairs of flash
  rendering. I know this is probably not the answer you were looking for but here is
  a way to achieve printing...

  You can print the graph but not directly from the browser print function.
  You can however embed a link in the chart to print it.
  This is done via the link component using "print" as the target property.

  So in your yml style file set the following components:
  NOTE: Since the print button will be printed too ( Doh !! ) you should embed
  some kind of image instead of text on the print link, so the printed graphs
  won't suck too badly... )

  <%=component :draw %>  
    components:        
      - <%=drawing :rect %>
        fill_color: ccccccc
        x:        180
        y:        35
        width:    75
        height:   25
   
      - <%=drawing :text %>
        x:        203
        y:        40
        text:     Print
       
  <%=component :link %>  
    areas:        
      - <%=drawing :area %>   
         x:      180
         y:      35
         width:  75
         height: 25
         target: print

-Fernand

Brian DeLacey

unread,
Jan 15, 2007, 11:48:05 PM1/15/07
to ziya-...@googlegroups.com
I've (only) done a little printing with the ZiYa pie, bar, and line charts, as part of an HTML page, but mine actually looked pretty good to me. (Actually, I thought they looked amazingly good, considering what it would have taken for me to write that kind of print code on my own!)

I'm trying to run experiments on my own to see if I can learn more.

It would be helpful to have a default palette that works a little better on a B/W laser printer, but the charts actually flow quite nicely otherwise. (In general, I need to figure out how the color codes work - what code is what color? The video does a great job showing how to create GREEN. Can we expand that to a slightly larger standard set?)

I also had been thinking about how to print and share these charts. Perhaps as PDFs? I noticed FireFox 3 specs have saving to PDF pretty high on the list - but not quite (yet) a mandatory requirement.
Reply all
Reply to author
Forward
0 new messages