yui-rails-asset 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +21 -0
- data/README +17 -0
- data/lib/yui/rails.rb +29 -0
- data/lib/yui/rails/engine.rb +10 -0
- data/lib/yui/rails/version.rb +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation-debug.js +1396 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation-min.js +23 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation.js +1392 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/ajax-loader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/asc.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/autocomplete.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/back-h.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/back-v.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bar-h.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bar-v.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bg-h.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bg-v.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/blankimage.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/button.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/calendar.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/carousel.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check0.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check2.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/colorpicker.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/container.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/datatable.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/desc.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/dt-arrow-dn.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/dt-arrow-up.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-knob.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-sprite-active.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-sprite.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor.css +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/header_background.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/hue_bg.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/imagecropper.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/layout.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/layout_sprite.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/logger.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu-button-arrow-disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu-button-arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menubaritem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menubaritem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_checkbox.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_checkbox_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/paginator.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/picker_mask.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/profilerviewer.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/progressbar.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/resize.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/simpleeditor.css +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/skin.css +36 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/slider.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-active.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-focus.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-hover.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/sprite.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/sprite.psd +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/tabview.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview-loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview-sprite.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/wait.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/yuitest.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/autocomplete-core.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/skins/sam/autocomplete-skin.css +57 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/skins/sam/autocomplete.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete-debug.js +3009 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete-min.js +12 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete.js +2966 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/base/base-min.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/base/base.css +131 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/button-core.css +44 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/button-skin.css +219 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/button.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/menu-button-arrow-disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/menu-button-arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-active.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-focus.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-hover.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/button-debug.js +4694 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/button-min.js +11 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/button.js +4633 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calendar-core.css +132 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calendar.css +320 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calgrad.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/callt.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calrt.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calx.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/skins/sam/calendar-skin.css +361 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/skins/sam/calendar.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar-debug.js +7324 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar-min.js +18 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar.js +7294 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/ajax-loader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/carousel-core.css +88 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/ajax-loader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/carousel-skin.css +142 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/carousel.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel-debug.js +4390 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel-min.js +12 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel.js +4349 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/charts/assets/charts.swf +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts-debug.js +2061 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts.js +2060 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/colorpicker-core.css +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/hue_thumb.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/picker_mask.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/picker_thumb.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/colorpicker-skin.css +105 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/colorpicker.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/hue_bg.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/picker_mask.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker-debug.js +1783 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker.js +1763 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection-debug.js +1576 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection.js +1546 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection.swf +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core-debug.js +980 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core.js +957 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/alrt16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/blck16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/close12_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/container-core.css +176 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/container.css +324 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/hlp16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/info16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/skins/sam/container-skin.css +242 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/skins/sam/container.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/tip16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/warn16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container-debug.js +9076 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container-min.js +19 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container.js +9052 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core-debug.js +5136 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core-min.js +14 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core.js +5126 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie-debug.js +482 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie.js +482 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource-debug.js +3067 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource-min.js +12 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource.js +2996 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/datatable-core.css +93 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/datatable.css +49 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/datatable-skin.css +240 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/datatable.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/dt-arrow-dn.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/dt-arrow-up.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable-debug.js +17360 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable-min.js +29 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable.js +17122 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath-debug.js +408 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath.js +408 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom-debug.js +1872 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom.js +1832 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop-debug.js +3710 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop.js +3601 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/editor-core.css +602 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/simpleeditor-core.css +602 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/blankimage.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-knob.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-skin.css +711 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-sprite-active.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-sprite.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor.css +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/simpleeditor-skin.css +711 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/simpleeditor.css +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor-debug.js +9557 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor-min.js +30 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor.js +9447 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor-debug.js +7493 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor-min.js +24 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor.js +7406 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate-debug.js +141 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate.js +138 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element/element-debug.js +1106 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element/element-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element/element.js +1090 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate-debug.js +283 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate.js +281 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter-debug.js +219 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter.js +219 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate-debug.js +622 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate.js +622 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event/event-debug.js +2524 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event/event-min.js +11 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event/event.js +2500 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/fonts/fonts-min.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/fonts/fonts.css +56 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/get/get-debug.js +773 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/get/get-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/get/get.js +755 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/grids/grids-min.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/grids/grids.css +467 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/history/assets/blank.html +1 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/history/history-debug.js +808 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/history/history-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/history/history.js +808 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/imagecropper-core.css +33 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/skins/sam/imagecropper-skin.css +16 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/skins/sam/imagecropper.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper-debug.js +907 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper.js +889 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader-debug.js +487 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader.js +481 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/json/json-debug.js +538 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/json/json-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/json/json.js +538 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/layout-core.css +158 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout-skin.css +207 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout_sprite.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout-debug.js +2305 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout-min.js +11 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout.js +2290 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/logger-core.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/logger.css +57 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/skins/sam/logger-skin.css +55 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/skins/sam/logger.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger-debug.js +2104 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger.js +2104 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu-core.css +242 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu.css +503 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_down_arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_down_arrow_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_up_arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_up_arrow_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator_selected.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox_selected.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator_selected.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menu-skin.css +339 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menu.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menubaritem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menubaritem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_checkbox.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_checkbox_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu-debug.js +9870 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu-min.js +16 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu.js +9823 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/paginator-core.css +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/skins/sam/paginator-skin.css +78 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/skins/sam/paginator.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator-debug.js +2393 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator.js +2393 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler-debug.js +557 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler.js +557 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/profilerviewer-core.css +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/asc.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/desc.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/header_background.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/profilerviewer-skin.css +167 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/profilerviewer.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/wait.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer-debug.js +1229 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer.js +1192 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/progressbar-core.css +85 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/back-h.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/back-v.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/bar-h.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/bar-v.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/progressbar-skin.css +56 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/progressbar.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar-debug.js +691 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar.js +677 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/reset-fonts-grids/reset-fonts-grids.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/reset-fonts/reset-fonts.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/reset/reset-min.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/reset/reset.css +142 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/resize-core.css +173 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/layout_sprite.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/resize-skin.css +142 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/resize.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize-debug.js +1749 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize.js +1689 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector-debug.js +651 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector.js +644 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-fader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-h.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-v-e.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-v.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/left-thumb.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/right-thumb.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/bg-h.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/bg-v.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/slider-skin.css +24 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/slider.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/slider-core.css +17 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/slider-skin.css +20 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-bar.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-e.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-fader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-n.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-s.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-w.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider-debug.js +2114 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider.js +2068 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage-debug.js +1185 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage.js +1183 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet-debug.js +648 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet.js +645 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf-debug.js +269 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf.js +268 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect-debug.js +93 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect.js +93 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swf.js +238 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore-debug.js +470 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore.js +453 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore.swf +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/border_tabs.css +54 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skin-sam.css +77 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skins/sam/tabview-skin.css +186 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skins/sam/tabview.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/tabview-core.css +133 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/tabview.css +77 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview-debug.js +995 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview.js +987 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check0.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check2.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-skin.css +249 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-sprite.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/treeview-core.css +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview-debug.js +4058 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview-min.js +12 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview.js +3989 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/uploader/assets/uploader.swf +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader-debug.js +1072 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader-min.js +15 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader.js +1069 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/utilities/utilities.js +39 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yahoo-dom-event/yahoo-dom-event.js +14 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo-debug.js +1075 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo.js +1075 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader-dom-event/yuiloader-dom-event.js +17 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader-debug.js +3879 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader.js +3879 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/skins/sam/yuitest-skin.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/skins/sam/yuitest.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/testlogger.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/yuitest-core.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest-debug.js +2741 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest.js +2741 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core-debug.js +1976 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core.js +1976 -0
- metadata +470 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
|
3
|
+
Code licensed under the BSD License:
|
4
|
+
http://developer.yahoo.com/yui/license.html
|
5
|
+
version: 2.8.1
|
6
|
+
*/
|
7
|
+
YAHOO.widget.Chart=function(I,F,A,J){this._type=I;this._dataSource=A;var B={align:"",allowNetworking:"",allowScriptAccess:"",base:"",bgcolor:"",menu:"",name:"",quality:"",salign:"",scale:"",tabindex:"",wmode:""};var D={fixedAttributes:{allowScriptAccess:"always"},flashVars:{allowedDomain:document.location.hostname},backgroundColor:"#ffffff",host:this,version:9.045};for(var E in J){if(B.hasOwnProperty(E)){D.fixedAttributes[E]=J[E];}else{D[E]=J[E];}}this._id=D.id=D.id||YAHOO.util.Dom.generateId(null,"yuigen");if(D.version&&D.version!=null&&D.version!=undefined&&D.version!="undefined"){var H=(/\w*.\w*/.exec(((D.version).toString()).replace(/.0./g,"."))).toString();var C=H.split(".");H=C[0]+".";switch((C[1].toString()).length){case 1:H+="00";break;case 2:H+="0";break;}H+=C[1];D.version=parseFloat(H);}this._swfURL=YAHOO.widget.Chart.SWFURL;this._containerID=F;this._attributes=D;this._swfEmbed=new YAHOO.widget.SWF(F,YAHOO.widget.Chart.SWFURL,D);this._swf=this._swfEmbed.swf;this._swfEmbed.subscribe("swfReady",this._eventHandler,this,true);try{this.createEvent("contentReady");}catch(G){}this.createEvent("itemMouseOverEvent");this.createEvent("itemMouseOutEvent");this.createEvent("itemClickEvent");this.createEvent("itemDoubleClickEvent");this.createEvent("itemDragStartEvent");this.createEvent("itemDragEvent");this.createEvent("itemDragEndEvent");};YAHOO.extend(YAHOO.widget.Chart,YAHOO.util.AttributeProvider,{_type:null,_pollingID:null,_pollingInterval:null,_dataTipFunction:null,_legendLabelFunction:null,_seriesFunctions:null,toString:function(){return"Chart "+this._id;},setStyle:function(A,B){B=YAHOO.lang.JSON.stringify(B);this._swf.setStyle(A,B);},setStyles:function(A){A=YAHOO.lang.JSON.stringify(A);this._swf.setStyles(A);},setSeriesStyles:function(B){for(var A=0;A<B.length;A++){B[A]=YAHOO.lang.JSON.stringify(B[A]);}this._swf.setSeriesStyles(B);},destroy:function(){if(this._dataSource!==null){if(this._pollingID!==null){this._dataSource.clearInterval(this._pollingID);this._pollingID=null;}}if(this._dataTipFunction){YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);}if(this._legendLabelFunction){YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);}if(this._swf){var B=YAHOO.util.Dom.get(this._containerID);B.removeChild(this._swf);}var A=this._id;for(var C in this){if(YAHOO.lang.hasOwnProperty(this,C)){this[C]=null;}}},_initAttributes:function(A){this.setAttributeConfig("altText",{method:this._setAltText,getter:this._getAltText});this.setAttributeConfig("swfURL",{getter:this._getSWFURL});this.setAttributeConfig("request",{method:this._setRequest,getter:this._getRequest});this.setAttributeConfig("dataSource",{method:this._setDataSource,getter:this._getDataSource});this.setAttributeConfig("series",{method:this._setSeriesDefs,getter:this._getSeriesDefs});this.setAttributeConfig("categoryNames",{validator:YAHOO.lang.isArray,method:this._setCategoryNames,getter:this._getCategoryNames});this.setAttributeConfig("dataTipFunction",{method:this._setDataTipFunction,getter:this._getDataTipFunction});this.setAttributeConfig("legendLabelFunction",{method:this._setLegendLabelFunction,getter:this._legendLabelFunction});this.setAttributeConfig("polling",{method:this._setPolling,getter:this._getPolling});},_eventHandler:function(A){if(A.type=="swfReady"){this._swf=this._swfEmbed._swf;this._loadHandler();this.fireEvent("contentReady");}},_loadHandler:function(){if(!this._swf||!this._swf.setType){return;}this._swf.setType(this._type);if(this._attributes.style){var A=this._attributes.style;this.setStyles(A);}this._initialized=false;this._initAttributes(this._attributes);this.setAttributes(this._attributes,true);this._initialized=true;if(this._dataSource){this.set("dataSource",this._dataSource);}},refreshData:function(){if(!this._initialized){return;}if(this._dataSource!==null){if(this._pollingID!==null){this._dataSource.clearInterval(this._pollingID);this._pollingID=null;}if(this._pollingInterval>0){this._pollingID=this._dataSource.setInterval(this._pollingInterval,this._request,this._loadDataHandler,this);}this._dataSource.sendRequest(this._request,this._loadDataHandler,this);}},_loadDataHandler:function(D,C,K){if(this._swf){if(K){}else{var H;if(this._seriesFunctions){var I=this._seriesFunctions.length;for(H=0;H<I;H++){YAHOO.widget.Chart.removeProxyFunction(this._seriesFunctions[H]);}this._seriesFunctions=null;}this._seriesFunctions=[];var F=[];var E=0;var L=null;if(this._seriesDefs!==null){E=this._seriesDefs.length;for(H=0;H<E;H++){L=this._seriesDefs[H];var B={};for(var A in L){if(YAHOO.lang.hasOwnProperty(L,A)){if(A=="style"){if(L.style!==null){B.style=YAHOO.lang.JSON.stringify(L.style);}}else{if(A=="labelFunction"){if(L.labelFunction!==null){B.labelFunction=YAHOO.widget.Chart.getFunctionReference(L.labelFunction);this._seriesFunctions.push(B.labelFunction);}}else{if(A=="dataTipFunction"){if(L.dataTipFunction!==null){B.dataTipFunction=YAHOO.widget.Chart.getFunctionReference(L.dataTipFunction);this._seriesFunctions.push(B.dataTipFunction);}}else{if(A=="legendLabelFunction"){if(L.legendLabelFunction!==null){B.legendLabelFunction=YAHOO.widget.Chart.getFunctionReference(L.legendLabelFunction);this._seriesFunctions.push(B.legendLabelFunction);}}else{B[A]=L[A];}}}}}}F.push(B);}}if(E>0){for(H=0;H<E;H++){L=F[H];if(!L.type){L.type=this._type;}L.dataProvider=C.results;}}else{var G={type:this._type,dataProvider:C.results};F.push(G);}try{if(this._swf.setDataProvider){this._swf.setDataProvider(F);}}catch(J){this._swf.setDataProvider(F);}}}},_request:"",_getRequest:function(){return this._request;},_setRequest:function(A){this._request=A;this.refreshData();},_dataSource:null,_getDataSource:function(){return this._dataSource;},_setDataSource:function(A){this._dataSource=A;this.refreshData();},_seriesDefs:null,_getSeriesDefs:function(){return this._seriesDefs;},_setSeriesDefs:function(A){this._seriesDefs=A;this.refreshData();},_getCategoryNames:function(){return this._swf.getCategoryNames();},_setCategoryNames:function(A){this._swf.setCategoryNames(A);
|
8
|
+
},_setDataTipFunction:function(A){if(this._dataTipFunction){YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);}if(A){this._dataTipFunction=A=YAHOO.widget.Chart.getFunctionReference(A);}this._swf.setDataTipFunction(A);},_setLegendLabelFunction:function(A){if(this._legendLabelFunction){YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);}if(A){this._legendLabelFunction=A=YAHOO.widget.Chart.getFunctionReference(A);}this._swf.setLegendLabelFunction(A);},_getPolling:function(){return this._pollingInterval;},_setPolling:function(A){this._pollingInterval=A;this.refreshData();},_swfEmbed:null,_swfURL:null,_containerID:null,_swf:null,_id:null,_initialized:false,_attributes:null,set:function(A,B){this._attributes[A]=B;YAHOO.widget.Chart.superclass.set.call(this,A,B);},_getSWFURL:function(){return this._swfURL;},_getAltText:function(){return this._swf.getAltText();},_setAltText:function(A){this._swf.setAltText(A);}});YAHOO.widget.Chart.proxyFunctionCount=0;YAHOO.widget.Chart.createProxyFunction=function(C,B){var B=B||null;var A=YAHOO.widget.Chart.proxyFunctionCount;YAHOO.widget.Chart["proxyFunction"+A]=function(){return C.apply(B,arguments);};YAHOO.widget.Chart.proxyFunctionCount++;return"YAHOO.widget.Chart.proxyFunction"+A.toString();};YAHOO.widget.Chart.getFunctionReference=function(B){if(typeof B=="function"){B=YAHOO.widget.Chart.createProxyFunction(B);}else{if(B.func&&typeof B.func=="function"){var A=[B.func];if(B.scope&&typeof B.scope=="object"){A.push(B.scope);}B=YAHOO.widget.Chart.createProxyFunction.apply(this,A);}}return B;};YAHOO.widget.Chart.removeProxyFunction=function(A){if(!A||A.indexOf("YAHOO.widget.Chart.proxyFunction")<0){return;}A=A.substr(26);YAHOO.widget.Chart[A]=null;};YAHOO.widget.Chart.SWFURL="assets/charts.swf";YAHOO.widget.PieChart=function(A,C,B){YAHOO.widget.PieChart.superclass.constructor.call(this,"pie",A,C,B);};YAHOO.lang.extend(YAHOO.widget.PieChart,YAHOO.widget.Chart,{_initAttributes:function(A){YAHOO.widget.PieChart.superclass._initAttributes.call(this,A);this.setAttributeConfig("dataField",{validator:YAHOO.lang.isString,method:this._setDataField,getter:this._getDataField});this.setAttributeConfig("categoryField",{validator:YAHOO.lang.isString,method:this._setCategoryField,getter:this._getCategoryField});},_getDataField:function(){return this._swf.getDataField();},_setDataField:function(A){this._swf.setDataField(A);},_getCategoryField:function(){return this._swf.getCategoryField();},_setCategoryField:function(A){this._swf.setCategoryField(A);}});YAHOO.widget.CartesianChart=function(C,A,D,B){YAHOO.widget.CartesianChart.superclass.constructor.call(this,C,A,D,B);};YAHOO.lang.extend(YAHOO.widget.CartesianChart,YAHOO.widget.Chart,{_xAxisLabelFunctions:[],_yAxisLabelFunctions:[],destroy:function(){this._removeAxisFunctions(this._xAxisLabelFunctions);this._removeAxisFunctions(this._yAxisLabelFunctions);YAHOO.widget.CartesianChart.superclass.destroy.call(this);},_initAttributes:function(A){YAHOO.widget.CartesianChart.superclass._initAttributes.call(this,A);this.setAttributeConfig("xField",{validator:YAHOO.lang.isString,method:this._setXField,getter:this._getXField});this.setAttributeConfig("yField",{validator:YAHOO.lang.isString,method:this._setYField,getter:this._getYField});this.setAttributeConfig("xAxis",{method:this._setXAxis});this.setAttributeConfig("xAxes",{method:this._setXAxes});this.setAttributeConfig("yAxis",{method:this._setYAxis});this.setAttributeConfig("yAxes",{method:this._setYAxes});this.setAttributeConfig("constrainViewport",{method:this._setConstrainViewport});},_getXField:function(){return this._swf.getHorizontalField();},_setXField:function(A){this._swf.setHorizontalField(A);},_getYField:function(){return this._swf.getVerticalField();},_setYField:function(A){this._swf.setVerticalField(A);},_getClonedAxis:function(A){var B={};for(var C in A){if(C=="labelFunction"){if(A.labelFunction&&A.labelFunction!==null){B.labelFunction=YAHOO.widget.Chart.getFunctionReference(A.labelFunction);}}else{B[C]=A[C];}}return B;},_removeAxisFunctions:function(C){if(C&&C.length>0){var A=C.length;for(var B=0;B<A;B++){if(C[B]!==null){YAHOO.widget.Chart.removeProxyFunction(C[B]);}}C=[];}},_setXAxis:function(A){if(A.position!="bottom"&&A.position!="top"){A.position="bottom";}this._removeAxisFunctions(this._xAxisLabelFunctions);A=this._getClonedAxis(A);this._xAxisLabelFunctions.push(A.labelFunction);this._swf.setHorizontalAxis(A);},_setXAxes:function(C){this._removeAxisFunctions(this._xAxisLabelFunctions);var A=C.length;for(var B=0;B<A;B++){if(C[B].position=="left"){C[B].position="bottom";}C[B]=this._getClonedAxis(C[B]);if(C[B].labelFunction){this._xAxisLabelFunctions.push(C[B].labelFunction);}this._swf.setHorizontalAxis(C[B]);}},_setYAxis:function(A){this._removeAxisFunctions(this._yAxisLabelFunctions);A=this._getClonedAxis(A);this._yAxisLabelFunctions.push(A.labelFunction);this._swf.setVerticalAxis(A);},_setYAxes:function(C){this._removeAxisFunctions(this._yAxisLabelFunctions);var A=C.length;for(var B=0;B<A;B++){C[B]=this._getClonedAxis(C[B]);if(C[B].labelFunction){this._yAxisLabelFunctions.push(C[B].labelFunction);}this._swf.setVerticalAxis(C[B]);}},_setConstrainViewport:function(A){this._swf.setConstrainViewport(A);},setSeriesStylesByIndex:function(A,B){B=YAHOO.lang.JSON.stringify(B);if(this._swf&&this._swf.setSeriesStylesByIndex){this._swf.setSeriesStylesByIndex(A,B);}}});YAHOO.widget.LineChart=function(A,C,B){YAHOO.widget.LineChart.superclass.constructor.call(this,"line",A,C,B);};YAHOO.lang.extend(YAHOO.widget.LineChart,YAHOO.widget.CartesianChart);YAHOO.widget.ColumnChart=function(A,C,B){YAHOO.widget.ColumnChart.superclass.constructor.call(this,"column",A,C,B);};YAHOO.lang.extend(YAHOO.widget.ColumnChart,YAHOO.widget.CartesianChart);YAHOO.widget.BarChart=function(A,C,B){YAHOO.widget.BarChart.superclass.constructor.call(this,"bar",A,C,B);};YAHOO.lang.extend(YAHOO.widget.BarChart,YAHOO.widget.CartesianChart);YAHOO.widget.StackedColumnChart=function(A,C,B){YAHOO.widget.StackedColumnChart.superclass.constructor.call(this,"stackcolumn",A,C,B);
|
9
|
+
};YAHOO.lang.extend(YAHOO.widget.StackedColumnChart,YAHOO.widget.CartesianChart);YAHOO.widget.StackedBarChart=function(A,C,B){YAHOO.widget.StackedBarChart.superclass.constructor.call(this,"stackbar",A,C,B);};YAHOO.lang.extend(YAHOO.widget.StackedBarChart,YAHOO.widget.CartesianChart);YAHOO.widget.Axis=function(){};YAHOO.widget.Axis.prototype={type:null,reverse:false,labelFunction:null,labelSpacing:2,title:null};YAHOO.widget.NumericAxis=function(){YAHOO.widget.NumericAxis.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.NumericAxis,YAHOO.widget.Axis,{type:"numeric",minimum:NaN,maximum:NaN,majorUnit:NaN,minorUnit:NaN,snapToUnits:true,stackingEnabled:false,alwaysShowZero:true,scale:"linear",roundMajorUnit:true,calculateByLabelSize:true,position:"left",adjustMaximumByMajorUnit:true,adjustMinimumByMajorUnit:true});YAHOO.widget.TimeAxis=function(){YAHOO.widget.TimeAxis.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.TimeAxis,YAHOO.widget.Axis,{type:"time",minimum:null,maximum:null,majorUnit:NaN,majorTimeUnit:null,minorUnit:NaN,minorTimeUnit:null,snapToUnits:true,stackingEnabled:false,calculateByLabelSize:true});YAHOO.widget.CategoryAxis=function(){YAHOO.widget.CategoryAxis.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.CategoryAxis,YAHOO.widget.Axis,{type:"category",categoryNames:null,calculateCategoryCount:false});YAHOO.widget.Series=function(){};YAHOO.widget.Series.prototype={type:null,displayName:null};YAHOO.widget.CartesianSeries=function(){YAHOO.widget.CartesianSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.CartesianSeries,YAHOO.widget.Series,{xField:null,yField:null,axis:"primary",showInLegend:true});YAHOO.widget.ColumnSeries=function(){YAHOO.widget.ColumnSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.ColumnSeries,YAHOO.widget.CartesianSeries,{type:"column"});YAHOO.widget.LineSeries=function(){YAHOO.widget.LineSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.LineSeries,YAHOO.widget.CartesianSeries,{type:"line"});YAHOO.widget.BarSeries=function(){YAHOO.widget.BarSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.BarSeries,YAHOO.widget.CartesianSeries,{type:"bar"});YAHOO.widget.PieSeries=function(){YAHOO.widget.PieSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.PieSeries,YAHOO.widget.Series,{type:"pie",dataField:null,categoryField:null,labelFunction:null});YAHOO.widget.StackedBarSeries=function(){YAHOO.widget.StackedBarSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.StackedBarSeries,YAHOO.widget.CartesianSeries,{type:"stackbar"});YAHOO.widget.StackedColumnSeries=function(){YAHOO.widget.StackedColumnSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.StackedColumnSeries,YAHOO.widget.CartesianSeries,{type:"stackcolumn"});YAHOO.register("charts",YAHOO.widget.Chart,{version:"2.8.1",build:"19"});
|
@@ -0,0 +1,2060 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
|
3
|
+
Code licensed under the BSD License:
|
4
|
+
http://developer.yahoo.com/yui/license.html
|
5
|
+
version: 2.8.1
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* The Charts widget provides a Flash control for displaying data
|
9
|
+
* graphically by series across A-grade browsers with Flash Player installed.
|
10
|
+
*
|
11
|
+
* @module charts
|
12
|
+
* @requires yahoo, dom, event, datasource
|
13
|
+
* @title Charts Widget
|
14
|
+
* @experimental
|
15
|
+
*/
|
16
|
+
|
17
|
+
/****************************************************************************/
|
18
|
+
/****************************************************************************/
|
19
|
+
/****************************************************************************/
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Chart class for the YUI Charts widget.
|
23
|
+
*
|
24
|
+
* @namespace YAHOO.widget
|
25
|
+
* @class Chart
|
26
|
+
* @uses YAHOO.util.AttributeProvider
|
27
|
+
* @constructor
|
28
|
+
* @param type {String} The char type. May be "line", "column", "bar", or "pie"
|
29
|
+
* @param containerId {HTMLElement} Container element for the Flash Player instance.
|
30
|
+
* @param dataSource {YAHOO.util.DataSource} DataSource instance.
|
31
|
+
* @param attributes {object} (optional) Object literal of configuration values.
|
32
|
+
*/
|
33
|
+
YAHOO.widget.Chart = function(type, containerId, dataSource, configurationAttributes)
|
34
|
+
{
|
35
|
+
this._type = type;
|
36
|
+
this._dataSource = dataSource;
|
37
|
+
|
38
|
+
var possibleParams = {align:"", allowNetworking:"", allowScriptAccess:"", base:"", bgcolor:"", menu:"", name:"", quality:"", salign:"", scale:"", tabindex:"", wmode:""};
|
39
|
+
var attributes = {fixedAttributes:{allowScriptAccess:"always"}, flashVars:{allowedDomain : document.location.hostname}, backgroundColor:"#ffffff", host:this, version:9.045};
|
40
|
+
|
41
|
+
for(var i in configurationAttributes)
|
42
|
+
{
|
43
|
+
if(possibleParams.hasOwnProperty(i))
|
44
|
+
{
|
45
|
+
attributes.fixedAttributes[i] = configurationAttributes[i];
|
46
|
+
}
|
47
|
+
else
|
48
|
+
{
|
49
|
+
attributes[i] = configurationAttributes[i];
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
this._id = attributes.id = attributes.id || YAHOO.util.Dom.generateId(null, "yuigen");
|
54
|
+
|
55
|
+
if(attributes.version && attributes.version != null && attributes.version != undefined && attributes.version != "undefined")
|
56
|
+
{
|
57
|
+
var version = (/\w*.\w*/.exec(((attributes.version).toString()).replace(/.0./g, "."))).toString();
|
58
|
+
var verSplit = version.split(".");
|
59
|
+
version = verSplit[0] + ".";
|
60
|
+
switch((verSplit[1].toString()).length)
|
61
|
+
{
|
62
|
+
case 1:
|
63
|
+
version += "00";
|
64
|
+
break;
|
65
|
+
case 2:
|
66
|
+
version += "0";
|
67
|
+
break;
|
68
|
+
}
|
69
|
+
version += verSplit[1];
|
70
|
+
attributes.version = parseFloat(version);
|
71
|
+
}
|
72
|
+
|
73
|
+
this._swfURL = YAHOO.widget.Chart.SWFURL;
|
74
|
+
this._containerID = containerId;
|
75
|
+
|
76
|
+
this._attributes = attributes
|
77
|
+
this._swfEmbed = new YAHOO.widget.SWF(containerId, YAHOO.widget.Chart.SWFURL, attributes);
|
78
|
+
|
79
|
+
this._swf = this._swfEmbed.swf;
|
80
|
+
this._swfEmbed.subscribe("swfReady", this._eventHandler, this, true);
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Fires when the SWF is initialized and communication is possible.
|
84
|
+
* @event contentReady
|
85
|
+
*/
|
86
|
+
//Fix for iframe cross-domain issue with FF2x
|
87
|
+
try
|
88
|
+
{
|
89
|
+
this.createEvent("contentReady");
|
90
|
+
}
|
91
|
+
catch(e){}
|
92
|
+
|
93
|
+
/**
|
94
|
+
* Fires when the user moves the mouse over the bounds of an item renderer in the chart.
|
95
|
+
*
|
96
|
+
* @event itemMouseOverEvent
|
97
|
+
* @param event.type {String} The event type
|
98
|
+
* @param event.item {Object} The data displayed by the renderer
|
99
|
+
* @param event.index {Number} The position within the series that the item appears.
|
100
|
+
* @param event.seriesIndex {Number} The position within the series definition that the series appears.
|
101
|
+
* @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
|
102
|
+
* @param event.y {Number} The vertical position of the mouse, relative to the SWF.
|
103
|
+
*/
|
104
|
+
this.createEvent("itemMouseOverEvent");
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Fires when the user moves the mouse out of the bounds of an item renderer in the chart.
|
108
|
+
*
|
109
|
+
* @event itemMouseOutEvent
|
110
|
+
* @param event.type {String} The event type
|
111
|
+
* @param event.item {Object} The data displayed by the renderer
|
112
|
+
* @param event.index {Number} The position within the series that the item appears.
|
113
|
+
* @param event.seriesIndex {Number} The position within the series definition that the series appears.
|
114
|
+
* @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
|
115
|
+
* @param event.y {Number} The vertical position of the mouse, relative to the SWF.
|
116
|
+
*/
|
117
|
+
this.createEvent("itemMouseOutEvent");
|
118
|
+
|
119
|
+
/**
|
120
|
+
* Fires when the user clicks an item renderer in the chart with the mouse.
|
121
|
+
*
|
122
|
+
* @event itemClickEvent
|
123
|
+
* @param event.type {String} The event type
|
124
|
+
* @param event.item {Object} The data displayed by the renderer
|
125
|
+
* @param event.index {Number} The position within the series that the item appears.
|
126
|
+
* @param event.seriesIndex {Number} The position within the series definition that the series appears.
|
127
|
+
* @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
|
128
|
+
* @param event.y {Number} The vertical position of the mouse, relative to the SWF.
|
129
|
+
*/
|
130
|
+
this.createEvent("itemClickEvent");
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Fires when the user double-clicks an item renderer in the chart with the mouse.
|
134
|
+
*
|
135
|
+
* @event itemDoubleClickEvent
|
136
|
+
* @param event.type {String} The event type
|
137
|
+
* @param event.item {Object} The data displayed by the renderer
|
138
|
+
* @param event.index {Number} The position within the series that the item appears.
|
139
|
+
* @param event.seriesIndex {Number} The position within the series definition that the series appears.
|
140
|
+
* @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
|
141
|
+
* @param event.y {Number} The vertical position of the mouse, relative to the SWF.
|
142
|
+
*/
|
143
|
+
this.createEvent("itemDoubleClickEvent");
|
144
|
+
|
145
|
+
/**
|
146
|
+
* Fires when the user presses the mouse down on an item to initiate a drag action.
|
147
|
+
*
|
148
|
+
* @event itemDragStartEvent
|
149
|
+
* @param event.type {String} The event type
|
150
|
+
* @param event.item {Object} The data displayed by the renderer
|
151
|
+
* @param event.index {Number} The position within the series that the item appears.
|
152
|
+
* @param event.seriesIndex {Number} The position within the series definition that the series appears.
|
153
|
+
* @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
|
154
|
+
* @param event.y {Number} The vertical position of the mouse, relative to the SWF.
|
155
|
+
*/
|
156
|
+
this.createEvent("itemDragStartEvent");
|
157
|
+
|
158
|
+
/**
|
159
|
+
* Fires when the user moves the mouse during a drag action.
|
160
|
+
*
|
161
|
+
* @event itemDragEvent
|
162
|
+
* @param event.type {String} The event type
|
163
|
+
* @param event.item {Object} The data displayed by the renderer
|
164
|
+
* @param event.index {Number} The position within the series that the item appears.
|
165
|
+
* @param event.seriesIndex {Number} The position within the series definition that the series appears.
|
166
|
+
* @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
|
167
|
+
* @param event.y {Number} The vertical position of the mouse, relative to the SWF.
|
168
|
+
*/
|
169
|
+
this.createEvent("itemDragEvent");
|
170
|
+
|
171
|
+
/**
|
172
|
+
* Fires when the user releases the mouse during a drag action.
|
173
|
+
*
|
174
|
+
* @event itemDragEndEvent
|
175
|
+
* @param event.type {String} The event type
|
176
|
+
* @param event.item {Object} The data displayed by the renderer
|
177
|
+
* @param event.index {Number} The position within the series that the item appears.
|
178
|
+
* @param event.seriesIndex {Number} The position within the series definition that the series appears.
|
179
|
+
* @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
|
180
|
+
* @param event.y {Number} The vertical position of the mouse, relative to the SWF.
|
181
|
+
*/
|
182
|
+
this.createEvent("itemDragEndEvent");
|
183
|
+
};
|
184
|
+
|
185
|
+
YAHOO.extend(YAHOO.widget.Chart, YAHOO.util.AttributeProvider,
|
186
|
+
{
|
187
|
+
/**
|
188
|
+
* The type of this chart instance.
|
189
|
+
* @property _type
|
190
|
+
* @type String
|
191
|
+
* @private
|
192
|
+
*/
|
193
|
+
_type: null,
|
194
|
+
|
195
|
+
/**
|
196
|
+
* The id returned from the DataSource's setInterval function.
|
197
|
+
* @property _pollingID
|
198
|
+
* @type Number
|
199
|
+
* @private
|
200
|
+
*/
|
201
|
+
_pollingID: null,
|
202
|
+
|
203
|
+
/**
|
204
|
+
* The time, in ms, between requests for data.
|
205
|
+
* @property _pollingInterval
|
206
|
+
* @type Number
|
207
|
+
* @private
|
208
|
+
*/
|
209
|
+
_pollingInterval: null,
|
210
|
+
|
211
|
+
/**
|
212
|
+
* Stores a reference to the dataTipFunction created by
|
213
|
+
* YAHOO.widget.Chart.createProxyFunction()
|
214
|
+
* @property _dataTipFunction
|
215
|
+
* @type String
|
216
|
+
* @private
|
217
|
+
*/
|
218
|
+
_dataTipFunction: null,
|
219
|
+
|
220
|
+
/**
|
221
|
+
* Stores a reference to the legendLabelFunction created by
|
222
|
+
* YAHOO.widget.Chart.createProxyFunction()
|
223
|
+
* @property _legendLabelFunction
|
224
|
+
* @type String
|
225
|
+
* @private
|
226
|
+
*/
|
227
|
+
_legendLabelFunction: null,
|
228
|
+
|
229
|
+
/**
|
230
|
+
* Stores references to series function values created by
|
231
|
+
* YAHOO.widget.Chart.createProxyFunction()
|
232
|
+
* @property _seriesFunctions
|
233
|
+
* @type Array
|
234
|
+
* @private
|
235
|
+
*/
|
236
|
+
_seriesFunctions: null,
|
237
|
+
|
238
|
+
/**
|
239
|
+
* Public accessor to the unique name of the Chart instance.
|
240
|
+
*
|
241
|
+
* @method toString
|
242
|
+
* @return {String} Unique name of the Chart instance.
|
243
|
+
*/
|
244
|
+
toString: function()
|
245
|
+
{
|
246
|
+
return "Chart " + this._id;
|
247
|
+
},
|
248
|
+
|
249
|
+
/**
|
250
|
+
* Sets a single style value on the Chart instance.
|
251
|
+
*
|
252
|
+
* @method setStyle
|
253
|
+
* @param name {String} Name of the Chart style value to change.
|
254
|
+
* @param value {Object} New value to pass to the Chart style.
|
255
|
+
*/
|
256
|
+
setStyle: function(name, value)
|
257
|
+
{
|
258
|
+
//we must jsonify this because Flash Player versions below 9.0.60 don't handle
|
259
|
+
//complex ExternalInterface parsing correctly
|
260
|
+
value = YAHOO.lang.JSON.stringify(value);
|
261
|
+
this._swf.setStyle(name, value);
|
262
|
+
},
|
263
|
+
|
264
|
+
/**
|
265
|
+
* Resets all styles on the Chart instance.
|
266
|
+
*
|
267
|
+
* @method setStyles
|
268
|
+
* @param styles {Object} Initializer for all Chart styles.
|
269
|
+
*/
|
270
|
+
setStyles: function(styles)
|
271
|
+
{
|
272
|
+
//we must jsonify this because Flash Player versions below 9.0.60 don't handle
|
273
|
+
//complex ExternalInterface parsing correctly
|
274
|
+
styles = YAHOO.lang.JSON.stringify(styles);
|
275
|
+
this._swf.setStyles(styles);
|
276
|
+
},
|
277
|
+
|
278
|
+
/**
|
279
|
+
* Sets the styles on all series in the Chart.
|
280
|
+
*
|
281
|
+
* @method setSeriesStyles
|
282
|
+
* @param styles {Array} Initializer for all Chart series styles.
|
283
|
+
*/
|
284
|
+
setSeriesStyles: function(styles)
|
285
|
+
{
|
286
|
+
//we must jsonify this because Flash Player versions below 9.0.60 don't handle
|
287
|
+
//complex ExternalInterface parsing correctly
|
288
|
+
for(var i = 0; i < styles.length; i++)
|
289
|
+
{
|
290
|
+
styles[i] = YAHOO.lang.JSON.stringify(styles[i]);
|
291
|
+
}
|
292
|
+
this._swf.setSeriesStyles(styles);
|
293
|
+
},
|
294
|
+
|
295
|
+
destroy: function()
|
296
|
+
{
|
297
|
+
//stop polling if needed
|
298
|
+
if(this._dataSource !== null)
|
299
|
+
{
|
300
|
+
if(this._pollingID !== null)
|
301
|
+
{
|
302
|
+
this._dataSource.clearInterval(this._pollingID);
|
303
|
+
this._pollingID = null;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
|
307
|
+
//remove proxy functions
|
308
|
+
if(this._dataTipFunction)
|
309
|
+
{
|
310
|
+
YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);
|
311
|
+
}
|
312
|
+
|
313
|
+
if(this._legendLabelFunction)
|
314
|
+
{
|
315
|
+
YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);
|
316
|
+
}
|
317
|
+
|
318
|
+
//kill the Flash Player instance
|
319
|
+
if(this._swf)
|
320
|
+
{
|
321
|
+
var container = YAHOO.util.Dom.get(this._containerID);
|
322
|
+
container.removeChild(this._swf);
|
323
|
+
}
|
324
|
+
|
325
|
+
var instanceName = this._id;
|
326
|
+
|
327
|
+
//null out properties
|
328
|
+
for(var prop in this)
|
329
|
+
{
|
330
|
+
if(YAHOO.lang.hasOwnProperty(this, prop))
|
331
|
+
{
|
332
|
+
this[prop] = null;
|
333
|
+
}
|
334
|
+
}
|
335
|
+
},
|
336
|
+
|
337
|
+
/**
|
338
|
+
* Initializes the attributes.
|
339
|
+
*
|
340
|
+
* @method _initAttributes
|
341
|
+
* @private
|
342
|
+
*/
|
343
|
+
_initAttributes: function(attributes)
|
344
|
+
{
|
345
|
+
//YAHOO.widget.Chart.superclass._initAttributes.call(this, attributes);
|
346
|
+
/**
|
347
|
+
* @attribute wmode
|
348
|
+
* @description Sets the window mode of the Flash Player control. May be
|
349
|
+
* "window", "opaque", or "transparent". Only available in the constructor
|
350
|
+
* because it may not be set after Flash Player has been embedded in the page.
|
351
|
+
* @type String
|
352
|
+
*/
|
353
|
+
|
354
|
+
/**
|
355
|
+
* @attribute expressInstall
|
356
|
+
* @description URL pointing to a SWF file that handles Flash Player's express
|
357
|
+
* install feature. Only available in the constructor because it may not be
|
358
|
+
* set after Flash Player has been embedded in the page.
|
359
|
+
* @type String
|
360
|
+
*/
|
361
|
+
|
362
|
+
/**
|
363
|
+
* @attribute version
|
364
|
+
* @description Minimum required version for the SWF file. Only available in the constructor because it may not be
|
365
|
+
* set after Flash Player has been embedded in the page.
|
366
|
+
* @type String
|
367
|
+
*/
|
368
|
+
|
369
|
+
/**
|
370
|
+
* @attribute backgroundColor
|
371
|
+
* @description The background color of the SWF. Only available in the constructor because it may not be
|
372
|
+
* set after Flash Player has been embedded in the page.
|
373
|
+
* @type String
|
374
|
+
*/
|
375
|
+
|
376
|
+
/**
|
377
|
+
* @attribute altText
|
378
|
+
* @description The alternative text to provide for screen readers and other assistive technology.
|
379
|
+
* @type String
|
380
|
+
*/
|
381
|
+
this.setAttributeConfig("altText",
|
382
|
+
{
|
383
|
+
method: this._setAltText,
|
384
|
+
getter: this._getAltText
|
385
|
+
|
386
|
+
});
|
387
|
+
|
388
|
+
/**
|
389
|
+
* @attribute swfURL
|
390
|
+
* @description Absolute or relative URL to the SWF displayed by the Chart. Only available in the constructor because it may not be
|
391
|
+
* set after Flash Player has been embedded in the page.
|
392
|
+
* @type String
|
393
|
+
*/
|
394
|
+
this.setAttributeConfig("swfURL",
|
395
|
+
{
|
396
|
+
getter: this._getSWFURL
|
397
|
+
});
|
398
|
+
|
399
|
+
/**
|
400
|
+
* @attribute request
|
401
|
+
* @description Request to be sent to the Chart's DataSource.
|
402
|
+
* @type String
|
403
|
+
*/
|
404
|
+
this.setAttributeConfig("request",
|
405
|
+
{
|
406
|
+
method: this._setRequest,
|
407
|
+
getter: this._getRequest
|
408
|
+
});
|
409
|
+
|
410
|
+
/**
|
411
|
+
* @attribute dataSource
|
412
|
+
* @description The DataSource instance to display in the Chart.
|
413
|
+
* @type DataSource
|
414
|
+
*/
|
415
|
+
this.setAttributeConfig("dataSource",
|
416
|
+
{
|
417
|
+
method: this._setDataSource,
|
418
|
+
getter: this._getDataSource
|
419
|
+
});
|
420
|
+
|
421
|
+
/**
|
422
|
+
* @attribute series
|
423
|
+
* @description Defines the series to be displayed by the Chart.
|
424
|
+
* @type Array
|
425
|
+
*/
|
426
|
+
this.setAttributeConfig("series",
|
427
|
+
{
|
428
|
+
method: this._setSeriesDefs,
|
429
|
+
getter: this._getSeriesDefs
|
430
|
+
});
|
431
|
+
|
432
|
+
/**
|
433
|
+
* @attribute categoryNames
|
434
|
+
* @description Defines the names of the categories to be displayed in the Chart..
|
435
|
+
* @type Array
|
436
|
+
*/
|
437
|
+
this.setAttributeConfig("categoryNames",
|
438
|
+
{
|
439
|
+
validator: YAHOO.lang.isArray,
|
440
|
+
method: this._setCategoryNames,
|
441
|
+
getter: this._getCategoryNames
|
442
|
+
});
|
443
|
+
|
444
|
+
/**
|
445
|
+
* @attribute dataTipFunction
|
446
|
+
* @description The string representation of a globally-accessible function
|
447
|
+
* that may be called by the SWF to generate the datatip text for a Chart's item.
|
448
|
+
* @type String
|
449
|
+
*/
|
450
|
+
this.setAttributeConfig("dataTipFunction",
|
451
|
+
{
|
452
|
+
method: this._setDataTipFunction,
|
453
|
+
getter: this._getDataTipFunction
|
454
|
+
});
|
455
|
+
|
456
|
+
/**
|
457
|
+
* @attribute legendLabelFunction
|
458
|
+
* @description The string representation of a globally-accessible function
|
459
|
+
* that may be called by the SWF to format the labels of a Chart's legend.
|
460
|
+
* @type String
|
461
|
+
*/
|
462
|
+
this.setAttributeConfig("legendLabelFunction",
|
463
|
+
{
|
464
|
+
method: this._setLegendLabelFunction,
|
465
|
+
getter: this._legendLabelFunction
|
466
|
+
});
|
467
|
+
|
468
|
+
/**
|
469
|
+
* @attribute polling
|
470
|
+
* @description A numeric value indicating the number of milliseconds between
|
471
|
+
* polling requests to the DataSource.
|
472
|
+
* @type Number
|
473
|
+
*/
|
474
|
+
this.setAttributeConfig("polling",
|
475
|
+
{
|
476
|
+
method: this._setPolling,
|
477
|
+
getter: this._getPolling
|
478
|
+
});
|
479
|
+
},
|
480
|
+
|
481
|
+
/**
|
482
|
+
* Handles swfReady event from SWF.
|
483
|
+
*
|
484
|
+
* @method _eventHandler
|
485
|
+
* @private
|
486
|
+
*/
|
487
|
+
_eventHandler: function(event)
|
488
|
+
{
|
489
|
+
if(event.type == "swfReady")
|
490
|
+
{
|
491
|
+
this._swf = this._swfEmbed._swf;
|
492
|
+
this._loadHandler();
|
493
|
+
this.fireEvent("contentReady");
|
494
|
+
}
|
495
|
+
},
|
496
|
+
|
497
|
+
/**
|
498
|
+
* Called when the SWF is ready for communication. Sets the type, initializes
|
499
|
+
* the styles, and sets the DataSource.
|
500
|
+
*
|
501
|
+
* @method _loadHandler
|
502
|
+
* @private
|
503
|
+
*/
|
504
|
+
_loadHandler: function()
|
505
|
+
{
|
506
|
+
//the type is set separately because it must be first!
|
507
|
+
if(!this._swf || !this._swf.setType) return;
|
508
|
+
this._swf.setType(this._type);
|
509
|
+
|
510
|
+
|
511
|
+
//set initial styles
|
512
|
+
if(this._attributes.style)
|
513
|
+
{
|
514
|
+
var style = this._attributes.style;
|
515
|
+
this.setStyles(style);
|
516
|
+
}
|
517
|
+
|
518
|
+
this._initialized = false;
|
519
|
+
|
520
|
+
this._initAttributes(this._attributes);
|
521
|
+
this.setAttributes(this._attributes, true);
|
522
|
+
|
523
|
+
this._initialized = true;
|
524
|
+
if(this._dataSource)
|
525
|
+
{
|
526
|
+
this.set("dataSource", this._dataSource);
|
527
|
+
}
|
528
|
+
},
|
529
|
+
|
530
|
+
/**
|
531
|
+
* Sends (or resends) the request to the DataSource.
|
532
|
+
*
|
533
|
+
* @method refreshData
|
534
|
+
*/
|
535
|
+
refreshData: function()
|
536
|
+
{
|
537
|
+
if(!this._initialized)
|
538
|
+
{
|
539
|
+
return;
|
540
|
+
}
|
541
|
+
|
542
|
+
if(this._dataSource !== null)
|
543
|
+
{
|
544
|
+
if(this._pollingID !== null)
|
545
|
+
{
|
546
|
+
this._dataSource.clearInterval(this._pollingID);
|
547
|
+
this._pollingID = null;
|
548
|
+
}
|
549
|
+
|
550
|
+
if(this._pollingInterval > 0)
|
551
|
+
{
|
552
|
+
this._pollingID = this._dataSource.setInterval(this._pollingInterval, this._request, this._loadDataHandler, this);
|
553
|
+
}
|
554
|
+
this._dataSource.sendRequest(this._request, this._loadDataHandler, this);
|
555
|
+
}
|
556
|
+
},
|
557
|
+
|
558
|
+
/**
|
559
|
+
* Called when the DataSource receives new data. The series definitions are used
|
560
|
+
* to build a data provider for the SWF chart.
|
561
|
+
*
|
562
|
+
* @method _loadDataHandler
|
563
|
+
* @private
|
564
|
+
*/
|
565
|
+
_loadDataHandler: function(request, response, error)
|
566
|
+
{
|
567
|
+
if(this._swf)
|
568
|
+
{
|
569
|
+
if(error)
|
570
|
+
{
|
571
|
+
}
|
572
|
+
else
|
573
|
+
{
|
574
|
+
var i;
|
575
|
+
if(this._seriesFunctions)
|
576
|
+
{
|
577
|
+
var count = this._seriesFunctions.length;
|
578
|
+
for(i = 0; i < count; i++)
|
579
|
+
{
|
580
|
+
YAHOO.widget.Chart.removeProxyFunction(this._seriesFunctions[i]);
|
581
|
+
}
|
582
|
+
this._seriesFunctions = null;
|
583
|
+
}
|
584
|
+
this._seriesFunctions = [];
|
585
|
+
|
586
|
+
//make a copy of the series definitions so that we aren't
|
587
|
+
//editing them directly.
|
588
|
+
var dataProvider = [];
|
589
|
+
var seriesCount = 0;
|
590
|
+
var currentSeries = null;
|
591
|
+
if(this._seriesDefs !== null)
|
592
|
+
{
|
593
|
+
seriesCount = this._seriesDefs.length;
|
594
|
+
for(i = 0; i < seriesCount; i++)
|
595
|
+
{
|
596
|
+
currentSeries = this._seriesDefs[i];
|
597
|
+
var clonedSeries = {};
|
598
|
+
for(var prop in currentSeries)
|
599
|
+
{
|
600
|
+
if(YAHOO.lang.hasOwnProperty(currentSeries, prop))
|
601
|
+
{
|
602
|
+
if(prop == "style")
|
603
|
+
{
|
604
|
+
if(currentSeries.style !== null)
|
605
|
+
{
|
606
|
+
clonedSeries.style = YAHOO.lang.JSON.stringify(currentSeries.style);
|
607
|
+
}
|
608
|
+
}
|
609
|
+
|
610
|
+
else if(prop == "labelFunction")
|
611
|
+
{
|
612
|
+
if(currentSeries.labelFunction !== null)
|
613
|
+
{
|
614
|
+
clonedSeries.labelFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.labelFunction);
|
615
|
+
this._seriesFunctions.push(clonedSeries.labelFunction);
|
616
|
+
}
|
617
|
+
}
|
618
|
+
|
619
|
+
else if(prop == "dataTipFunction")
|
620
|
+
{
|
621
|
+
if(currentSeries.dataTipFunction !== null)
|
622
|
+
{
|
623
|
+
clonedSeries.dataTipFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.dataTipFunction);
|
624
|
+
this._seriesFunctions.push(clonedSeries.dataTipFunction);
|
625
|
+
}
|
626
|
+
}
|
627
|
+
|
628
|
+
else if(prop == "legendLabelFunction")
|
629
|
+
{
|
630
|
+
if(currentSeries.legendLabelFunction !== null)
|
631
|
+
{
|
632
|
+
clonedSeries.legendLabelFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.legendLabelFunction);
|
633
|
+
this._seriesFunctions.push(clonedSeries.legendLabelFunction);
|
634
|
+
}
|
635
|
+
}
|
636
|
+
|
637
|
+
else
|
638
|
+
{
|
639
|
+
clonedSeries[prop] = currentSeries[prop];
|
640
|
+
}
|
641
|
+
}
|
642
|
+
}
|
643
|
+
dataProvider.push(clonedSeries);
|
644
|
+
}
|
645
|
+
}
|
646
|
+
|
647
|
+
if(seriesCount > 0)
|
648
|
+
{
|
649
|
+
for(i = 0; i < seriesCount; i++)
|
650
|
+
{
|
651
|
+
currentSeries = dataProvider[i];
|
652
|
+
if(!currentSeries.type)
|
653
|
+
{
|
654
|
+
currentSeries.type = this._type;
|
655
|
+
}
|
656
|
+
currentSeries.dataProvider = response.results;
|
657
|
+
}
|
658
|
+
}
|
659
|
+
else
|
660
|
+
{
|
661
|
+
var series = {type: this._type, dataProvider: response.results};
|
662
|
+
dataProvider.push(series);
|
663
|
+
}
|
664
|
+
try
|
665
|
+
{
|
666
|
+
if(this._swf.setDataProvider) this._swf.setDataProvider(dataProvider);
|
667
|
+
}
|
668
|
+
catch(e)
|
669
|
+
{
|
670
|
+
this._swf.setDataProvider(dataProvider);
|
671
|
+
}
|
672
|
+
}
|
673
|
+
}
|
674
|
+
},
|
675
|
+
|
676
|
+
/**
|
677
|
+
* Storage for the request attribute.
|
678
|
+
*
|
679
|
+
* @property _request
|
680
|
+
* @private
|
681
|
+
*/
|
682
|
+
_request: "",
|
683
|
+
|
684
|
+
/**
|
685
|
+
* Getter for the request attribute.
|
686
|
+
*
|
687
|
+
* @method _getRequest
|
688
|
+
* @private
|
689
|
+
*/
|
690
|
+
_getRequest: function()
|
691
|
+
{
|
692
|
+
return this._request;
|
693
|
+
},
|
694
|
+
|
695
|
+
/**
|
696
|
+
* Setter for the request attribute.
|
697
|
+
*
|
698
|
+
* @method _setRequest
|
699
|
+
* @private
|
700
|
+
*/
|
701
|
+
_setRequest: function(value)
|
702
|
+
{
|
703
|
+
this._request = value;
|
704
|
+
this.refreshData();
|
705
|
+
},
|
706
|
+
|
707
|
+
/**
|
708
|
+
* Storage for the dataSource attribute.
|
709
|
+
*
|
710
|
+
* @property _dataSource
|
711
|
+
* @private
|
712
|
+
*/
|
713
|
+
_dataSource: null,
|
714
|
+
|
715
|
+
/**
|
716
|
+
* Getter for the dataSource attribute.
|
717
|
+
*
|
718
|
+
* @method _getDataSource
|
719
|
+
* @private
|
720
|
+
*/
|
721
|
+
_getDataSource: function()
|
722
|
+
{
|
723
|
+
return this._dataSource;
|
724
|
+
},
|
725
|
+
|
726
|
+
/**
|
727
|
+
* Setter for the dataSource attribute.
|
728
|
+
*
|
729
|
+
* @method _setDataSource
|
730
|
+
* @private
|
731
|
+
*/
|
732
|
+
_setDataSource: function(value)
|
733
|
+
{
|
734
|
+
this._dataSource = value;
|
735
|
+
this.refreshData();
|
736
|
+
},
|
737
|
+
|
738
|
+
/**
|
739
|
+
* Storage for the series attribute.
|
740
|
+
*
|
741
|
+
* @property _seriesDefs
|
742
|
+
* @private
|
743
|
+
*/
|
744
|
+
_seriesDefs: null,
|
745
|
+
|
746
|
+
/**
|
747
|
+
* Getter for the series attribute.
|
748
|
+
*
|
749
|
+
* @method _getSeriesDefs
|
750
|
+
* @private
|
751
|
+
*/
|
752
|
+
_getSeriesDefs: function()
|
753
|
+
{
|
754
|
+
return this._seriesDefs;
|
755
|
+
},
|
756
|
+
|
757
|
+
/**
|
758
|
+
* Setter for the series attribute.
|
759
|
+
*
|
760
|
+
* @method _setSeriesDefs
|
761
|
+
* @private
|
762
|
+
*/
|
763
|
+
_setSeriesDefs: function(value)
|
764
|
+
{
|
765
|
+
this._seriesDefs = value;
|
766
|
+
this.refreshData();
|
767
|
+
},
|
768
|
+
|
769
|
+
/**
|
770
|
+
* Getter for the categoryNames attribute.
|
771
|
+
*
|
772
|
+
* @method _getCategoryNames
|
773
|
+
* @private
|
774
|
+
*/
|
775
|
+
_getCategoryNames: function()
|
776
|
+
{
|
777
|
+
return this._swf.getCategoryNames();
|
778
|
+
},
|
779
|
+
|
780
|
+
/**
|
781
|
+
* Setter for the categoryNames attribute.
|
782
|
+
*
|
783
|
+
* @method _setCategoryNames
|
784
|
+
* @private
|
785
|
+
*/
|
786
|
+
_setCategoryNames: function(value)
|
787
|
+
{
|
788
|
+
this._swf.setCategoryNames(value);
|
789
|
+
},
|
790
|
+
|
791
|
+
/**
|
792
|
+
* Setter for the dataTipFunction attribute.
|
793
|
+
*
|
794
|
+
* @method _setDataTipFunction
|
795
|
+
* @private
|
796
|
+
*/
|
797
|
+
_setDataTipFunction: function(value)
|
798
|
+
{
|
799
|
+
if(this._dataTipFunction)
|
800
|
+
{
|
801
|
+
YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);
|
802
|
+
}
|
803
|
+
|
804
|
+
if(value)
|
805
|
+
{
|
806
|
+
this._dataTipFunction = value = YAHOO.widget.Chart.getFunctionReference(value);
|
807
|
+
}
|
808
|
+
this._swf.setDataTipFunction(value);
|
809
|
+
},
|
810
|
+
|
811
|
+
/**
|
812
|
+
* Setter for the legendLabelFunction attribute.
|
813
|
+
*
|
814
|
+
* @method _setLegendLabelFunction
|
815
|
+
* @private
|
816
|
+
*/
|
817
|
+
_setLegendLabelFunction: function(value)
|
818
|
+
{
|
819
|
+
if(this._legendLabelFunction)
|
820
|
+
{
|
821
|
+
YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);
|
822
|
+
}
|
823
|
+
|
824
|
+
if(value)
|
825
|
+
{
|
826
|
+
this._legendLabelFunction = value = YAHOO.widget.Chart.getFunctionReference(value);
|
827
|
+
}
|
828
|
+
this._swf.setLegendLabelFunction(value);
|
829
|
+
},
|
830
|
+
|
831
|
+
/**
|
832
|
+
* Getter for the polling attribute.
|
833
|
+
*
|
834
|
+
* @method _getPolling
|
835
|
+
* @private
|
836
|
+
*/
|
837
|
+
_getPolling: function()
|
838
|
+
{
|
839
|
+
return this._pollingInterval;
|
840
|
+
},
|
841
|
+
|
842
|
+
/**
|
843
|
+
* Setter for the polling attribute.
|
844
|
+
*
|
845
|
+
* @method _setPolling
|
846
|
+
* @private
|
847
|
+
*/
|
848
|
+
_setPolling: function(value)
|
849
|
+
{
|
850
|
+
this._pollingInterval = value;
|
851
|
+
this.refreshData();
|
852
|
+
},
|
853
|
+
|
854
|
+
/**
|
855
|
+
* The javascript wrapper for the swf object
|
856
|
+
*
|
857
|
+
* @property _swfEmbed
|
858
|
+
* @type swf
|
859
|
+
* @private
|
860
|
+
*/
|
861
|
+
_swfEmbed: null,
|
862
|
+
|
863
|
+
/**
|
864
|
+
* The URL of the SWF file.
|
865
|
+
* @property _swfURL
|
866
|
+
* @type String
|
867
|
+
* @private
|
868
|
+
*/
|
869
|
+
_swfURL: null,
|
870
|
+
|
871
|
+
/**
|
872
|
+
* The ID of the containing DIV.
|
873
|
+
* @property _containerID
|
874
|
+
* @type String
|
875
|
+
* @private
|
876
|
+
*/
|
877
|
+
_containerID: null,
|
878
|
+
|
879
|
+
/**
|
880
|
+
* A reference to the embedded SWF file.
|
881
|
+
* @property _swf
|
882
|
+
* @private
|
883
|
+
*/
|
884
|
+
_swf: null,
|
885
|
+
|
886
|
+
/**
|
887
|
+
* The id of this instance.
|
888
|
+
* @property _id
|
889
|
+
* @type String
|
890
|
+
* @private
|
891
|
+
*/
|
892
|
+
_id: null,
|
893
|
+
|
894
|
+
/**
|
895
|
+
* Indicates whether the SWF has been initialized and is ready
|
896
|
+
* to communicate with JavaScript
|
897
|
+
* @property _initialized
|
898
|
+
* @type Boolean
|
899
|
+
* @private
|
900
|
+
*/
|
901
|
+
_initialized: false,
|
902
|
+
|
903
|
+
/**
|
904
|
+
* The initializing attributes are stored here until the SWF is ready.
|
905
|
+
* @property _attributes
|
906
|
+
* @type Object
|
907
|
+
* @private
|
908
|
+
*/
|
909
|
+
_attributes: null, //the intializing attributes
|
910
|
+
|
911
|
+
set: function(name, value)
|
912
|
+
{
|
913
|
+
//save all the attributes in case the swf reloads
|
914
|
+
//so that we can pass them in again
|
915
|
+
this._attributes[name] = value;
|
916
|
+
YAHOO.widget.Chart.superclass.set.call(this, name, value);
|
917
|
+
},
|
918
|
+
|
919
|
+
/**
|
920
|
+
* Getter for swfURL attribute.
|
921
|
+
*
|
922
|
+
* @method _getSWFURL
|
923
|
+
* @private
|
924
|
+
*/
|
925
|
+
_getSWFURL: function()
|
926
|
+
{
|
927
|
+
return this._swfURL;
|
928
|
+
},
|
929
|
+
|
930
|
+
/**
|
931
|
+
* Getter for altText attribute.
|
932
|
+
*
|
933
|
+
* @method _getAltText
|
934
|
+
* @private
|
935
|
+
*/
|
936
|
+
_getAltText: function()
|
937
|
+
{
|
938
|
+
return this._swf.getAltText();
|
939
|
+
},
|
940
|
+
|
941
|
+
/**
|
942
|
+
* Setter for altText attribute.
|
943
|
+
*
|
944
|
+
* @method _setAltText
|
945
|
+
* @private
|
946
|
+
*/
|
947
|
+
_setAltText: function(value)
|
948
|
+
{
|
949
|
+
this._swf.setAltText(value);
|
950
|
+
}
|
951
|
+
});
|
952
|
+
|
953
|
+
/**
|
954
|
+
* The number of proxy functions that have been created.
|
955
|
+
* @static
|
956
|
+
* @private
|
957
|
+
*/
|
958
|
+
YAHOO.widget.Chart.proxyFunctionCount = 0;
|
959
|
+
|
960
|
+
/**
|
961
|
+
* Creates a globally accessible function that wraps a function reference.
|
962
|
+
* Returns the proxy function's name as a string for use by the SWF through
|
963
|
+
* ExternalInterface.
|
964
|
+
*
|
965
|
+
* @method YAHOO.widget.Chart.createProxyFunction
|
966
|
+
* @static
|
967
|
+
* @private
|
968
|
+
*/
|
969
|
+
YAHOO.widget.Chart.createProxyFunction = function(func, scope)
|
970
|
+
{
|
971
|
+
var scope = scope || null;
|
972
|
+
var index = YAHOO.widget.Chart.proxyFunctionCount;
|
973
|
+
YAHOO.widget.Chart["proxyFunction" + index] = function()
|
974
|
+
{
|
975
|
+
return func.apply(scope, arguments);
|
976
|
+
};
|
977
|
+
YAHOO.widget.Chart.proxyFunctionCount++;
|
978
|
+
return "YAHOO.widget.Chart.proxyFunction" + index.toString();
|
979
|
+
};
|
980
|
+
|
981
|
+
/**
|
982
|
+
* Uses YAHOO.widget.Chart.createProxyFunction to return string
|
983
|
+
* reference to a function.
|
984
|
+
*
|
985
|
+
* @method YAHOO.widget.Chart.getFunctionReference
|
986
|
+
* @static
|
987
|
+
* @private
|
988
|
+
*/
|
989
|
+
YAHOO.widget.Chart.getFunctionReference = function(value)
|
990
|
+
{
|
991
|
+
if(typeof value == "function")
|
992
|
+
{
|
993
|
+
value = YAHOO.widget.Chart.createProxyFunction(value);
|
994
|
+
}
|
995
|
+
else if(value.func && typeof value.func == "function")
|
996
|
+
{
|
997
|
+
var args = [value.func];
|
998
|
+
if(value.scope && typeof value.scope == "object")
|
999
|
+
{
|
1000
|
+
args.push(value.scope);
|
1001
|
+
}
|
1002
|
+
value = YAHOO.widget.Chart.createProxyFunction.apply(this, args);
|
1003
|
+
}
|
1004
|
+
return value;
|
1005
|
+
}
|
1006
|
+
|
1007
|
+
/**
|
1008
|
+
* Removes a function created with createProxyFunction()
|
1009
|
+
*
|
1010
|
+
* @method YAHOO.widget.Chart.removeProxyFunction
|
1011
|
+
* @static
|
1012
|
+
* @private
|
1013
|
+
*/
|
1014
|
+
YAHOO.widget.Chart.removeProxyFunction = function(funcName)
|
1015
|
+
{
|
1016
|
+
//quick error check
|
1017
|
+
if(!funcName || funcName.indexOf("YAHOO.widget.Chart.proxyFunction") < 0)
|
1018
|
+
{
|
1019
|
+
return;
|
1020
|
+
}
|
1021
|
+
|
1022
|
+
funcName = funcName.substr(26);
|
1023
|
+
YAHOO.widget.Chart[funcName] = null;
|
1024
|
+
};
|
1025
|
+
|
1026
|
+
/**
|
1027
|
+
* Storage for the dataTipFunction attribute.
|
1028
|
+
*
|
1029
|
+
* @property Chart.SWFURL
|
1030
|
+
* @private
|
1031
|
+
* @static
|
1032
|
+
* @final
|
1033
|
+
* @default "assets/charts.swf"
|
1034
|
+
*/
|
1035
|
+
YAHOO.widget.Chart.SWFURL = "assets/charts.swf";
|
1036
|
+
/**
|
1037
|
+
* PieChart class for the YUI Charts widget.
|
1038
|
+
*
|
1039
|
+
* @namespace YAHOO.widget
|
1040
|
+
* @class PieChart
|
1041
|
+
* @uses YAHOO.widget.Chart
|
1042
|
+
* @constructor
|
1043
|
+
* @param containerId {HTMLElement} Container element for the Flash Player instance.
|
1044
|
+
* @param dataSource {YAHOO.util.DataSource} DataSource instance.
|
1045
|
+
* @param attributes {object} (optional) Object literal of configuration values.
|
1046
|
+
*/
|
1047
|
+
YAHOO.widget.PieChart = function(containerId, dataSource, attributes)
|
1048
|
+
{
|
1049
|
+
YAHOO.widget.PieChart.superclass.constructor.call(this, "pie", containerId, dataSource, attributes);
|
1050
|
+
};
|
1051
|
+
|
1052
|
+
YAHOO.lang.extend(YAHOO.widget.PieChart, YAHOO.widget.Chart,
|
1053
|
+
{
|
1054
|
+
/**
|
1055
|
+
* Initializes the attributes.
|
1056
|
+
*
|
1057
|
+
* @method _initAttributes
|
1058
|
+
* @private
|
1059
|
+
*/
|
1060
|
+
_initAttributes: function(attributes)
|
1061
|
+
{
|
1062
|
+
YAHOO.widget.PieChart.superclass._initAttributes.call(this, attributes);
|
1063
|
+
|
1064
|
+
/**
|
1065
|
+
* @attribute dataField
|
1066
|
+
* @description The field in each item that corresponds to the data value.
|
1067
|
+
* @type String
|
1068
|
+
*/
|
1069
|
+
this.setAttributeConfig("dataField",
|
1070
|
+
{
|
1071
|
+
validator: YAHOO.lang.isString,
|
1072
|
+
method: this._setDataField,
|
1073
|
+
getter: this._getDataField
|
1074
|
+
});
|
1075
|
+
|
1076
|
+
/**
|
1077
|
+
* @attribute categoryField
|
1078
|
+
* @description The field in each item that corresponds to the category value.
|
1079
|
+
* @type String
|
1080
|
+
*/
|
1081
|
+
this.setAttributeConfig("categoryField",
|
1082
|
+
{
|
1083
|
+
validator: YAHOO.lang.isString,
|
1084
|
+
method: this._setCategoryField,
|
1085
|
+
getter: this._getCategoryField
|
1086
|
+
});
|
1087
|
+
},
|
1088
|
+
|
1089
|
+
/**
|
1090
|
+
* Getter for the dataField attribute.
|
1091
|
+
*
|
1092
|
+
* @method _getDataField
|
1093
|
+
* @private
|
1094
|
+
*/
|
1095
|
+
_getDataField: function()
|
1096
|
+
{
|
1097
|
+
return this._swf.getDataField();
|
1098
|
+
},
|
1099
|
+
|
1100
|
+
/**
|
1101
|
+
* Setter for the dataField attribute.
|
1102
|
+
*
|
1103
|
+
* @method _setDataField
|
1104
|
+
* @private
|
1105
|
+
*/
|
1106
|
+
_setDataField: function(value)
|
1107
|
+
{
|
1108
|
+
this._swf.setDataField(value);
|
1109
|
+
},
|
1110
|
+
|
1111
|
+
/**
|
1112
|
+
* Getter for the categoryField attribute.
|
1113
|
+
*
|
1114
|
+
* @method _getCategoryField
|
1115
|
+
* @private
|
1116
|
+
*/
|
1117
|
+
_getCategoryField: function()
|
1118
|
+
{
|
1119
|
+
return this._swf.getCategoryField();
|
1120
|
+
},
|
1121
|
+
|
1122
|
+
/**
|
1123
|
+
* Setter for the categoryField attribute.
|
1124
|
+
*
|
1125
|
+
* @method _setCategoryField
|
1126
|
+
* @private
|
1127
|
+
*/
|
1128
|
+
_setCategoryField: function(value)
|
1129
|
+
{
|
1130
|
+
this._swf.setCategoryField(value);
|
1131
|
+
}
|
1132
|
+
});
|
1133
|
+
/**
|
1134
|
+
* CartesianChart class for the YUI Charts widget.
|
1135
|
+
*
|
1136
|
+
* @namespace YAHOO.widget
|
1137
|
+
* @class CartesianChart
|
1138
|
+
* @uses YAHOO.widget.Chart
|
1139
|
+
* @constructor
|
1140
|
+
* @param type {String} The char type. May be "line", "column", or "bar"
|
1141
|
+
* @param containerId {HTMLElement} Container element for the Flash Player instance.
|
1142
|
+
* @param dataSource {YAHOO.util.DataSource} DataSource instance.
|
1143
|
+
* @param attributes {object} (optional) Object literal of configuration values.
|
1144
|
+
*/
|
1145
|
+
YAHOO.widget.CartesianChart = function(type, containerId, dataSource, attributes)
|
1146
|
+
{
|
1147
|
+
YAHOO.widget.CartesianChart.superclass.constructor.call(this, type, containerId, dataSource, attributes);
|
1148
|
+
};
|
1149
|
+
|
1150
|
+
YAHOO.lang.extend(YAHOO.widget.CartesianChart, YAHOO.widget.Chart,
|
1151
|
+
{
|
1152
|
+
/**
|
1153
|
+
* Stores a reference to the xAxis labelFunction created by
|
1154
|
+
* YAHOO.widget.Chart.createProxyFunction()
|
1155
|
+
* @property _xAxisLabelFunctions
|
1156
|
+
* @type String
|
1157
|
+
* @private
|
1158
|
+
*/
|
1159
|
+
_xAxisLabelFunctions: [],
|
1160
|
+
|
1161
|
+
/**
|
1162
|
+
* Stores a reference to the yAxis labelFunctions created by
|
1163
|
+
* YAHOO.widget.Chart.createProxyFunction()
|
1164
|
+
* @property _yAxisLabelFunctions
|
1165
|
+
* @type Array
|
1166
|
+
* @private
|
1167
|
+
*/
|
1168
|
+
_yAxisLabelFunctions: [],
|
1169
|
+
|
1170
|
+
destroy: function()
|
1171
|
+
{
|
1172
|
+
//remove proxy functions
|
1173
|
+
this._removeAxisFunctions(this._xAxisLabelFunctions);
|
1174
|
+
this._removeAxisFunctions(this._yAxisLabelFunctions);
|
1175
|
+
|
1176
|
+
//call last
|
1177
|
+
YAHOO.widget.CartesianChart.superclass.destroy.call(this);
|
1178
|
+
},
|
1179
|
+
|
1180
|
+
/**
|
1181
|
+
* Initializes the attributes.
|
1182
|
+
*
|
1183
|
+
* @method _initAttributes
|
1184
|
+
* @private
|
1185
|
+
*/
|
1186
|
+
_initAttributes: function(attributes)
|
1187
|
+
{
|
1188
|
+
YAHOO.widget.CartesianChart.superclass._initAttributes.call(this, attributes);
|
1189
|
+
|
1190
|
+
/**
|
1191
|
+
* @attribute xField
|
1192
|
+
* @description The field in each item that corresponds to a value on the x axis.
|
1193
|
+
* @type String
|
1194
|
+
*/
|
1195
|
+
this.setAttributeConfig("xField",
|
1196
|
+
{
|
1197
|
+
validator: YAHOO.lang.isString,
|
1198
|
+
method: this._setXField,
|
1199
|
+
getter: this._getXField
|
1200
|
+
});
|
1201
|
+
|
1202
|
+
/**
|
1203
|
+
* @attribute yField
|
1204
|
+
* @description The field in each item that corresponds to a value on the x axis.
|
1205
|
+
* @type String
|
1206
|
+
*/
|
1207
|
+
this.setAttributeConfig("yField",
|
1208
|
+
{
|
1209
|
+
validator: YAHOO.lang.isString,
|
1210
|
+
method: this._setYField,
|
1211
|
+
getter: this._getYField
|
1212
|
+
});
|
1213
|
+
|
1214
|
+
/**
|
1215
|
+
* @attribute xAxis
|
1216
|
+
* @description A custom configuration for the horizontal x axis.
|
1217
|
+
* @type Axis
|
1218
|
+
*/
|
1219
|
+
this.setAttributeConfig("xAxis",
|
1220
|
+
{
|
1221
|
+
method: this._setXAxis
|
1222
|
+
});
|
1223
|
+
|
1224
|
+
/**
|
1225
|
+
* @attribute xAxes
|
1226
|
+
* @description Custom configurations for the horizontal x axes.
|
1227
|
+
* @type Array
|
1228
|
+
*/
|
1229
|
+
this.setAttributeConfig("xAxes",
|
1230
|
+
{
|
1231
|
+
method: this._setXAxes
|
1232
|
+
});
|
1233
|
+
|
1234
|
+
/**
|
1235
|
+
* @attribute yAxis
|
1236
|
+
* @description A custom configuration for the vertical y axis.
|
1237
|
+
* @type Axis
|
1238
|
+
*/
|
1239
|
+
this.setAttributeConfig("yAxis",
|
1240
|
+
{
|
1241
|
+
method: this._setYAxis
|
1242
|
+
});
|
1243
|
+
|
1244
|
+
/**
|
1245
|
+
* @attribute yAxes
|
1246
|
+
* @description Custom configurations for the vertical y axes.
|
1247
|
+
* @type Array
|
1248
|
+
*/
|
1249
|
+
this.setAttributeConfig("yAxes",
|
1250
|
+
{
|
1251
|
+
method: this._setYAxes
|
1252
|
+
});
|
1253
|
+
|
1254
|
+
/**
|
1255
|
+
* @attribute constrainViewport
|
1256
|
+
* @description Determines whether the viewport is constrained to prevent series data from overflow.
|
1257
|
+
* @type Boolean
|
1258
|
+
*/
|
1259
|
+
this.setAttributeConfig("constrainViewport",
|
1260
|
+
{
|
1261
|
+
method: this._setConstrainViewport
|
1262
|
+
});
|
1263
|
+
},
|
1264
|
+
|
1265
|
+
/**
|
1266
|
+
* Getter for the xField attribute.
|
1267
|
+
*
|
1268
|
+
* @method _getXField
|
1269
|
+
* @private
|
1270
|
+
*/
|
1271
|
+
_getXField: function()
|
1272
|
+
{
|
1273
|
+
return this._swf.getHorizontalField();
|
1274
|
+
},
|
1275
|
+
|
1276
|
+
/**
|
1277
|
+
* Setter for the xField attribute.
|
1278
|
+
*
|
1279
|
+
* @method _setXField
|
1280
|
+
* @private
|
1281
|
+
*/
|
1282
|
+
_setXField: function(value)
|
1283
|
+
{
|
1284
|
+
this._swf.setHorizontalField(value);
|
1285
|
+
},
|
1286
|
+
|
1287
|
+
/**
|
1288
|
+
* Getter for the yField attribute.
|
1289
|
+
*
|
1290
|
+
* @method _getYField
|
1291
|
+
* @private
|
1292
|
+
*/
|
1293
|
+
_getYField: function()
|
1294
|
+
{
|
1295
|
+
return this._swf.getVerticalField();
|
1296
|
+
},
|
1297
|
+
|
1298
|
+
/**
|
1299
|
+
* Setter for the yField attribute.
|
1300
|
+
*
|
1301
|
+
* @method _setYField
|
1302
|
+
* @private
|
1303
|
+
*/
|
1304
|
+
_setYField: function(value)
|
1305
|
+
{
|
1306
|
+
this._swf.setVerticalField(value);
|
1307
|
+
},
|
1308
|
+
|
1309
|
+
/**
|
1310
|
+
* Receives an axis object, creates a proxy function for
|
1311
|
+
* the labelFunction and returns the updated object.
|
1312
|
+
*
|
1313
|
+
* @method _getClonedAxis
|
1314
|
+
* @private
|
1315
|
+
*/
|
1316
|
+
_getClonedAxis: function(value)
|
1317
|
+
{
|
1318
|
+
var clonedAxis = {};
|
1319
|
+
for(var prop in value)
|
1320
|
+
{
|
1321
|
+
if(prop == "labelFunction")
|
1322
|
+
{
|
1323
|
+
if(value.labelFunction && value.labelFunction !== null)
|
1324
|
+
{
|
1325
|
+
clonedAxis.labelFunction = YAHOO.widget.Chart.getFunctionReference(value.labelFunction);
|
1326
|
+
}
|
1327
|
+
}
|
1328
|
+
else
|
1329
|
+
{
|
1330
|
+
clonedAxis[prop] = value[prop];
|
1331
|
+
}
|
1332
|
+
}
|
1333
|
+
return clonedAxis;
|
1334
|
+
},
|
1335
|
+
|
1336
|
+
/**
|
1337
|
+
* Removes axis functions contained in an array
|
1338
|
+
*
|
1339
|
+
* @method _removeAxisFunctions
|
1340
|
+
* @private
|
1341
|
+
*/
|
1342
|
+
_removeAxisFunctions: function(axisFunctions)
|
1343
|
+
{
|
1344
|
+
if(axisFunctions && axisFunctions.length > 0)
|
1345
|
+
{
|
1346
|
+
var len = axisFunctions.length;
|
1347
|
+
for(var i = 0; i < len; i++)
|
1348
|
+
{
|
1349
|
+
if(axisFunctions[i] !== null)
|
1350
|
+
{
|
1351
|
+
YAHOO.widget.Chart.removeProxyFunction(axisFunctions[i]);
|
1352
|
+
}
|
1353
|
+
}
|
1354
|
+
axisFunctions = [];
|
1355
|
+
}
|
1356
|
+
},
|
1357
|
+
|
1358
|
+
/**
|
1359
|
+
* Setter for the xAxis attribute.
|
1360
|
+
*
|
1361
|
+
* @method _setXAxis
|
1362
|
+
* @private
|
1363
|
+
*/
|
1364
|
+
_setXAxis: function(value)
|
1365
|
+
{
|
1366
|
+
if(value.position != "bottom" && value.position != "top") value.position = "bottom";
|
1367
|
+
this._removeAxisFunctions(this._xAxisLabelFunctions);
|
1368
|
+
value = this._getClonedAxis(value);
|
1369
|
+
this._xAxisLabelFunctions.push(value.labelFunction);
|
1370
|
+
this._swf.setHorizontalAxis(value);
|
1371
|
+
},
|
1372
|
+
|
1373
|
+
/**
|
1374
|
+
* Setter for the xAxes attribute
|
1375
|
+
*
|
1376
|
+
* @method _setXAxes
|
1377
|
+
* @private
|
1378
|
+
*/
|
1379
|
+
_setXAxes: function(value)
|
1380
|
+
{
|
1381
|
+
this._removeAxisFunctions(this._xAxisLabelFunctions);
|
1382
|
+
var len = value.length;
|
1383
|
+
for(var i = 0; i < len; i++)
|
1384
|
+
{
|
1385
|
+
if(value[i].position == "left") value[i].position = "bottom";
|
1386
|
+
value[i] = this._getClonedAxis(value[i]);
|
1387
|
+
if(value[i].labelFunction) this._xAxisLabelFunctions.push(value[i].labelFunction);
|
1388
|
+
this._swf.setHorizontalAxis(value[i]);
|
1389
|
+
}
|
1390
|
+
},
|
1391
|
+
|
1392
|
+
/**
|
1393
|
+
* Setter for the yAxis attribute.
|
1394
|
+
*
|
1395
|
+
* @method _setYAxis
|
1396
|
+
* @private
|
1397
|
+
*/
|
1398
|
+
_setYAxis: function(value)
|
1399
|
+
{
|
1400
|
+
this._removeAxisFunctions(this._yAxisLabelFunctions);
|
1401
|
+
value = this._getClonedAxis(value);
|
1402
|
+
this._yAxisLabelFunctions.push(value.labelFunction);
|
1403
|
+
this._swf.setVerticalAxis(value);
|
1404
|
+
},
|
1405
|
+
|
1406
|
+
/**
|
1407
|
+
* Setter for the yAxes attribute.
|
1408
|
+
*
|
1409
|
+
* @method _setYAxes
|
1410
|
+
* @private
|
1411
|
+
*/
|
1412
|
+
_setYAxes: function(value)
|
1413
|
+
{
|
1414
|
+
this._removeAxisFunctions(this._yAxisLabelFunctions);
|
1415
|
+
var len = value.length;
|
1416
|
+
for(var i = 0; i < len; i++)
|
1417
|
+
{
|
1418
|
+
value[i] = this._getClonedAxis(value[i]);
|
1419
|
+
if(value[i].labelFunction) this._yAxisLabelFunctions.push(value[i].labelFunction);
|
1420
|
+
this._swf.setVerticalAxis(value[i]);
|
1421
|
+
}
|
1422
|
+
},
|
1423
|
+
|
1424
|
+
/**
|
1425
|
+
* Setter for the constrainViewport attribute
|
1426
|
+
*
|
1427
|
+
* @method _setConstrainViewport
|
1428
|
+
* @private
|
1429
|
+
*/
|
1430
|
+
_setConstrainViewport: function(value)
|
1431
|
+
{
|
1432
|
+
this._swf.setConstrainViewport(value);
|
1433
|
+
},
|
1434
|
+
|
1435
|
+
/**
|
1436
|
+
* Sets the style object for a single series based on its index
|
1437
|
+
*
|
1438
|
+
* @method setSeriesStylesByIndex
|
1439
|
+
* @param index {Number} The position within the series definition to apply the style
|
1440
|
+
* @param style {object} Style object to be applied to the selected series
|
1441
|
+
*/
|
1442
|
+
setSeriesStylesByIndex:function(index, style)
|
1443
|
+
{
|
1444
|
+
style = YAHOO.lang.JSON.stringify(style);
|
1445
|
+
if(this._swf && this._swf.setSeriesStylesByIndex) this._swf.setSeriesStylesByIndex(index, style);
|
1446
|
+
}
|
1447
|
+
});
|
1448
|
+
/**
|
1449
|
+
* LineChart class for the YUI Charts widget.
|
1450
|
+
*
|
1451
|
+
* @namespace YAHOO.widget
|
1452
|
+
* @class LineChart
|
1453
|
+
* @uses YAHOO.widget.CartesianChart
|
1454
|
+
* @constructor
|
1455
|
+
* @param containerId {HTMLElement} Container element for the Flash Player instance.
|
1456
|
+
* @param dataSource {YAHOO.util.DataSource} DataSource instance.
|
1457
|
+
* @param attributes {object} (optional) Object literal of configuration values.
|
1458
|
+
*/
|
1459
|
+
YAHOO.widget.LineChart = function(containerId, dataSource, attributes)
|
1460
|
+
{
|
1461
|
+
YAHOO.widget.LineChart.superclass.constructor.call(this, "line", containerId, dataSource, attributes);
|
1462
|
+
};
|
1463
|
+
|
1464
|
+
YAHOO.lang.extend(YAHOO.widget.LineChart, YAHOO.widget.CartesianChart);
|
1465
|
+
|
1466
|
+
/**
|
1467
|
+
* ColumnChart class for the YUI Charts widget.
|
1468
|
+
*
|
1469
|
+
* @namespace YAHOO.widget
|
1470
|
+
* @class ColumnChart
|
1471
|
+
* @uses YAHOO.widget.CartesianChart
|
1472
|
+
* @constructor
|
1473
|
+
* @param containerId {HTMLElement} Container element for the Flash Player instance.
|
1474
|
+
* @param dataSource {YAHOO.util.DataSource} DataSource instance.
|
1475
|
+
* @param attributes {object} (optional) Object literal of configuration values.
|
1476
|
+
*/
|
1477
|
+
YAHOO.widget.ColumnChart = function(containerId, dataSource, attributes)
|
1478
|
+
{
|
1479
|
+
YAHOO.widget.ColumnChart.superclass.constructor.call(this, "column", containerId, dataSource, attributes);
|
1480
|
+
};
|
1481
|
+
|
1482
|
+
YAHOO.lang.extend(YAHOO.widget.ColumnChart, YAHOO.widget.CartesianChart);
|
1483
|
+
|
1484
|
+
/**
|
1485
|
+
* BarChart class for the YUI Charts widget.
|
1486
|
+
*
|
1487
|
+
* @namespace YAHOO.widget
|
1488
|
+
* @class BarChart
|
1489
|
+
* @uses YAHOO.widget.CartesianChart
|
1490
|
+
* @constructor
|
1491
|
+
* @param containerId {HTMLElement} Container element for the Flash Player instance.
|
1492
|
+
* @param dataSource {YAHOO.util.DataSource} DataSource instance.
|
1493
|
+
* @param attributes {object} (optional) Object literal of configuration values.
|
1494
|
+
*/
|
1495
|
+
YAHOO.widget.BarChart = function(containerId, dataSource, attributes)
|
1496
|
+
{
|
1497
|
+
YAHOO.widget.BarChart.superclass.constructor.call(this, "bar", containerId, dataSource, attributes);
|
1498
|
+
};
|
1499
|
+
|
1500
|
+
YAHOO.lang.extend(YAHOO.widget.BarChart, YAHOO.widget.CartesianChart);
|
1501
|
+
|
1502
|
+
/**
|
1503
|
+
* StackedColumnChart class for the YUI Charts widget.
|
1504
|
+
*
|
1505
|
+
* @namespace YAHOO.widget
|
1506
|
+
* @class StackedColumnChart
|
1507
|
+
* @uses YAHOO.widget.CartesianChart
|
1508
|
+
* @constructor
|
1509
|
+
* @param containerId {HTMLElement} Container element for the Flash Player instance.
|
1510
|
+
* @param dataSource {YAHOO.util.DataSource} DataSource instance.
|
1511
|
+
* @param attributes {object} (optional) Object literal of configuration values.
|
1512
|
+
*/
|
1513
|
+
YAHOO.widget.StackedColumnChart = function(containerId, dataSource, attributes)
|
1514
|
+
{
|
1515
|
+
YAHOO.widget.StackedColumnChart.superclass.constructor.call(this, "stackcolumn", containerId, dataSource, attributes);
|
1516
|
+
};
|
1517
|
+
|
1518
|
+
YAHOO.lang.extend(YAHOO.widget.StackedColumnChart, YAHOO.widget.CartesianChart);
|
1519
|
+
|
1520
|
+
/**
|
1521
|
+
* StackedBarChart class for the YUI Charts widget.
|
1522
|
+
*
|
1523
|
+
* @namespace YAHOO.widget
|
1524
|
+
* @class StackedBarChart
|
1525
|
+
* @uses YAHOO.widget.CartesianChart
|
1526
|
+
* @constructor
|
1527
|
+
* @param containerId {HTMLElement} Container element for the Flash Player instance.
|
1528
|
+
* @param dataSource {YAHOO.util.DataSource} DataSource instance.
|
1529
|
+
* @param attributes {object} (optional) Object literal of configuration values.
|
1530
|
+
*/
|
1531
|
+
YAHOO.widget.StackedBarChart = function(containerId, dataSource, attributes)
|
1532
|
+
{
|
1533
|
+
YAHOO.widget.StackedBarChart.superclass.constructor.call(this, "stackbar", containerId, dataSource, attributes);
|
1534
|
+
};
|
1535
|
+
|
1536
|
+
YAHOO.lang.extend(YAHOO.widget.StackedBarChart, YAHOO.widget.CartesianChart);
|
1537
|
+
/**
|
1538
|
+
* Defines a CartesianChart's vertical or horizontal axis.
|
1539
|
+
*
|
1540
|
+
* @namespace YAHOO.widget
|
1541
|
+
* @class Axis
|
1542
|
+
* @constructor
|
1543
|
+
*/
|
1544
|
+
YAHOO.widget.Axis = function()
|
1545
|
+
{
|
1546
|
+
};
|
1547
|
+
|
1548
|
+
YAHOO.widget.Axis.prototype =
|
1549
|
+
{
|
1550
|
+
/**
|
1551
|
+
* The type of axis.
|
1552
|
+
*
|
1553
|
+
* @property type
|
1554
|
+
* @type String
|
1555
|
+
*/
|
1556
|
+
type: null,
|
1557
|
+
|
1558
|
+
/**
|
1559
|
+
* If true, the items on the axis will be drawn in opposite direction.
|
1560
|
+
*
|
1561
|
+
* @property reverse
|
1562
|
+
* @type Boolean
|
1563
|
+
*/
|
1564
|
+
reverse: false,
|
1565
|
+
|
1566
|
+
/**
|
1567
|
+
* A string reference to the globally-accessible function that may be called to
|
1568
|
+
* determine each of the label values for this axis. Also accepts function references.
|
1569
|
+
*
|
1570
|
+
* @property labelFunction
|
1571
|
+
* @type String
|
1572
|
+
*/
|
1573
|
+
labelFunction: null,
|
1574
|
+
|
1575
|
+
/**
|
1576
|
+
* The space, in pixels, between labels on an axis.
|
1577
|
+
*
|
1578
|
+
* @property labelSpacing
|
1579
|
+
* @type Number
|
1580
|
+
*/
|
1581
|
+
labelSpacing: 2,
|
1582
|
+
|
1583
|
+
/**
|
1584
|
+
* The text that will appear next to the axis to indicate information about the data that it displays.
|
1585
|
+
*
|
1586
|
+
* @property title
|
1587
|
+
* @type String
|
1588
|
+
*/
|
1589
|
+
title: null
|
1590
|
+
};
|
1591
|
+
/**
|
1592
|
+
* A type of axis whose units are measured in numeric values.
|
1593
|
+
*
|
1594
|
+
* @namespace YAHOO.widget
|
1595
|
+
* @class NumericAxis
|
1596
|
+
* @extends YAHOO.widget.Axis
|
1597
|
+
* @constructor
|
1598
|
+
*/
|
1599
|
+
YAHOO.widget.NumericAxis = function()
|
1600
|
+
{
|
1601
|
+
YAHOO.widget.NumericAxis.superclass.constructor.call(this);
|
1602
|
+
};
|
1603
|
+
|
1604
|
+
YAHOO.lang.extend(YAHOO.widget.NumericAxis, YAHOO.widget.Axis,
|
1605
|
+
{
|
1606
|
+
type: "numeric",
|
1607
|
+
|
1608
|
+
/**
|
1609
|
+
* The minimum value drawn by the axis. If not set explicitly, the axis minimum
|
1610
|
+
* will be calculated automatically.
|
1611
|
+
*
|
1612
|
+
* @property minimum
|
1613
|
+
* @type Number
|
1614
|
+
*/
|
1615
|
+
minimum: NaN,
|
1616
|
+
|
1617
|
+
/**
|
1618
|
+
* The maximum value drawn by the axis. If not set explicitly, the axis maximum
|
1619
|
+
* will be calculated automatically.
|
1620
|
+
*
|
1621
|
+
* @property maximum
|
1622
|
+
* @type Number
|
1623
|
+
*/
|
1624
|
+
maximum: NaN,
|
1625
|
+
|
1626
|
+
/**
|
1627
|
+
* The spacing between major intervals on this axis.
|
1628
|
+
*
|
1629
|
+
* @property majorUnit
|
1630
|
+
* @type Number
|
1631
|
+
*/
|
1632
|
+
majorUnit: NaN,
|
1633
|
+
|
1634
|
+
/**
|
1635
|
+
* The spacing between minor intervals on this axis.
|
1636
|
+
*
|
1637
|
+
* @property minorUnit
|
1638
|
+
* @type Number
|
1639
|
+
*/
|
1640
|
+
minorUnit: NaN,
|
1641
|
+
|
1642
|
+
/**
|
1643
|
+
* If true, the labels, ticks, gridlines, and other objects will snap to
|
1644
|
+
* the nearest major or minor unit. If false, their position will be based
|
1645
|
+
* on the minimum value.
|
1646
|
+
*
|
1647
|
+
* @property snapToUnits
|
1648
|
+
* @type Boolean
|
1649
|
+
*/
|
1650
|
+
snapToUnits: true,
|
1651
|
+
|
1652
|
+
/**
|
1653
|
+
* Series that are stackable will only stack when this value is set to true.
|
1654
|
+
*
|
1655
|
+
* @property stackingEnabled
|
1656
|
+
* @type Boolean
|
1657
|
+
*/
|
1658
|
+
stackingEnabled: false,
|
1659
|
+
|
1660
|
+
/**
|
1661
|
+
* If true, and the bounds are calculated automatically, either the minimum or
|
1662
|
+
* maximum will be set to zero.
|
1663
|
+
*
|
1664
|
+
* @property alwaysShowZero
|
1665
|
+
* @type Boolean
|
1666
|
+
*/
|
1667
|
+
alwaysShowZero: true,
|
1668
|
+
|
1669
|
+
/**
|
1670
|
+
* The scaling algorithm to use on this axis. May be "linear" or "logarithmic".
|
1671
|
+
*
|
1672
|
+
* @property scale
|
1673
|
+
* @type String
|
1674
|
+
*/
|
1675
|
+
scale: "linear",
|
1676
|
+
|
1677
|
+
/**
|
1678
|
+
* Indicates whether to round the major unit.
|
1679
|
+
*
|
1680
|
+
* @property roundMajorUnit
|
1681
|
+
* @type Boolean
|
1682
|
+
*/
|
1683
|
+
roundMajorUnit: true,
|
1684
|
+
|
1685
|
+
/**
|
1686
|
+
* Indicates whether to factor in the size of the labels when calculating a major unit.
|
1687
|
+
*
|
1688
|
+
* @property calculateByLabelSize
|
1689
|
+
* @type Boolean
|
1690
|
+
*/
|
1691
|
+
calculateByLabelSize: true,
|
1692
|
+
|
1693
|
+
/**
|
1694
|
+
* Indicates the position of the axis relative to the chart
|
1695
|
+
*
|
1696
|
+
* @property position
|
1697
|
+
* @type String
|
1698
|
+
*/
|
1699
|
+
position:"left",
|
1700
|
+
|
1701
|
+
/**
|
1702
|
+
* Indicates whether to extend maximum beyond data's maximum to the nearest
|
1703
|
+
* majorUnit.
|
1704
|
+
*
|
1705
|
+
* @property adjustMaximumByMajorUnit
|
1706
|
+
* @type Boolean
|
1707
|
+
*/
|
1708
|
+
adjustMaximumByMajorUnit:true,
|
1709
|
+
|
1710
|
+
/**
|
1711
|
+
* Indicates whether to extend the minimum beyond data's minimum to the nearest
|
1712
|
+
* majorUnit.
|
1713
|
+
*
|
1714
|
+
* @property adjustMinimumByMajorUnit
|
1715
|
+
* @type Boolean
|
1716
|
+
*/
|
1717
|
+
adjustMinimumByMajorUnit:true
|
1718
|
+
});
|
1719
|
+
/**
|
1720
|
+
* A type of axis whose units are measured in time-based values.
|
1721
|
+
*
|
1722
|
+
* @namespace YAHOO.widget
|
1723
|
+
* @class TimeAxis
|
1724
|
+
* @constructor
|
1725
|
+
*/
|
1726
|
+
YAHOO.widget.TimeAxis = function()
|
1727
|
+
{
|
1728
|
+
YAHOO.widget.TimeAxis.superclass.constructor.call(this);
|
1729
|
+
};
|
1730
|
+
|
1731
|
+
YAHOO.lang.extend(YAHOO.widget.TimeAxis, YAHOO.widget.Axis,
|
1732
|
+
{
|
1733
|
+
type: "time",
|
1734
|
+
|
1735
|
+
/**
|
1736
|
+
* The minimum value drawn by the axis. If not set explicitly, the axis minimum
|
1737
|
+
* will be calculated automatically.
|
1738
|
+
*
|
1739
|
+
* @property minimum
|
1740
|
+
* @type Date
|
1741
|
+
*/
|
1742
|
+
minimum: null,
|
1743
|
+
|
1744
|
+
/**
|
1745
|
+
* The maximum value drawn by the axis. If not set explicitly, the axis maximum
|
1746
|
+
* will be calculated automatically.
|
1747
|
+
*
|
1748
|
+
* @property maximum
|
1749
|
+
* @type Number
|
1750
|
+
*/
|
1751
|
+
maximum: null,
|
1752
|
+
|
1753
|
+
/**
|
1754
|
+
* The spacing between major intervals on this axis.
|
1755
|
+
*
|
1756
|
+
* @property majorUnit
|
1757
|
+
* @type Number
|
1758
|
+
*/
|
1759
|
+
majorUnit: NaN,
|
1760
|
+
|
1761
|
+
/**
|
1762
|
+
* The time unit used by the majorUnit.
|
1763
|
+
*
|
1764
|
+
* @property majorTimeUnit
|
1765
|
+
* @type String
|
1766
|
+
*/
|
1767
|
+
majorTimeUnit: null,
|
1768
|
+
|
1769
|
+
/**
|
1770
|
+
* The spacing between minor intervals on this axis.
|
1771
|
+
*
|
1772
|
+
* @property majorUnit
|
1773
|
+
* @type Number
|
1774
|
+
*/
|
1775
|
+
minorUnit: NaN,
|
1776
|
+
|
1777
|
+
/**
|
1778
|
+
* The time unit used by the minorUnit.
|
1779
|
+
*
|
1780
|
+
* @property majorTimeUnit
|
1781
|
+
* @type String
|
1782
|
+
*/
|
1783
|
+
minorTimeUnit: null,
|
1784
|
+
|
1785
|
+
/**
|
1786
|
+
* If true, the labels, ticks, gridlines, and other objects will snap to
|
1787
|
+
* the nearest major or minor unit. If false, their position will be based
|
1788
|
+
* on the minimum value.
|
1789
|
+
*
|
1790
|
+
* @property snapToUnits
|
1791
|
+
* @type Boolean
|
1792
|
+
*/
|
1793
|
+
snapToUnits: true,
|
1794
|
+
|
1795
|
+
/**
|
1796
|
+
* Series that are stackable will only stack when this value is set to true.
|
1797
|
+
*
|
1798
|
+
* @property stackingEnabled
|
1799
|
+
* @type Boolean
|
1800
|
+
*/
|
1801
|
+
stackingEnabled: false,
|
1802
|
+
|
1803
|
+
/**
|
1804
|
+
* Indicates whether to factor in the size of the labels when calculating a major unit.
|
1805
|
+
*
|
1806
|
+
* @property calculateByLabelSize
|
1807
|
+
* @type Boolean
|
1808
|
+
*/
|
1809
|
+
calculateByLabelSize: true
|
1810
|
+
});
|
1811
|
+
/**
|
1812
|
+
* A type of axis that displays items in categories.
|
1813
|
+
*
|
1814
|
+
* @namespace YAHOO.widget
|
1815
|
+
* @class CategoryAxis
|
1816
|
+
* @constructor
|
1817
|
+
*/
|
1818
|
+
YAHOO.widget.CategoryAxis = function()
|
1819
|
+
{
|
1820
|
+
YAHOO.widget.CategoryAxis.superclass.constructor.call(this);
|
1821
|
+
};
|
1822
|
+
|
1823
|
+
YAHOO.lang.extend(YAHOO.widget.CategoryAxis, YAHOO.widget.Axis,
|
1824
|
+
{
|
1825
|
+
type: "category",
|
1826
|
+
|
1827
|
+
/**
|
1828
|
+
* A list of category names to display along this axis.
|
1829
|
+
*
|
1830
|
+
* @property categoryNames
|
1831
|
+
* @type Array
|
1832
|
+
*/
|
1833
|
+
categoryNames: null,
|
1834
|
+
|
1835
|
+
/**
|
1836
|
+
* Indicates whether or not to calculate the number of categories (ticks and labels)
|
1837
|
+
* when there is not enough room to display all labels on the axis. If set to true, the axis
|
1838
|
+
* will determine the number of categories to plot. If not, all categories will be plotted.
|
1839
|
+
*
|
1840
|
+
* @property calculateCategoryCount
|
1841
|
+
* @type Boolean
|
1842
|
+
*/
|
1843
|
+
calculateCategoryCount: false
|
1844
|
+
});
|
1845
|
+
/**
|
1846
|
+
* Functionality common to most series. Generally, a <code>Series</code>
|
1847
|
+
* object shouldn't be instantiated directly. Instead, a subclass with a
|
1848
|
+
* concrete implementation should be used.
|
1849
|
+
*
|
1850
|
+
* @namespace YAHOO.widget
|
1851
|
+
* @class Series
|
1852
|
+
* @constructor
|
1853
|
+
*/
|
1854
|
+
YAHOO.widget.Series = function() {};
|
1855
|
+
|
1856
|
+
YAHOO.widget.Series.prototype =
|
1857
|
+
{
|
1858
|
+
/**
|
1859
|
+
* The type of series.
|
1860
|
+
*
|
1861
|
+
* @property type
|
1862
|
+
* @type String
|
1863
|
+
*/
|
1864
|
+
type: null,
|
1865
|
+
|
1866
|
+
/**
|
1867
|
+
* The human-readable name of the series.
|
1868
|
+
*
|
1869
|
+
* @property displayName
|
1870
|
+
* @type String
|
1871
|
+
*/
|
1872
|
+
displayName: null
|
1873
|
+
};
|
1874
|
+
|
1875
|
+
/**
|
1876
|
+
* Functionality common to most series appearing in cartesian charts.
|
1877
|
+
* Generally, a <code>CartesianSeries</code> object shouldn't be
|
1878
|
+
* instantiated directly. Instead, a subclass with a concrete implementation
|
1879
|
+
* should be used.
|
1880
|
+
*
|
1881
|
+
* @namespace YAHOO.widget
|
1882
|
+
* @class CartesianSeries
|
1883
|
+
* @uses YAHOO.widget.Series
|
1884
|
+
* @constructor
|
1885
|
+
*/
|
1886
|
+
YAHOO.widget.CartesianSeries = function()
|
1887
|
+
{
|
1888
|
+
YAHOO.widget.CartesianSeries.superclass.constructor.call(this);
|
1889
|
+
};
|
1890
|
+
|
1891
|
+
YAHOO.lang.extend(YAHOO.widget.CartesianSeries, YAHOO.widget.Series,
|
1892
|
+
{
|
1893
|
+
/**
|
1894
|
+
* The field used to access the x-axis value from the items from the data source.
|
1895
|
+
*
|
1896
|
+
* @property xField
|
1897
|
+
* @type String
|
1898
|
+
*/
|
1899
|
+
xField: null,
|
1900
|
+
|
1901
|
+
/**
|
1902
|
+
* The field used to access the y-axis value from the items from the data source.
|
1903
|
+
*
|
1904
|
+
* @property yField
|
1905
|
+
* @type String
|
1906
|
+
*/
|
1907
|
+
yField: null,
|
1908
|
+
|
1909
|
+
/**
|
1910
|
+
* Indicates which axis the series will bind to
|
1911
|
+
*
|
1912
|
+
* @property axis
|
1913
|
+
* @type String
|
1914
|
+
*/
|
1915
|
+
axis: "primary",
|
1916
|
+
|
1917
|
+
/**
|
1918
|
+
* When a Legend is present, indicates whether the series will show in the legend.
|
1919
|
+
*
|
1920
|
+
* @property showInLegend
|
1921
|
+
* @type Boolean
|
1922
|
+
*/
|
1923
|
+
showInLegend: true
|
1924
|
+
});
|
1925
|
+
|
1926
|
+
/**
|
1927
|
+
* ColumnSeries class for the YUI Charts widget.
|
1928
|
+
*
|
1929
|
+
* @namespace YAHOO.widget
|
1930
|
+
* @class ColumnSeries
|
1931
|
+
* @uses YAHOO.widget.CartesianSeries
|
1932
|
+
* @constructor
|
1933
|
+
*/
|
1934
|
+
YAHOO.widget.ColumnSeries = function()
|
1935
|
+
{
|
1936
|
+
YAHOO.widget.ColumnSeries.superclass.constructor.call(this);
|
1937
|
+
};
|
1938
|
+
|
1939
|
+
YAHOO.lang.extend(YAHOO.widget.ColumnSeries, YAHOO.widget.CartesianSeries,
|
1940
|
+
{
|
1941
|
+
type: "column"
|
1942
|
+
});
|
1943
|
+
|
1944
|
+
/**
|
1945
|
+
* LineSeries class for the YUI Charts widget.
|
1946
|
+
*
|
1947
|
+
* @namespace YAHOO.widget
|
1948
|
+
* @class LineSeries
|
1949
|
+
* @uses YAHOO.widget.CartesianSeries
|
1950
|
+
* @constructor
|
1951
|
+
*/
|
1952
|
+
YAHOO.widget.LineSeries = function()
|
1953
|
+
{
|
1954
|
+
YAHOO.widget.LineSeries.superclass.constructor.call(this);
|
1955
|
+
};
|
1956
|
+
|
1957
|
+
YAHOO.lang.extend(YAHOO.widget.LineSeries, YAHOO.widget.CartesianSeries,
|
1958
|
+
{
|
1959
|
+
type: "line"
|
1960
|
+
});
|
1961
|
+
|
1962
|
+
|
1963
|
+
/**
|
1964
|
+
* BarSeries class for the YUI Charts widget.
|
1965
|
+
*
|
1966
|
+
* @namespace YAHOO.widget
|
1967
|
+
* @class BarSeries
|
1968
|
+
* @uses YAHOO.widget.CartesianSeries
|
1969
|
+
* @constructor
|
1970
|
+
*/
|
1971
|
+
YAHOO.widget.BarSeries = function()
|
1972
|
+
{
|
1973
|
+
YAHOO.widget.BarSeries.superclass.constructor.call(this);
|
1974
|
+
};
|
1975
|
+
|
1976
|
+
YAHOO.lang.extend(YAHOO.widget.BarSeries, YAHOO.widget.CartesianSeries,
|
1977
|
+
{
|
1978
|
+
type: "bar"
|
1979
|
+
});
|
1980
|
+
|
1981
|
+
|
1982
|
+
/**
|
1983
|
+
* PieSeries class for the YUI Charts widget.
|
1984
|
+
*
|
1985
|
+
* @namespace YAHOO.widget
|
1986
|
+
* @class PieSeries
|
1987
|
+
* @uses YAHOO.widget.Series
|
1988
|
+
* @constructor
|
1989
|
+
*/
|
1990
|
+
YAHOO.widget.PieSeries = function()
|
1991
|
+
{
|
1992
|
+
YAHOO.widget.PieSeries.superclass.constructor.call(this);
|
1993
|
+
};
|
1994
|
+
|
1995
|
+
YAHOO.lang.extend(YAHOO.widget.PieSeries, YAHOO.widget.Series,
|
1996
|
+
{
|
1997
|
+
type: "pie",
|
1998
|
+
|
1999
|
+
/**
|
2000
|
+
* The field used to access the data value from the items from the data source.
|
2001
|
+
*
|
2002
|
+
* @property dataField
|
2003
|
+
* @type String
|
2004
|
+
*/
|
2005
|
+
dataField: null,
|
2006
|
+
|
2007
|
+
/**
|
2008
|
+
* The field used to access the category value from the items from the data source.
|
2009
|
+
*
|
2010
|
+
* @property categoryField
|
2011
|
+
* @type String
|
2012
|
+
*/
|
2013
|
+
categoryField: null,
|
2014
|
+
|
2015
|
+
/**
|
2016
|
+
* A string reference to the globally-accessible function that may be called to
|
2017
|
+
* determine each of the label values for this series. Also accepts function references.
|
2018
|
+
*
|
2019
|
+
* @property labelFunction
|
2020
|
+
* @type String
|
2021
|
+
*/
|
2022
|
+
labelFunction: null
|
2023
|
+
});
|
2024
|
+
|
2025
|
+
/**
|
2026
|
+
* StackedBarSeries class for the YUI Charts widget.
|
2027
|
+
*
|
2028
|
+
* @namespace YAHOO.widget
|
2029
|
+
* @class StackedBarSeries
|
2030
|
+
* @uses YAHOO.widget.CartesianSeries
|
2031
|
+
* @constructor
|
2032
|
+
*/
|
2033
|
+
YAHOO.widget.StackedBarSeries = function()
|
2034
|
+
{
|
2035
|
+
YAHOO.widget.StackedBarSeries.superclass.constructor.call(this);
|
2036
|
+
};
|
2037
|
+
|
2038
|
+
YAHOO.lang.extend(YAHOO.widget.StackedBarSeries, YAHOO.widget.CartesianSeries,
|
2039
|
+
{
|
2040
|
+
type: "stackbar"
|
2041
|
+
});
|
2042
|
+
|
2043
|
+
/**
|
2044
|
+
* StackedColumnSeries class for the YUI Charts widget.
|
2045
|
+
*
|
2046
|
+
* @namespace YAHOO.widget
|
2047
|
+
* @class StackedColumnSeries
|
2048
|
+
* @uses YAHOO.widget.CartesianSeries
|
2049
|
+
* @constructor
|
2050
|
+
*/
|
2051
|
+
YAHOO.widget.StackedColumnSeries = function()
|
2052
|
+
{
|
2053
|
+
YAHOO.widget.StackedColumnSeries.superclass.constructor.call(this);
|
2054
|
+
};
|
2055
|
+
|
2056
|
+
YAHOO.lang.extend(YAHOO.widget.StackedColumnSeries, YAHOO.widget.CartesianSeries,
|
2057
|
+
{
|
2058
|
+
type: "stackcolumn"
|
2059
|
+
});
|
2060
|
+
YAHOO.register("charts", YAHOO.widget.Chart, {version: "2.8.1", build: "19"});
|