ziya 2.0.7 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +561 -89
- data/README.txt +203 -108
- data/Rakefile +7 -6
- data/bin/ziyafy +38 -14
- data/docs/History.txt.html +50 -0
- data/docs/README.txt.html +403 -0
- data/docs/String.html +832 -0
- data/docs/Ziya.html +636 -0
- data/docs/Ziya/Charts.html +909 -0
- data/docs/Ziya/Charts/Area.html +672 -0
- data/docs/Ziya/Charts/AreaThreed.html +672 -0
- data/docs/Ziya/Charts/Bar.html +672 -0
- data/docs/Ziya/Charts/Base.html +1101 -0
- data/docs/Ziya/Charts/Bubble.html +672 -0
- data/docs/Ziya/Charts/CandleStick.html +672 -0
- data/docs/Ziya/Charts/Column.html +672 -0
- data/docs/Ziya/Charts/ColumnThreed.html +672 -0
- data/docs/Ziya/Charts/Custom.html +672 -0
- data/docs/Ziya/Charts/Donut.html +672 -0
- data/docs/Ziya/Charts/FloatingBar.html +672 -0
- data/docs/Ziya/Charts/FloatingColumn.html +672 -0
- data/docs/Ziya/Charts/ImageColumn.html +672 -0
- data/docs/Ziya/Charts/ImagePie.html +672 -0
- data/docs/Ziya/Charts/Line.html +672 -0
- data/docs/Ziya/Charts/Mixed.html +672 -0
- data/docs/Ziya/Charts/ParallelThreedColumn.html +672 -0
- data/docs/Ziya/Charts/Pie.html +672 -0
- data/docs/Ziya/Charts/PieThreed.html +672 -0
- data/docs/Ziya/Charts/Polar.html +672 -0
- data/docs/Ziya/Charts/Scatter.html +672 -0
- data/docs/Ziya/Charts/StackedArea.html +672 -0
- data/docs/Ziya/Charts/StackedBar.html +672 -0
- data/docs/Ziya/Charts/StackedColumn.html +672 -0
- data/docs/Ziya/Charts/StackedThreedArea.html +672 -0
- data/docs/Ziya/Charts/StackedThreedColumn.html +672 -0
- data/docs/Ziya/Charts/Support.html +1245 -0
- data/docs/Ziya/Charts/Support/Area.html +582 -0
- data/docs/Ziya/Charts/Support/AxisCategory.html +583 -0
- data/docs/Ziya/Charts/Support/AxisTicks.html +644 -0
- data/docs/Ziya/Charts/Support/AxisValue.html +583 -0
- data/docs/Ziya/Charts/Support/Base.html +577 -0
- data/docs/Ziya/Charts/Support/Bevel.html +583 -0
- data/docs/Ziya/Charts/Support/Blur.html +583 -0
- data/docs/Ziya/Charts/Support/Button.html +583 -0
- data/docs/Ziya/Charts/Support/ChartBorder.html +582 -0
- data/docs/Ziya/Charts/Support/ChartGridH.html +616 -0
- data/docs/Ziya/Charts/Support/ChartGridV.html +616 -0
- data/docs/Ziya/Charts/Support/ChartGuide.html +582 -0
- data/docs/Ziya/Charts/Support/ChartLabel.html +583 -0
- data/docs/Ziya/Charts/Support/ChartNote.html +582 -0
- data/docs/Ziya/Charts/Support/ChartPref.html +589 -0
- data/docs/Ziya/Charts/Support/ChartRect.html +632 -0
- data/docs/Ziya/Charts/Support/ChartTransition.html +613 -0
- data/docs/Ziya/Charts/Support/Circle.html +583 -0
- data/docs/Ziya/Charts/Support/ContextMenu.html +583 -0
- data/docs/Ziya/Charts/Support/Draw.html +886 -0
- data/docs/Ziya/Charts/Support/DrawBase.html +577 -0
- data/docs/Ziya/Charts/Support/Filter.html +668 -0
- data/docs/Ziya/Charts/Support/FlashToJavascript.html +596 -0
- data/docs/Ziya/Charts/Support/Glow.html +583 -0
- data/docs/Ziya/Charts/Support/Image.html +583 -0
- data/docs/Ziya/Charts/Support/Legend.html +582 -0
- data/docs/Ziya/Charts/Support/Line.html +583 -0
- data/docs/Ziya/Charts/Support/Link.html +734 -0
- data/docs/Ziya/Charts/Support/LinkData.html +589 -0
- data/docs/Ziya/Charts/Support/Rect.html +583 -0
- data/docs/Ziya/Charts/Support/Scroll.html +583 -0
- data/docs/Ziya/Charts/Support/Series.html +583 -0
- data/docs/Ziya/Charts/Support/SeriesColor.html +676 -0
- data/docs/Ziya/Charts/Support/SeriesExplode.html +676 -0
- data/docs/Ziya/Charts/Support/Shadow.html +583 -0
- data/docs/Ziya/Charts/Support/Text.html +664 -0
- data/docs/Ziya/Charts/Support/Tooltip.html +583 -0
- data/docs/Ziya/Charts/Support/Update.html +590 -0
- data/docs/Ziya/Gauges.html +644 -0
- data/docs/Ziya/Gauges/Base.html +1052 -0
- data/docs/Ziya/Gauges/Radial.html +654 -0
- data/docs/Ziya/Gauges/Signal.html +794 -0
- data/docs/Ziya/Gauges/Support.html +726 -0
- data/docs/Ziya/Gauges/Support/Area.html +577 -0
- data/docs/Ziya/Gauges/Support/Base.html +690 -0
- data/docs/Ziya/Gauges/Support/Circle.html +577 -0
- data/docs/Ziya/Gauges/Support/Design.html +577 -0
- data/docs/Ziya/Gauges/Support/Image.html +577 -0
- data/docs/Ziya/Gauges/Support/Line.html +577 -0
- data/docs/Ziya/Gauges/Support/Link.html +577 -0
- data/docs/Ziya/Gauges/Support/Move.html +577 -0
- data/docs/Ziya/Gauges/Support/Point.html +577 -0
- data/docs/Ziya/Gauges/Support/Polygon.html +577 -0
- data/docs/Ziya/Gauges/Support/RadialBase.html +654 -0
- data/docs/Ziya/Gauges/Support/RadialNumbers.html +694 -0
- data/docs/Ziya/Gauges/Support/RadialTicks.html +676 -0
- data/docs/Ziya/Gauges/Support/Rect.html +577 -0
- data/docs/Ziya/Gauges/Support/Rotate.html +577 -0
- data/docs/Ziya/Gauges/Support/Scale.html +577 -0
- data/docs/Ziya/Gauges/Support/Text.html +656 -0
- data/docs/Ziya/Gauges/Support/Update.html +577 -0
- data/docs/Ziya/Gauges/Thermo.html +826 -0
- data/docs/Ziya/HtmlHelpers.html +597 -0
- data/docs/Ziya/HtmlHelpers/Charts.html +1399 -0
- data/docs/Ziya/HtmlHelpers/Gauges.html +987 -0
- data/docs/Ziya/HtmlHelpers/Maps.html +950 -0
- data/docs/Ziya/Maps.html +713 -0
- data/docs/Ziya/Maps/Australia.html +648 -0
- data/docs/Ziya/Maps/Base.html +1099 -0
- data/docs/Ziya/Maps/Belgium.html +648 -0
- data/docs/Ziya/Maps/Brazil.html +648 -0
- data/docs/Ziya/Maps/Canada.html +648 -0
- data/docs/Ziya/Maps/Europe.html +648 -0
- data/docs/Ziya/Maps/France.html +648 -0
- data/docs/Ziya/Maps/Geocode.html +752 -0
- data/docs/Ziya/Maps/Germany.html +648 -0
- data/docs/Ziya/Maps/Italy.html +648 -0
- data/docs/Ziya/Maps/Mexico.html +648 -0
- data/docs/Ziya/Maps/Support.html +798 -0
- data/docs/Ziya/Maps/Support/Arc.html +577 -0
- data/docs/Ziya/Maps/Support/ArcColor.html +577 -0
- data/docs/Ziya/Maps/Support/ArcRange.html +577 -0
- data/docs/Ziya/Maps/Support/BackgroundColor.html +577 -0
- data/docs/Ziya/Maps/Support/Base.html +792 -0
- data/docs/Ziya/Maps/Support/DefaultColor.html +577 -0
- data/docs/Ziya/Maps/Support/DefaultPoint.html +577 -0
- data/docs/Ziya/Maps/Support/FirstZoom.html +577 -0
- data/docs/Ziya/Maps/Support/HeatRange.html +658 -0
- data/docs/Ziya/Maps/Support/Hover.html +577 -0
- data/docs/Ziya/Maps/Support/Line.html +577 -0
- data/docs/Ziya/Maps/Support/LineColor.html +577 -0
- data/docs/Ziya/Maps/Support/LineRange.html +577 -0
- data/docs/Ziya/Maps/Support/OutlineColor.html +577 -0
- data/docs/Ziya/Maps/Support/Point.html +577 -0
- data/docs/Ziya/Maps/Support/PointRange.html +577 -0
- data/docs/Ziya/Maps/Support/Range.html +753 -0
- data/docs/Ziya/Maps/Support/Ranges.html +658 -0
- data/docs/Ziya/Maps/Support/Region.html +577 -0
- data/docs/Ziya/Maps/Support/ScalePoints.html +577 -0
- data/docs/Ziya/Maps/Support/ShowName.html +577 -0
- data/docs/Ziya/Maps/Support/State.html +577 -0
- data/docs/Ziya/Maps/Support/StateInfoIcon.html +577 -0
- data/docs/Ziya/Maps/Support/ZoomMode.html +577 -0
- data/docs/Ziya/Maps/Support/ZoomOutButton.html +577 -0
- data/docs/Ziya/Maps/Support/ZoomOutScale.html +577 -0
- data/docs/Ziya/Maps/Sweden.html +648 -0
- data/docs/Ziya/Maps/Uk.html +648 -0
- data/docs/Ziya/Maps/Us.html +648 -0
- data/docs/Ziya/Maps/World.html +648 -0
- data/docs/Ziya/YamlHelpers.html +592 -0
- data/docs/Ziya/YamlHelpers/Gauges.html +848 -0
- data/docs/Ziya/YamlHelpers/Maps.html +750 -0
- data/docs/Ziya/Ziyafy.html +735 -0
- data/docs/bin/ziyafy.html +52 -0
- data/docs/created.rid +1 -0
- data/docs/examples/charts/public/charts/themes/readme.txt.html +61 -0
- data/docs/examples/maps/public/maps/themes/readme.txt.html +61 -0
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +978 -0
- data/docs/js/darkfish.js +91 -0
- data/docs/js/jquery.js +32 -0
- data/docs/js/quicksearch.js +135 -0
- data/docs/js/thickbox-compressed.js +10 -0
- data/docs/lib/ziya.rb.html +43 -0
- data/docs/lib/ziya/charts/area.rb.html +54 -0
- data/docs/lib/ziya/charts/area_threed.rb.html +153 -0
- data/docs/lib/ziya/charts/bar.rb.html +45 -0
- data/docs/lib/ziya/charts/base.rb.html +71 -0
- data/docs/lib/ziya/charts/bubble.rb.html +54 -0
- data/docs/lib/ziya/charts/candle_stick.rb.html +45 -0
- data/docs/lib/ziya/charts/column.rb.html +45 -0
- data/docs/lib/ziya/charts/column_threed.rb.html +45 -0
- data/docs/lib/ziya/charts/custom.rb.html +54 -0
- data/docs/lib/ziya/charts/donut.rb.html +54 -0
- data/docs/lib/ziya/charts/floating_bar.rb.html +45 -0
- data/docs/lib/ziya/charts/floating_column.rb.html +45 -0
- data/docs/lib/ziya/charts/image_column.rb.html +54 -0
- data/docs/lib/ziya/charts/image_pie.rb.html +54 -0
- data/docs/lib/ziya/charts/line.rb.html +45 -0
- data/docs/lib/ziya/charts/mixed.rb.html +45 -0
- data/docs/lib/ziya/charts/parallel_threed_column.rb.html +45 -0
- data/docs/lib/ziya/charts/pie.rb.html +45 -0
- data/docs/lib/ziya/charts/pie_threed.rb.html +45 -0
- data/docs/lib/ziya/charts/polar.rb.html +45 -0
- data/docs/lib/ziya/charts/scatter.rb.html +45 -0
- data/docs/lib/ziya/charts/stacked_area.rb.html +45 -0
- data/docs/lib/ziya/charts/stacked_bar.rb.html +45 -0
- data/docs/lib/ziya/charts/stacked_column.rb.html +45 -0
- data/docs/lib/ziya/charts/stacked_threed_area.rb.html +45 -0
- data/docs/lib/ziya/charts/stacked_threed_column.rb.html +45 -0
- data/docs/lib/ziya/charts/support/area.rb.html +56 -0
- data/docs/lib/ziya/charts/support/axis_category.rb.html +407 -0
- data/docs/lib/ziya/charts/support/axis_ticks.rb.html +48 -0
- data/docs/lib/ziya/charts/support/axis_value.rb.html +48 -0
- data/docs/lib/ziya/charts/support/base.rb.html +64 -0
- data/docs/lib/ziya/charts/support/bevel.rb.html +48 -0
- data/docs/lib/ziya/charts/support/blur.rb.html +48 -0
- data/docs/lib/ziya/charts/support/button.rb.html +48 -0
- data/docs/lib/ziya/charts/support/chart_border.rb.html +48 -0
- data/docs/lib/ziya/charts/support/chart_grid_h.rb.html +48 -0
- data/docs/lib/ziya/charts/support/chart_grid_v.rb.html +48 -0
- data/docs/lib/ziya/charts/support/chart_guide.rb.html +48 -0
- data/docs/lib/ziya/charts/support/chart_label.rb.html +49 -0
- data/docs/lib/ziya/charts/support/chart_note.rb.html +53 -0
- data/docs/lib/ziya/charts/support/chart_pref.rb.html +48 -0
- data/docs/lib/ziya/charts/support/chart_rect.rb.html +48 -0
- data/docs/lib/ziya/charts/support/chart_transition.rb.html +48 -0
- data/docs/lib/ziya/charts/support/circle.rb.html +48 -0
- data/docs/lib/ziya/charts/support/context_menu.rb.html +47 -0
- data/docs/lib/ziya/charts/support/draw.rb.html +57 -0
- data/docs/lib/ziya/charts/support/draw_base.rb.html +48 -0
- data/docs/lib/ziya/charts/support/filter.rb.html +52 -0
- data/docs/lib/ziya/charts/support/flash_to_javascript.rb.html +48 -0
- data/docs/lib/ziya/charts/support/glow.rb.html +48 -0
- data/docs/lib/ziya/charts/support/image.rb.html +52 -0
- data/docs/lib/ziya/charts/support/legend.rb.html +48 -0
- data/docs/lib/ziya/charts/support/line.rb.html +48 -0
- data/docs/lib/ziya/charts/support/link.rb.html +48 -0
- data/docs/lib/ziya/charts/support/link_data.rb.html +48 -0
- data/docs/lib/ziya/charts/support/rect.rb.html +48 -0
- data/docs/lib/ziya/charts/support/scroll.rb.html +50 -0
- data/docs/lib/ziya/charts/support/series.rb.html +47 -0
- data/docs/lib/ziya/charts/support/series_color.rb.html +62 -0
- data/docs/lib/ziya/charts/support/series_explode.rb.html +65 -0
- data/docs/lib/ziya/charts/support/shadow.rb.html +48 -0
- data/docs/lib/ziya/charts/support/text.rb.html +51 -0
- data/docs/lib/ziya/charts/support/tooltip.rb.html +53 -0
- data/docs/lib/ziya/charts/support/update.rb.html +49 -0
- data/docs/lib/ziya/core_ext/string.rb.html +50 -0
- data/docs/lib/ziya/gauges/base.rb.html +54 -0
- data/docs/lib/ziya/gauges/radial.rb.html +64 -0
- data/docs/lib/ziya/gauges/signal.rb.html +49 -0
- data/docs/lib/ziya/gauges/support/area.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/base.rb.html +39 -0
- data/docs/lib/ziya/gauges/support/circle.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/design.rb.html +39 -0
- data/docs/lib/ziya/gauges/support/image.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/line.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/link.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/move.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/point.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/polygon.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/radial_base.rb.html +58 -0
- data/docs/lib/ziya/gauges/support/radial_numbers.rb.html +60 -0
- data/docs/lib/ziya/gauges/support/radial_ticks.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/rect.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/rotate.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/scale.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/text.rb.html +57 -0
- data/docs/lib/ziya/gauges/support/update.rb.html +57 -0
- data/docs/lib/ziya/gauges/thermo.rb.html +48 -0
- data/docs/lib/ziya/html_helpers.rb.html +39 -0
- data/docs/lib/ziya/html_helpers/base.rb.html +48 -0
- data/docs/lib/ziya/html_helpers/charts.rb.html +48 -0
- data/docs/lib/ziya/html_helpers/gauges.rb.html +48 -0
- data/docs/lib/ziya/html_helpers/maps.rb.html +39 -0
- data/docs/lib/ziya/maps/australia.rb.html +48 -0
- data/docs/lib/ziya/maps/base.rb.html +62 -0
- data/docs/lib/ziya/maps/belgium.rb.html +39 -0
- data/docs/lib/ziya/maps/brazil.rb.html +39 -0
- data/docs/lib/ziya/maps/canada.rb.html +39 -0
- data/docs/lib/ziya/maps/europe.rb.html +39 -0
- data/docs/lib/ziya/maps/france.rb.html +39 -0
- data/docs/lib/ziya/maps/geocode.rb.html +45 -0
- data/docs/lib/ziya/maps/germany.rb.html +39 -0
- data/docs/lib/ziya/maps/italy.rb.html +39 -0
- data/docs/lib/ziya/maps/mexico.rb.html +39 -0
- data/docs/lib/ziya/maps/support/arc.rb.html +48 -0
- data/docs/lib/ziya/maps/support/arc_color.rb.html +48 -0
- data/docs/lib/ziya/maps/support/arc_range.rb.html +48 -0
- data/docs/lib/ziya/maps/support/background_color.rb.html +48 -0
- data/docs/lib/ziya/maps/support/base.rb.html +48 -0
- data/docs/lib/ziya/maps/support/default_color.rb.html +48 -0
- data/docs/lib/ziya/maps/support/default_point.rb.html +48 -0
- data/docs/lib/ziya/maps/support/first_zoom.rb.html +48 -0
- data/docs/lib/ziya/maps/support/heat_range.rb.html +50 -0
- data/docs/lib/ziya/maps/support/hover.rb.html +48 -0
- data/docs/lib/ziya/maps/support/line.rb.html +48 -0
- data/docs/lib/ziya/maps/support/line_color.rb.html +48 -0
- data/docs/lib/ziya/maps/support/line_range.rb.html +48 -0
- data/docs/lib/ziya/maps/support/outline_color.rb.html +48 -0
- data/docs/lib/ziya/maps/support/point.rb.html +48 -0
- data/docs/lib/ziya/maps/support/point_range.rb.html +48 -0
- data/docs/lib/ziya/maps/support/range.rb.html +48 -0
- data/docs/lib/ziya/maps/support/ranges.rb.html +47 -0
- data/docs/lib/ziya/maps/support/region.rb.html +48 -0
- data/docs/lib/ziya/maps/support/scale_points.rb.html +48 -0
- data/docs/lib/ziya/maps/support/show_name.rb.html +48 -0
- data/docs/lib/ziya/maps/support/state.rb.html +48 -0
- data/docs/lib/ziya/maps/support/state_info_icon.rb.html +48 -0
- data/docs/lib/ziya/maps/support/zoom_mode.rb.html +48 -0
- data/docs/lib/ziya/maps/support/zoom_out_button.rb.html +48 -0
- data/docs/lib/ziya/maps/support/zoom_out_scale.rb.html +48 -0
- data/docs/lib/ziya/maps/sweden.rb.html +39 -0
- data/docs/lib/ziya/maps/uk.rb.html +39 -0
- data/docs/lib/ziya/maps/us.rb.html +39 -0
- data/docs/lib/ziya/maps/world.rb.html +39 -0
- data/docs/lib/ziya/utils/logger.rb.html +53 -0
- data/docs/lib/ziya/version.rb.html +39 -0
- data/docs/lib/ziya/yaml_helpers.rb.html +39 -0
- data/docs/lib/ziya/yaml_helpers/base.rb.html +48 -0
- data/docs/lib/ziya/yaml_helpers/charts.rb.html +50 -0
- data/docs/lib/ziya/yaml_helpers/gauges.rb.html +39 -0
- data/docs/lib/ziya/yaml_helpers/maps.rb.html +39 -0
- data/docs/rdoc.css +664 -0
- data/docs/release_notes.txt.html +51 -0
- data/docs/resources/charts/themes/readme.txt.html +61 -0
- data/docs/resources/maps/themes/readme.txt.html +61 -0
- data/examples/charts/basic_chart.rb +55 -0
- data/{charts → examples/charts/public/charts}/AC_RunActiveContent.js +0 -0
- data/examples/charts/public/charts/charts.swf +0 -0
- data/examples/charts/public/charts/charts_library/ar3d.swf +0 -0
- data/examples/charts/public/charts/charts_library/arno.swf +0 -0
- data/examples/charts/public/charts/charts_library/ars3.swf +0 -0
- data/examples/charts/public/charts/charts_library/arst.swf +0 -0
- data/examples/charts/public/charts/charts_library/brfl.swf +0 -0
- data/examples/charts/public/charts/charts_library/brno.swf +0 -0
- data/examples/charts/public/charts/charts_library/brst.swf +0 -0
- data/examples/charts/public/charts/charts_library/buno.swf +0 -0
- data/examples/charts/public/charts/charts_library/cl3d.swf +0 -0
- data/examples/charts/public/charts/charts_library/clfl.swf +0 -0
- data/examples/charts/public/charts/charts_library/clim.swf +0 -0
- data/examples/charts/public/charts/charts_library/clno.swf +0 -0
- data/examples/charts/public/charts/charts_library/clp3.swf +0 -0
- data/examples/charts/public/charts/charts_library/cls3.swf +0 -0
- data/examples/charts/public/charts/charts_library/clst.swf +0 -0
- data/examples/charts/public/charts/charts_library/cnno.swf +0 -0
- data/{charts → examples/charts/public/charts}/charts_library/dollar.jpg +0 -0
- data/examples/charts/public/charts/charts_library/dono.swf +0 -0
- data/examples/charts/public/charts/charts_library/lnno.swf +0 -0
- data/examples/charts/public/charts/charts_library/mxno.swf +0 -0
- data/examples/charts/public/charts/charts_library/pi3d.swf +0 -0
- data/{charts → examples/charts/public/charts}/charts_library/pie.jpg +0 -0
- data/examples/charts/public/charts/charts_library/piim.swf +0 -0
- data/examples/charts/public/charts/charts_library/pino.swf +0 -0
- data/examples/charts/public/charts/charts_library/pono.swf +0 -0
- data/examples/charts/public/charts/charts_library/scno.swf +0 -0
- data/examples/charts/public/charts/full_screen.fla +0 -0
- data/{charts → examples/charts/public/charts}/full_screen.swf +0 -0
- data/{charts → examples/charts/public/charts}/scripts/output_jpg.php +0 -0
- data/{charts → examples/charts/public/charts}/sliders/black.swf +0 -0
- data/{charts → examples/charts/public/charts}/sliders/preview_handle_1.swf +0 -0
- data/{charts → examples/charts/public/charts}/sliders/preview_handle_2.swf +0 -0
- data/examples/charts/public/charts/themes/cool_theme/column_chart.yml +150 -0
- data/examples/charts/public/charts/themes/cool_theme/line_chart.yml +5 -0
- data/examples/charts/public/charts/themes/readme.txt +13 -0
- data/examples/charts/public/fred.xml +21 -0
- data/examples/charts/views/index.erb +17 -0
- data/examples/maps/basic_map.rb +63 -0
- data/examples/maps/helpers/map_helper.rb +15 -0
- data/examples/maps/models/confidential_herpes_report.rb +78 -0
- data/examples/maps/public/javascripts/jquery-1.3.2.js +4376 -0
- data/examples/maps/public/map.xml +336 -0
- data/examples/maps/public/maps/js/Exception.js +45 -0
- data/examples/maps/public/maps/js/FlashProxy.js +72 -0
- data/examples/maps/public/maps/js/FlashSerializer.js +165 -0
- data/examples/maps/public/maps/js/FlashTag.js +111 -0
- data/examples/maps/public/maps/js/JavaScriptFlashGateway.js +455 -0
- data/examples/maps/public/maps/js/JavaScriptFlashGateway.swf +0 -0
- data/examples/maps/public/maps/map_library/australia.swf +0 -0
- data/examples/maps/public/maps/map_library/belgium.swf +0 -0
- data/examples/maps/public/maps/map_library/brazil.swf +0 -0
- data/examples/maps/public/maps/map_library/canada.swf +0 -0
- data/examples/maps/public/maps/map_library/europe.swf +0 -0
- data/examples/maps/public/maps/map_library/france.swf +0 -0
- data/examples/maps/public/maps/map_library/germany.swf +0 -0
- data/examples/maps/public/maps/map_library/italy.swf +0 -0
- data/examples/maps/public/maps/map_library/mexico.swf +0 -0
- data/examples/maps/public/maps/map_library/sweden.swf +0 -0
- data/examples/maps/public/maps/map_library/uk_ireland.swf +0 -0
- data/examples/maps/public/maps/map_library/us.swf +0 -0
- data/examples/maps/public/maps/map_library/us_canada.swf +0 -0
- data/examples/maps/public/maps/map_library/world.swf +0 -0
- data/examples/maps/public/maps/themes/default/base_map.yml +27 -0
- data/examples/maps/public/maps/themes/default/us_map.yml +20 -0
- data/examples/maps/public/maps/themes/default/us_map_2.yml +17 -0
- data/examples/maps/public/maps/themes/readme.txt +13 -0
- data/examples/maps/public/stylesheets/map.css +16 -0
- data/examples/maps/views/index.erb +26 -0
- data/examples/maps/views/layout.erb +21 -0
- data/gem_script.rb +5 -0
- data/lib/ziya.rb +20 -11
- data/lib/ziya/charts/base.rb +114 -90
- data/lib/ziya/{components → charts/support}/area.rb +2 -2
- data/lib/ziya/{components → charts/support}/axis_category.rb +1 -1
- data/lib/ziya/{components → charts/support}/axis_ticks.rb +1 -1
- data/lib/ziya/{components → charts/support}/axis_value.rb +1 -1
- data/lib/ziya/{components → charts/support}/base.rb +9 -21
- data/lib/ziya/{components → charts/support}/bevel.rb +1 -1
- data/lib/ziya/{components → charts/support}/blur.rb +1 -1
- data/lib/ziya/{components → charts/support}/button.rb +1 -1
- data/lib/ziya/{components → charts/support}/chart_border.rb +1 -1
- data/lib/ziya/{components → charts/support}/chart_grid_h.rb +1 -1
- data/lib/ziya/{components → charts/support}/chart_grid_v.rb +1 -1
- data/lib/ziya/{components → charts/support}/chart_guide.rb +1 -1
- data/lib/ziya/{components → charts/support}/chart_label.rb +1 -1
- data/lib/ziya/{components → charts/support}/chart_note.rb +1 -1
- data/lib/ziya/{components → charts/support}/chart_pref.rb +3 -2
- data/lib/ziya/{components → charts/support}/chart_rect.rb +1 -1
- data/lib/ziya/{components → charts/support}/chart_transition.rb +1 -1
- data/lib/ziya/{components → charts/support}/circle.rb +1 -1
- data/lib/ziya/{components → charts/support}/context_menu.rb +1 -3
- data/lib/ziya/charts/support/draw.rb +76 -0
- data/lib/ziya/{components → charts/support}/draw_base.rb +1 -1
- data/lib/ziya/{components → charts/support}/filter.rb +1 -1
- data/lib/ziya/charts/support/flash_to_javascript.rb +23 -0
- data/lib/ziya/{components → charts/support}/glow.rb +1 -1
- data/lib/ziya/{components → charts/support}/image.rb +1 -1
- data/lib/ziya/{components → charts/support}/legend.rb +1 -1
- data/lib/ziya/{components → charts/support}/line.rb +1 -1
- data/lib/ziya/{components → charts/support}/link.rb +9 -1
- data/lib/ziya/{components → charts/support}/link_data.rb +1 -1
- data/lib/ziya/{components → charts/support}/rect.rb +1 -1
- data/lib/ziya/{components → charts/support}/scroll.rb +1 -3
- data/lib/ziya/{components → charts/support}/series.rb +1 -3
- data/lib/ziya/{components → charts/support}/series_color.rb +1 -1
- data/lib/ziya/{components → charts/support}/series_explode.rb +1 -1
- data/lib/ziya/{components → charts/support}/shadow.rb +1 -1
- data/lib/ziya/{components → charts/support}/text.rb +9 -1
- data/lib/ziya/{components → charts/support}/tooltip.rb +1 -1
- data/lib/ziya/{components → charts/support}/update.rb +1 -1
- data/lib/ziya/core_ext/string.rb +31 -0
- data/lib/ziya/gauges/base.rb +17 -12
- data/lib/ziya/gauges/support/base.rb +4 -12
- data/lib/ziya/gauges/support/radial_numbers.rb +1 -1
- data/lib/ziya/html_helpers.rb +1 -0
- data/lib/ziya/html_helpers/base.rb +91 -0
- data/lib/ziya/html_helpers/charts.rb +200 -0
- data/lib/ziya/html_helpers/gauges.rb +90 -0
- data/lib/ziya/html_helpers/maps.rb +74 -0
- data/lib/ziya/maps/australia.rb +9 -0
- data/lib/ziya/maps/base.rb +409 -0
- data/lib/ziya/maps/belgium.rb +7 -0
- data/lib/ziya/maps/brazil.rb +7 -0
- data/lib/ziya/maps/canada.rb +7 -0
- data/lib/ziya/maps/europe.rb +7 -0
- data/lib/ziya/maps/france.rb +7 -0
- data/lib/ziya/maps/geocode.rb +18 -0
- data/lib/ziya/maps/germany.rb +7 -0
- data/lib/ziya/maps/italy.rb +7 -0
- data/lib/ziya/maps/mexico.rb +7 -0
- data/lib/ziya/maps/support/arc.rb +7 -0
- data/lib/ziya/maps/support/arc_color.rb +7 -0
- data/lib/ziya/maps/support/arc_range.rb +7 -0
- data/lib/ziya/maps/support/background_color.rb +7 -0
- data/lib/ziya/maps/support/base.rb +34 -0
- data/lib/ziya/maps/support/default_color.rb +7 -0
- data/lib/ziya/maps/support/default_point.rb +7 -0
- data/lib/ziya/maps/support/first_zoom.rb +7 -0
- data/lib/ziya/maps/support/heat_range.rb +35 -0
- data/lib/ziya/maps/support/hover.rb +7 -0
- data/lib/ziya/maps/support/line.rb +7 -0
- data/lib/ziya/maps/support/line_color.rb +7 -0
- data/lib/ziya/maps/support/line_range.rb +7 -0
- data/lib/ziya/maps/support/outline_color.rb +7 -0
- data/lib/ziya/maps/support/point.rb +8 -0
- data/lib/ziya/maps/support/point_range.rb +7 -0
- data/lib/ziya/maps/support/range.rb +31 -0
- data/lib/ziya/maps/support/ranges.rb +18 -0
- data/lib/ziya/maps/support/region.rb +7 -0
- data/lib/ziya/maps/support/scale_points.rb +7 -0
- data/lib/ziya/maps/support/show_name.rb +7 -0
- data/lib/ziya/maps/support/state.rb +7 -0
- data/lib/ziya/maps/support/state_info_icon.rb +7 -0
- data/lib/ziya/maps/support/zoom_mode.rb +7 -0
- data/lib/ziya/maps/support/zoom_out_button.rb +7 -0
- data/lib/ziya/maps/support/zoom_out_scale.rb +7 -0
- data/lib/ziya/maps/sweden.rb +7 -0
- data/lib/ziya/maps/uk.rb +7 -0
- data/lib/ziya/maps/us.rb +7 -0
- data/lib/ziya/maps/world.rb +7 -0
- data/lib/ziya/version.rb +3 -3
- data/lib/ziya/yaml_helpers.rb +1 -0
- data/lib/ziya/yaml_helpers/base.rb +20 -0
- data/lib/ziya/yaml_helpers/charts.rb +49 -0
- data/lib/ziya/yaml_helpers/gauges.rb +33 -0
- data/lib/ziya/yaml_helpers/maps.rb +17 -0
- data/resources/charts/AC_RunActiveContent.js +292 -0
- data/resources/charts/charts.swf +0 -0
- data/resources/charts/charts_library/ar3d.swf +0 -0
- data/resources/charts/charts_library/arno.swf +0 -0
- data/resources/charts/charts_library/ars3.swf +0 -0
- data/resources/charts/charts_library/arst.swf +0 -0
- data/resources/charts/charts_library/brfl.swf +0 -0
- data/resources/charts/charts_library/brno.swf +0 -0
- data/resources/charts/charts_library/brst.swf +0 -0
- data/resources/charts/charts_library/buno.swf +0 -0
- data/resources/charts/charts_library/cl3d.swf +0 -0
- data/resources/charts/charts_library/clfl.swf +0 -0
- data/resources/charts/charts_library/clim.swf +0 -0
- data/resources/charts/charts_library/clno.swf +0 -0
- data/resources/charts/charts_library/clp3.swf +0 -0
- data/resources/charts/charts_library/cls3.swf +0 -0
- data/resources/charts/charts_library/clst.swf +0 -0
- data/resources/charts/charts_library/cnno.swf +0 -0
- data/resources/charts/charts_library/dono.swf +0 -0
- data/resources/charts/charts_library/lnno.swf +0 -0
- data/resources/charts/charts_library/mxno.swf +0 -0
- data/resources/charts/charts_library/pi3d.swf +0 -0
- data/resources/charts/charts_library/piim.swf +0 -0
- data/resources/charts/charts_library/pino.swf +0 -0
- data/resources/charts/charts_library/pono.swf +0 -0
- data/resources/charts/charts_library/scno.swf +0 -0
- data/resources/charts/full_screen.fla +0 -0
- data/resources/charts/full_screen.swf +0 -0
- data/resources/charts/scripts/output_jpg.php +23 -0
- data/resources/charts/sliders/black.swf +0 -0
- data/resources/charts/sliders/preview_handle_1.swf +0 -0
- data/resources/charts/sliders/preview_handle_2.swf +0 -0
- data/resources/charts/themes/readme.txt +13 -0
- data/{gauges → resources/gauges}/designs/circle.yml +0 -0
- data/{gauges → resources/gauges}/designs/signal.yml +0 -0
- data/{gauges → resources/gauges}/designs/thermo.yml +0 -0
- data/{gauges → resources/gauges}/designs/title.yml +0 -0
- data/{gauges → resources/gauges}/gauge.swf +0 -0
- data/resources/maps/js/Exception.js +45 -0
- data/resources/maps/js/FlashProxy.js +72 -0
- data/resources/maps/js/FlashSerializer.js +165 -0
- data/resources/maps/js/FlashTag.js +111 -0
- data/resources/maps/js/JavaScriptFlashGateway.js +455 -0
- data/resources/maps/js/JavaScriptFlashGateway.swf +0 -0
- data/resources/maps/map_library/australia.swf +0 -0
- data/resources/maps/map_library/belgium.swf +0 -0
- data/resources/maps/map_library/brazil.swf +0 -0
- data/resources/maps/map_library/canada.swf +0 -0
- data/resources/maps/map_library/europe.swf +0 -0
- data/resources/maps/map_library/france.swf +0 -0
- data/resources/maps/map_library/germany.swf +0 -0
- data/resources/maps/map_library/italy.swf +0 -0
- data/resources/maps/map_library/mexico.swf +0 -0
- data/resources/maps/map_library/sweden.swf +0 -0
- data/resources/maps/map_library/uk_ireland.swf +0 -0
- data/resources/maps/map_library/us.swf +0 -0
- data/resources/maps/map_library/us_canada.swf +0 -0
- data/resources/maps/map_library/world.swf +0 -0
- data/resources/maps/themes/readme.txt +13 -0
- data/spec/charts/base_spec.rb +7 -6
- data/spec/charts/chart_type_spec.rb +11 -4
- data/spec/{components → charts/support}/area_spec.rb +8 -8
- data/spec/charts/support/chart_pref_spec.rb +36 -0
- data/spec/charts/support/draw_spec.rb +41 -0
- data/spec/{components → charts/support}/filter_spec.rb +6 -6
- data/spec/{components → charts/support}/link_spec.rb +6 -6
- data/spec/{components → charts/support}/series.rb +4 -4
- data/spec/{components → charts/support}/series_color_spec.rb +4 -4
- data/spec/{components → charts/support}/series_explode.rb +4 -4
- data/spec/{components → charts/support}/series_explode_spec.rb +4 -4
- data/spec/core_ext/string_spec.rb +40 -0
- data/spec/gauges/base_spec.rb +1 -1
- data/spec/html_helpers/base_spec.rb +50 -0
- data/spec/html_helpers/charts_spec.rb +23 -0
- data/spec/html_helpers/gauges_spec.rb +16 -0
- data/spec/html_helpers/maps_spec.rb +20 -0
- data/spec/maps/base_spec.rb +82 -0
- data/spec/maps/support/default_color_spec.rb +29 -0
- data/spec/maps/support/heat_range_spec.rb +29 -0
- data/spec/maps/us_spec.rb +12 -0
- data/spec/maps/world_spec.rb +18 -0
- data/spec/spec_helper.rb +5 -4
- data/spec/themes/maps/base_map.yml +81 -0
- data/spec/themes/maps/us_map.yml +6 -0
- data/spec/themes/maps/world_map.yml +6 -0
- data/spec/themes/maps/world_ov_map.yml +6 -0
- data/spec/{helpers/base_helper_spec.rb → yaml_helpers/charts_spec.rb} +10 -13
- data/spec/yaml_helpers/gauges_spec.rb +15 -0
- data/spec/ziya_helper_spec.rb +118 -116
- data/tasks/doc.rake +12 -7
- data/tasks/gem.rake +1 -1
- data/tasks/setup.rb +1 -1
- data/ziya.gemspec +40 -0
- metadata +582 -94
- data/charts/charts.swf +0 -0
- data/charts/charts_library/ar3d.swf +0 -0
- data/charts/charts_library/arno.swf +0 -0
- data/charts/charts_library/ars3.swf +0 -0
- data/charts/charts_library/arst.swf +0 -0
- data/charts/charts_library/brfl.swf +0 -0
- data/charts/charts_library/brno.swf +0 -0
- data/charts/charts_library/brst.swf +0 -0
- data/charts/charts_library/buno.swf +0 -0
- data/charts/charts_library/cl3d.swf +0 -0
- data/charts/charts_library/clfl.swf +0 -0
- data/charts/charts_library/clim.swf +0 -0
- data/charts/charts_library/clno.swf +0 -0
- data/charts/charts_library/clp3.swf +0 -0
- data/charts/charts_library/cls3.swf +0 -0
- data/charts/charts_library/clst.swf +0 -0
- data/charts/charts_library/cnno.swf +0 -0
- data/charts/charts_library/dono.swf +0 -0
- data/charts/charts_library/lnno.swf +0 -0
- data/charts/charts_library/mxno.swf +0 -0
- data/charts/charts_library/pi3d.swf +0 -0
- data/charts/charts_library/piim.swf +0 -0
- data/charts/charts_library/pino.swf +0 -0
- data/charts/charts_library/pono.swf +0 -0
- data/charts/charts_library/scno.swf +0 -0
- data/charts/ziya.js +0 -66
- data/lib/ziya/components/draw.rb +0 -47
- data/lib/ziya/helpers/base_helper.rb +0 -91
- data/lib/ziya/utils/text.rb +0 -39
- data/lib/ziya/ziya_helper.rb +0 -354
- data/spec/components/draw_spec.rb +0 -32
- data/spec/utils/text_spec.rb +0 -33
@@ -0,0 +1,50 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
+
<head>
|
7
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
8
|
+
|
9
|
+
<title>: </title>
|
10
|
+
|
11
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
|
12
|
+
|
13
|
+
</head>
|
14
|
+
<body class="file">
|
15
|
+
|
16
|
+
<div id="metadata">
|
17
|
+
<dl>
|
18
|
+
<dt class="modified-date">Last Modified</dt>
|
19
|
+
<dd class="modified-date">Sat Oct 25 09:17:59 -0600 2008</dd>
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
</dl>
|
25
|
+
|
26
|
+
<div class="description">
|
27
|
+
<h2>Description</h2>
|
28
|
+
<h2>1.0.0 / 2008-03-01</h2>
|
29
|
+
<ul>
|
30
|
+
<li>1 major enhancement
|
31
|
+
|
32
|
+
<ul>
|
33
|
+
<li>Birthday!
|
34
|
+
|
35
|
+
</li>
|
36
|
+
</ul>
|
37
|
+
</li>
|
38
|
+
</ul>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="validator-badges">
|
44
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
45
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
46
|
+
Rdoc Generator</a></small>.</p>
|
47
|
+
</div>
|
48
|
+
</body>
|
49
|
+
</html>
|
50
|
+
|
@@ -0,0 +1,403 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
+
<head>
|
7
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
8
|
+
|
9
|
+
<title>: </title>
|
10
|
+
|
11
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
|
12
|
+
|
13
|
+
</head>
|
14
|
+
<body class="file">
|
15
|
+
|
16
|
+
<div id="metadata">
|
17
|
+
<dl>
|
18
|
+
<dt class="modified-date">Last Modified</dt>
|
19
|
+
<dd class="modified-date">Wed Sep 16 09:43:42 -0600 2009</dd>
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
</dl>
|
25
|
+
|
26
|
+
<div class="description">
|
27
|
+
<h2>Description</h2>
|
28
|
+
<h3>ZiYa</h3>
|
29
|
+
<pre>
|
30
|
+
by Fernand Galiana
|
31
|
+
git://github.com/derailed/ziya.git
|
32
|
+
</pre>
|
33
|
+
<h2>RELEASES</h2>
|
34
|
+
<pre>
|
35
|
+
2.0.0 - Added support for XML/SWF 5.02
|
36
|
+
2.0.1 - Additional support for 5.02 + Added donut chart from 5.03
|
37
|
+
2.0.2 - Changed logging required to 0.9.X - Update to xml/swf 5.0.4
|
38
|
+
2.0.3 - README file update - Thanks to Paul James !
|
39
|
+
2.0.4 - Fixed missing encoding on composite urls - published gem on github
|
40
|
+
2.0.5 - Fixed merb app support issue
|
41
|
+
2.0.6 - Updates to support xml/swf 5.0.5
|
42
|
+
2.0.7 - Updates to support xm/swf 5.0.7
|
43
|
+
- added parameters for the ziya_js helpers ( Tx Brian ! )
|
44
|
+
- added draw button support
|
45
|
+
- added chart_note to annotate a chart
|
46
|
+
- added tooltip chart support
|
47
|
+
2.0.8 - Patches to xml/swf/5.0.7 - scroller handle fixe + Stoppped_Scolling js callback
|
48
|
+
- added support for flash_to_javascript callbacks
|
49
|
+
- added support ids in composite charts
|
50
|
+
- various bug fixes
|
51
|
+
2.1.0 - Refactor some of the underlying ziya code
|
52
|
+
- Beef up test suite
|
53
|
+
- changed component tree
|
54
|
+
- Added geographical maps support
|
55
|
+
- Changed the default ziyafy to install charts only by default
|
56
|
+
Run ziyafy --help for the various options
|
57
|
+
- Changed add( :composites, ... ) call to take in a hash of hash instead of id/url pair.
|
58
|
+
So the correct call is now of the form chart.add( :composites, :id => { :url => ... } )
|
59
|
+
You can now add extra attributes that will be passed to the generated image component.
|
60
|
+
2.1.4 - Added support for xm/swf 5.0.8
|
61
|
+
- Removed dependency on logging gem version
|
62
|
+
2.1.5 - Added ability to enhance draw and link components in subsequent stylesheets. The old
|
63
|
+
behavior was to simply override the whole component. Now you can keep enhancing these components
|
64
|
+
in higher level stylesheets.
|
65
|
+
</pre>
|
66
|
+
<h2>DESCRIPTION:</h2>
|
67
|
+
<p>
|
68
|
+
ZiYa allows you to easily create interactive charts, gauges and maps for
|
69
|
+
your web applications. ZiYa leverages flash which offload heavy server side
|
70
|
+
processing to the client. At the root ZiYa allows you to easily generate an
|
71
|
+
XML files that will be downloaded to the client for rendering. Using this
|
72
|
+
gem, you will be able to easily create great looking charts for your
|
73
|
+
application. You will also be able to use the charts, gauges and maps has a
|
74
|
+
navigation scheme by embedding various link in the graphical components
|
75
|
+
thus bringing to the table an ideal scheme for reporting and dashboard like
|
76
|
+
applications. Your manager will love you for it !!
|
77
|
+
</p>
|
78
|
+
<pre>
|
79
|
+
Blog Site : http://ziya.liquidrail.com
|
80
|
+
Documentation : http://ziya.liquidrail.com/docs
|
81
|
+
Forum : http://groups.google.com/group/ziya-plugin
|
82
|
+
Repositories : git://github.com/derailed/ziya.git
|
83
|
+
</pre>
|
84
|
+
<h2>FEATURES:</h2>
|
85
|
+
<ul>
|
86
|
+
<li>Supports a wide variety of chart/gauge types, sure to fit your needs.
|
87
|
+
|
88
|
+
</li>
|
89
|
+
<li>Geographical maps. Maps can be drillable and refreshable
|
90
|
+
|
91
|
+
</li>
|
92
|
+
<li>Relieves your server load by generating the actual chart on the client
|
93
|
+
side.
|
94
|
+
|
95
|
+
</li>
|
96
|
+
<li>Provides for cascading like css-styles for your charts using YAML files.
|
97
|
+
|
98
|
+
</li>
|
99
|
+
<li>Themes support. You can change the appearance and behavior of any charts by
|
100
|
+
introducing new themes
|
101
|
+
|
102
|
+
</li>
|
103
|
+
</ul>
|
104
|
+
<h2>REQUIREMENTS:</h2>
|
105
|
+
<pre>
|
106
|
+
ZiYa depends on the following gems
|
107
|
+
|
108
|
+
* logging
|
109
|
+
* color
|
110
|
+
|
111
|
+
ZiYa comes pre-bundled with the following packages:
|
112
|
+
* XML/SWF charts Version 5.07 (http://www.maani.us/xml_charts/index.php)
|
113
|
+
* XML/SWF gauges Version 1.6 (http://www.maani.us/gauge/index.php)
|
114
|
+
* DIY Maps (http://backspace.com/mapapp/)
|
115
|
+
|
116
|
+
XML/SWF
|
117
|
+
* XML/SWF charts are free of charge unless you need to use special features such
|
118
|
+
as embedded links and printing.
|
119
|
+
|
120
|
+
The package cost $45 per domain, including localhost and is well worth the investment.
|
121
|
+
A similar fee applies to the gauge framework.
|
122
|
+
|
123
|
+
DIY Map
|
124
|
+
* This package is free for use in non-commercial applications. For commercial applications,
|
125
|
+
there is a $20.00 license per domain. I have chosen this package over others, as it supports
|
126
|
+
the interaction and configuration I was looking for, it seems stable and packs lots of features
|
127
|
+
for a reasonable price.
|
128
|
+
</pre>
|
129
|
+
<h2>INSTALL:</h2>
|
130
|
+
<pre>
|
131
|
+
NOTE: You will need to add github as a gem source and thus will need gem version 1.3 or later
|
132
|
+
|
133
|
+
> gem sources -a http://gems.github.com
|
134
|
+
|
135
|
+
> sudo gem install derailed-ziya
|
136
|
+
|
137
|
+
cd to your application directory and issue the following command
|
138
|
+
|
139
|
+
> ziyafy --charts
|
140
|
+
|
141
|
+
This will copy the necessary themes and flash files to run ZiYa in your application
|
142
|
+
public/charts directory. You can install maps and gauges components as well. Type in
|
143
|
+
|
144
|
+
> ziyafy --help
|
145
|
+
|
146
|
+
To see all available options.
|
147
|
+
</pre>
|
148
|
+
<h2>SYNOPSIS:</h2>
|
149
|
+
<pre>
|
150
|
+
This gem version requires a client update to flash 9.0 and possibly you will
|
151
|
+
need to get a new license from XML/SWF >= 5.0, if you want to use
|
152
|
+
advanced features suck as links and live updates.
|
153
|
+
</pre>
|
154
|
+
<h2>Creating a ZiYa chart in a Rails 2.3 application</h2>
|
155
|
+
<pre>
|
156
|
+
1 - Create a ziya.rb file under config/initializers
|
157
|
+
|
158
|
+
ziya.rb:
|
159
|
+
|
160
|
+
# Pull in the ZiYa gem framework
|
161
|
+
gem 'derailed-ziya', '= 2.1.0'
|
162
|
+
require 'ziya'
|
163
|
+
|
164
|
+
# Initializes the ZiYa Framework
|
165
|
+
Ziya.initialize(
|
166
|
+
:logger => RAILS_DEFAULT_LOGGER,
|
167
|
+
:themes_dir => File.join( File.dirname(__FILE__), %w[.. .. public charts themes])
|
168
|
+
)
|
169
|
+
|
170
|
+
This will initialize the gem. You can log the output to stdout using the ZiYa bundled logger
|
171
|
+
or specify a file ie File.join( File.dirname(__FILE__), %w[.. log ziya.log]. If you choose to use the
|
172
|
+
ZiYa logger, you can specify the :log_level option to either :warn :info :debug or :error.
|
173
|
+
You will need to specify your themes directory typically located under public/charts/themes or any location
|
174
|
+
you'll like to choose.
|
175
|
+
|
176
|
+
3 - Create a chart controller
|
177
|
+
|
178
|
+
blee_controller.rb:
|
179
|
+
|
180
|
+
class BleeController < ApplicationController
|
181
|
+
# Load ZiYa necessary helpers
|
182
|
+
helper Ziya::HtmlHelpers::Charts
|
183
|
+
helper Ziya::YamlHelpers::Charts
|
184
|
+
|
185
|
+
# Callback from the flash movie to get the chart's data
|
186
|
+
def load_chart
|
187
|
+
# Create a bar chart with 2 series composed of 3 data points each.
|
188
|
+
# Chart will be rendered using the default look and feel
|
189
|
+
chart = Ziya::Charts::Bar.new
|
190
|
+
chart.add( :axis_category_text, %w[2006 2007 2008] )
|
191
|
+
chart.add( :series, "Dogs", [10,20,30] )
|
192
|
+
chart.add( :series, "Cats", [5,15,25] )
|
193
|
+
respond_to do |fmt|
|
194
|
+
fmt.xml { render :xml => chart.to_xml }
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
4 - Create a view
|
199
|
+
|
200
|
+
blee/index.html.erb:
|
201
|
+
|
202
|
+
# Defines the necessary tag to embed a flash movie in your html page.
|
203
|
+
# This will callback to your controller to fetch the necessary xml.
|
204
|
+
<%= ziya_chart load_chart_url -%>
|
205
|
+
|
206
|
+
5 - Create a named route
|
207
|
+
|
208
|
+
config/routes.rb:
|
209
|
+
|
210
|
+
map.load_chart '/blee/load_chart', :controller => 'blee', :action => 'load_chart'
|
211
|
+
</pre>
|
212
|
+
<h2>Styling a chart</h2>
|
213
|
+
<h3>Basic Theme</h3>
|
214
|
+
<pre>
|
215
|
+
1 - Create a directory fred in public/charts/themes
|
216
|
+
2 - Create a file called column_chart.yml under the fred directory
|
217
|
+
2 - Edit column_chart.yml and add the following lines mind the yaml 2 space indentation!
|
218
|
+
|
219
|
+
<%= chart :column %>
|
220
|
+
<%=comp :axis_category %>
|
221
|
+
color: ff0000
|
222
|
+
|
223
|
+
3 - In fred_controller add the following directive to the chart to associate your new theme with the chart
|
224
|
+
|
225
|
+
chart.add( :theme, 'fred' )
|
226
|
+
|
227
|
+
4 - reload the page and you should now see the red x axis label
|
228
|
+
</pre>
|
229
|
+
<h3>Cascading themes</h3>
|
230
|
+
<pre>
|
231
|
+
To override the default column chart theme, you may now create an instance theme.
|
232
|
+
|
233
|
+
1 - Create fred.yml in public/chart/themes/fred
|
234
|
+
|
235
|
+
2 - Edit fred.yml as follows
|
236
|
+
|
237
|
+
<%= chart :column %>
|
238
|
+
<%=comp :axis_category %>
|
239
|
+
color: 00ff00
|
240
|
+
|
241
|
+
3 - Edit your controller to indicate the instance theme name
|
242
|
+
|
243
|
+
chart = Ziya::Charts.Column.new( nil, 'fred' )
|
244
|
+
|
245
|
+
4 - Reload the page - The x axis category labels should now be green.
|
246
|
+
|
247
|
+
NOTE: There are lots of setup example for themes in the ziya-galeria app at
|
248
|
+
git://github.com/derailed/ziya-galeria.git.
|
249
|
+
The themes component follows the xml/swf xml settings for configuration which
|
250
|
+
are documented here http://www.maani.us/xml_charts/index.php?menu=Reference
|
251
|
+
</pre>
|
252
|
+
<h3>Using theme helpers</h3>
|
253
|
+
<pre>
|
254
|
+
Just like rails view template helpers, ZiYa support helpers for theme stylesheets.
|
255
|
+
In order to use a helper for your chart you will need to use the following steps:
|
256
|
+
|
257
|
+
1 - Create a ziya directory under app/helpers
|
258
|
+
2 - Create a file called fred_helper.rb
|
259
|
+
3 - Edit fred_helper.rb and add the following lines
|
260
|
+
|
261
|
+
module Ziya::FredHelper
|
262
|
+
def random_color
|
263
|
+
%w[ffaa00 aaff00 aabbff][rand(3)]
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
4 - Edit you theme stylesheet to call the helper method
|
268
|
+
|
269
|
+
In fred.yml
|
270
|
+
|
271
|
+
<%= chart :column %>
|
272
|
+
<%=comp :axis_category %>
|
273
|
+
color: <%= random_color %>
|
274
|
+
|
275
|
+
5 - Edit you config/initializer/ziya.rb and add the following line
|
276
|
+
|
277
|
+
# Initializes the ZiYa Framework
|
278
|
+
Ziya.initialize( :logger => RAILS_DEFAULT_LOGGER,
|
279
|
+
:helpers_dir => File.join( File.dirname(__FILE__), %w[.. .. app helpers ziya] ), # <-- New line !!
|
280
|
+
:themes_dir => File.join( File.dirname(__FILE__), %w[.. .. public charts themes])
|
281
|
+
)
|
282
|
+
|
283
|
+
6 - Restart your app server
|
284
|
+
7 - Reload the page serveral time and watch the x axis label color change
|
285
|
+
</pre>
|
286
|
+
<h2>Creating a gauge for a rails application</h2>
|
287
|
+
<pre>
|
288
|
+
You will need to modify the ziya initializer and add the following directive
|
289
|
+
|
290
|
+
Ziya.initialize(
|
291
|
+
:logger => RAILS_DEFAULT_LOGGER,
|
292
|
+
:designs_dir => File.join( File.dirname(__FILE__), %w[.. .. public gauges designs] ), # => Add this !!
|
293
|
+
:themes_dir => File.join( File.dirname(__FILE__), %w[.. .. public charts themes]) )
|
294
|
+
|
295
|
+
* fred_controller.rb
|
296
|
+
|
297
|
+
class FredController < ApplicationController
|
298
|
+
def load_gauge
|
299
|
+
gauge = Ziya::Gauges::Base.new( LICENCE_KEY, 'my_gauge' )
|
300
|
+
respond_to do |fmt|
|
301
|
+
fmt.xml => { render :xml => gauge.to_xml }
|
302
|
+
end
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
* fred/index.html.erb
|
307
|
+
|
308
|
+
<%= ziya_gauge load_gauge_url -%>
|
309
|
+
|
310
|
+
* config/routes.rb
|
311
|
+
|
312
|
+
# Creates a named route for the chart.
|
313
|
+
map.load_gauge '/fred/load_gauge', :controller => 'fred', :action => 'load_gauge'
|
314
|
+
|
315
|
+
* public/gauges/designs/my_gauge.yml
|
316
|
+
|
317
|
+
In the design file you will leverage the components defined in the Ziya::Gauges::Support
|
318
|
+
package to create your gauge desgins. You gauges can be animated using rotate, scale and
|
319
|
+
move operations. In this example we will create a volume control that will rotate to the
|
320
|
+
desired position. In real life you will fetch the volume level from your models to
|
321
|
+
set the desired position. Take a look at the ZiYa sample application for the various
|
322
|
+
possibilities. You can think of a gauge as a portable canvas element where you can draw
|
323
|
+
you own designs using the various components provided ZiYa components ( No need to worry about
|
324
|
+
various browsers' canvas support )
|
325
|
+
|
326
|
+
<%= gauge :base %>
|
327
|
+
# specifies the number of ticks to draw in a circular fashion
|
328
|
+
<%= dial :radial_ticks, :volume %>
|
329
|
+
x: 100
|
330
|
+
y: 75
|
331
|
+
radius: 35
|
332
|
+
length: 4
|
333
|
+
start_angle: 235
|
334
|
+
end_angle: 485
|
335
|
+
ticks: 10
|
336
|
+
thickness: 2
|
337
|
+
color: 000000
|
338
|
+
# rotates the volume to the desired position.
|
339
|
+
<%= dial :rotate, :volume_setting %>
|
340
|
+
x: 100
|
341
|
+
y: 75
|
342
|
+
start: 300
|
343
|
+
span: 160
|
344
|
+
step: 5
|
345
|
+
skake_span: 20
|
346
|
+
shadow_alpha: 20
|
347
|
+
shadow_x_offset: 3
|
348
|
+
shadow_y_offset: 3
|
349
|
+
<%= dials %>
|
350
|
+
<%= dial :circle, :circle_1 %>
|
351
|
+
x: 100
|
352
|
+
y: 75
|
353
|
+
radius: 30
|
354
|
+
fill_color: 777777
|
355
|
+
line_thickness: 5
|
356
|
+
line_alpha: 75
|
357
|
+
<%= dial :circle, :circle_2 %>
|
358
|
+
x: 100
|
359
|
+
y: 55
|
360
|
+
radius: 5
|
361
|
+
fill_alpha: 80
|
362
|
+
</pre>
|
363
|
+
<h2>LICENSE:</h2>
|
364
|
+
<p>
|
365
|
+
(The MIT License)
|
366
|
+
</p>
|
367
|
+
<p>
|
368
|
+
Copyright © 2008 FIXME (different license?)
|
369
|
+
</p>
|
370
|
+
<p>
|
371
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
372
|
+
copy of this software and associated documentation files (the
|
373
|
+
‘Software’), to deal in the Software without restriction,
|
374
|
+
including without limitation the rights to use, copy, modify, merge,
|
375
|
+
publish, distribute, sublicense, and/or sell copies of the Software, and to
|
376
|
+
permit persons to whom the Software is furnished to do so, subject to the
|
377
|
+
following conditions:
|
378
|
+
</p>
|
379
|
+
<p>
|
380
|
+
The above copyright notice and this permission notice shall be included in
|
381
|
+
all copies or substantial portions of the Software.
|
382
|
+
</p>
|
383
|
+
<p>
|
384
|
+
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND,
|
385
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
386
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
387
|
+
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
388
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
389
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
390
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
391
|
+
</p>
|
392
|
+
|
393
|
+
</div>
|
394
|
+
</div>
|
395
|
+
|
396
|
+
<div id="validator-badges">
|
397
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
398
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
399
|
+
Rdoc Generator</a></small>.</p>
|
400
|
+
</div>
|
401
|
+
</body>
|
402
|
+
</html>
|
403
|
+
|