From bbe0751a32a244e3df4524367362ad586ad847df Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 4 Dec 2009 23:32:06 +0000 Subject: [PATCH] inclusão da biblioteca open flash chart --- pacotes/openflashchart/README.txt | 8 ++++++++ pacotes/openflashchart/data-files/3.html | 152 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/4.html | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/5.html | 39 +++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/6.html | 39 +++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/7.html | 43 +++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/8.html | 34 ++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/area-1.txt | 39 +++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/area-line-dash.txt | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/area-line.txt | 40 ++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/area-point-objects.txt | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-2.txt | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-3d-2-BUG.txt | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-3d.txt | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-4.txt | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-all-onclick.txt | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-alpha.txt | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-cylinder.txt | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-filled.txt | 40 ++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-floating-2.txt | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-floating.txt | 37 +++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-glass-2.txt | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-glass-height-0.txt | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-glass.txt | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-groups-with-nulls.txt | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-on-show-cascade.txt | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-on-show-pop.txt | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-on-show.txt | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-sketch.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bar-test-all.txt | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/bug-1.txt | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/candle.txt | 41 +++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/combined-chart-bar-line-scatter.txt | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/comparisons.txt | 220 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/exp.txt | 9 +++++++++ pacotes/openflashchart/data-files/flash-variable.html | 32 ++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/horizontal-bar-chart-2.txt | 35 +++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/horizontal-bar-chart-3.txt | 35 +++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/horizontal-bar-chart.txt | 34 ++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/json-example.html | 43 +++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/json-test-2.html | 131 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/json-test.html | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/keys-1.txt | 41 +++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/languages-chinese.txt | 39 +++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/line-2.txt | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/line-anchor.txt | 24 ++++++++++++++++++++++++ pacotes/openflashchart/data-files/line-bow.txt | 21 +++++++++++++++++++++ pacotes/openflashchart/data-files/line-bug-report.txt | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/line-dash.txt | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/line-dot.txt | 45 +++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/line-hollow.txt | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/line-null-bug.txt | 47 +++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/line-on-click.txt | 17 +++++++++++++++++ pacotes/openflashchart/data-files/line-on-show.txt | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/line-star.txt | 21 +++++++++++++++++++++ pacotes/openflashchart/data-files/line.txt | 44 ++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/logo.png | Bin 0 -> 1588 bytes pacotes/openflashchart/data-files/menu.txt | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/on-show-area-drop.txt | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/on-show-area-explode.txt | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/on-show-area-fade-in.txt | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/on-show-area-mid-slide.txt | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/on-show-area-pop-up.txt | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/on-show-area-shrink-in.txt | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/on-show-line.txt | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/on-show-scatter-explode.txt | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/pie-1.txt | 23 +++++++++++++++++++++++ pacotes/openflashchart/data-files/pie-2.txt | 18 ++++++++++++++++++ pacotes/openflashchart/data-files/pie-3.txt | 18 ++++++++++++++++++ pacotes/openflashchart/data-files/pie-4.txt | 31 +++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/pie-bug-green.txt | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/pie-colours.txt | 25 +++++++++++++++++++++++++ pacotes/openflashchart/data-files/pie-fixed-radius.txt | 24 ++++++++++++++++++++++++ pacotes/openflashchart/data-files/pie-label-colours.txt | 214 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/pie-many-slices-fixed.txt | 201 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/pie-many-slices.txt | 201 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/radar-2.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/radar-area.txt | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/radar-axis-and-grid-style.txt | 40 ++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/radar-axis-labels-2.txt | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/radar-axis-labels.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/radar-axis-tooltip-closest.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/radar-axis-tooltip-hover.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/radar-chart-minus-numbers.txt | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/radar-line-loop.txt | 36 ++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/radar-steps.txt | 31 +++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/radar-test-keys.txt | 44 ++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/scatter-2.txt | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/scatter-anchors.txt | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/scatter-line-2.txt | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/scatter-line-area.txt | 128 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/scatter-line-step-horizontal.txt | 25 +++++++++++++++++++++++++ pacotes/openflashchart/data-files/scatter-line-step-vertical.txt | 25 +++++++++++++++++++++++++ pacotes/openflashchart/data-files/scatter-line.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/scatter-on-click.txt | 41 +++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/scatter-step-all.txt | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/scatter.txt | 40 ++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/shape.txt | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/stack-bar-1.txt | 41 +++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/stack-bar-2.txt | 44 ++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/stack-bar-on-click.txt | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/stack-bar-on-show.txt | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/stack-bar-tooltip-hover.txt | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tags.txt | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/title-1.txt | 40 ++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-1.txt | 38 ++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-2.txt | 34 ++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-bar-floating.txt | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-clash-scatter-2.txt | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-clash-scatter-hover.txt | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-clash-scatter.txt | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-clash.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-hover.txt | 29 +++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-mixed-1.txt | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-mixed-2.txt | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-rounded.txt | 35 +++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-x-radar-clash-proximity.txt | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/tooltip-x-radar-clash.txt | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/utf8-1.txt | 38 ++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-1.txt | 38 ++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-auto-range.txt | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-big.txt | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-labels-2.txt | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-labels-3.txt | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-labels-4.txt | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-labels-5.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-labels-6.txt | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-labels-7.txt | 36 ++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-labels-angle-no-offset.txt | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-labels-angle-offset.txt | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-labels.txt | 38 ++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-no-offset.txt | 39 +++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-range-scatter-minus.txt | 38 ++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-range-scatter-plus.txt | 36 ++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-axis-steps-zero-check.txt | 38 ++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-labels-auto-dates.txt | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-labels-auto-min5-3rd-visible.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-labels-auto-min5.txt | 27 +++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-labels-auto-rev.txt | 36 ++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-labels-auto.txt | 22 ++++++++++++++++++++++ pacotes/openflashchart/data-files/x-labels-invisible-user-labels.txt | 40 ++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-labels-invisible.txt | 36 ++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-labels-user-labels-br.txt | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-labels-user-labels.txt | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/x-labels-user-x.txt | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-auto-steps.txt | 41 +++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-big.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-fix-this-bug.txt | 36 ++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-format-labels.txt | 38 ++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-labels-step.txt | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-labels-user-y.txt | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-no-grid.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-no-title-no-offset-right.txt | 36 ++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-no-title-no-offset.txt | 32 ++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-no-title-offset.txt | 31 +++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-offset-tiny-numbers.txt | 38 ++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-right-all-bars.txt | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-right-all-lines-10-20.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-right-all-lines.txt | 40 ++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-right.txt | 34 ++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-rotate-labels.txt | 44 ++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-upside-down-offset.txt | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis-upside-down.txt | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-axis.txt | 38 ++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-labels-auto-formatted.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-labels-auto-labelstyle.txt | 35 +++++++++++++++++++++++++++++++++++ pacotes/openflashchart/data-files/y-labels-auto.txt | 30 ++++++++++++++++++++++++++++++ pacotes/openflashchart/google-webtoolkit-OFCGWT/README.txt | 3 +++ pacotes/openflashchart/google-webtoolkit-OFCGWT/ofcgwt - Google Code.URL | 2 ++ pacotes/openflashchart/js-ofc-library/ofc.js | 38 ++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/js-ofc-library/open_flash_chart.js | 271 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/js-ofc-library/open_flash_chart.min.js | 1 + pacotes/openflashchart/js/README.txt | 12 ++++++++++++ pacotes/openflashchart/js/json/json2.js | 461 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/js/swfobject.js | 5 +++++ pacotes/openflashchart/json2.js | 461 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart.swf | Bin 0 -> 276186 bytes pacotes/openflashchart/open-flash-chart/.FlashDevelop_AS3_cache | 481 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/ErrorMsg.as | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/ExternalInterfaceManager.as | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/JsonErrorMsg.as | 26 ++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/JsonInspector.as | 36 ++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/Loading.as | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/NumberFormat.as | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/NumberUtils.as | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/Parser.as | 162 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/PointCandle.as | 42 ++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/PointHLC.as | 43 +++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/Properties.as | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/README.txt | 15 +++++++++++++++ pacotes/openflashchart/open-flash-chart/Range.as | 46 ++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/ScreenCoords.as | 395 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/ScreenCoordsBase.as | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/ScreenCoordsRadar.as | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/ShowTipEvent.as | 15 +++++++++++++++ pacotes/openflashchart/open-flash-chart/Tooltip.as | 351 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/br/com/stimuli/string/README.txt | 3 +++ pacotes/openflashchart/open-flash-chart/br/com/stimuli/string/printf.as | 239 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/caurina/transitions/AuxFunctions.as | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/caurina/transitions/Equations.as | 693 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/caurina/transitions/PropertyInfoObj.as | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/caurina/transitions/SpecialPropertiesDefault.as | 424 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/caurina/transitions/SpecialProperty.as | 45 +++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/caurina/transitions/SpecialPropertyModifier.as | 42 ++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/caurina/transitions/SpecialPropertySplitter.as | 41 +++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/caurina/transitions/TweenListObj.as | 217 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/caurina/transitions/Tweener.as | 1068 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Area.as | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Arrow.as | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Bar.as | 22 ++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Bar3D.as | 21 +++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarBase.as | 185 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarCandle.as | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarCylinder.as | 21 +++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarCylinderOutline.as | 20 ++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarDome.as | 22 ++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarFade.as | 18 ++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarGlass.as | 22 ++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarOutline.as | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarPlastic.as | 23 +++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarPlasticFlat.as | 24 ++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarRound.as | 20 ++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarRound3D.as | 21 +++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarRoundGlass.as | 21 +++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarSketch.as | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/BarStack.as | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Base.as | 415 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Candle.as | 32 ++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Elements/PointBarFade.as | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Elements/Star.as | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Factory.as | 176 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/HBar.as | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Line.as | 322 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/LineBase.as | 227 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/LineDot.as | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/LineHollow.as | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/LineStyle.as | 21 +++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/ObjectCollection.as | 272 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Pie.as | 379 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Scatter.as | 42 ++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/ScatterBase.as | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/ScatterLine.as | 213 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Shape.as | 47 +++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/Tags.as | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/Element.as | 177 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Bar.as | 29 +++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Bar3D.as | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Base.as | 238 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Cylinder.as | 224 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/CylinderOutline.as | 244 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Dome.as | 455 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/ECandle.as | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Glass.as | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Horizontal.as | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Outline.as | 32 ++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Plastic.as | 260 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/PlasticFlat.as | 312 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Round.as | 317 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Round3D.as | 481 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/RoundGlass.as | 404 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Sketch.as | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/Stack.as | 47 +++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/bars/StackCollection.as | 177 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/dots/DefaultDotProperties.as | 36 ++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/dots/Hollow.as | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/dots/Point.as | 37 +++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/dots/PointDot.as | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/dots/PointDotBase.as | 272 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/dots/anchor.as | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/dots/bow.as | 141 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/dots/dot_factory.as | 45 +++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/dots/scat.as | 314 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/dots/star.as | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/has_tooltip.as | 20 ++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/pies/DefaultPieProperties.as | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/pies/PieLabel.as | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/pies/PieSlice.as | 225 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/pies/PieSliceContainer.as | 456 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/charts/series/tags/Tag.as | 240 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/crypto/MD5.as | 256 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/crypto/SHA1.as | 268 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/crypto/SHA224.as | 255 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/crypto/SHA256.as | 260 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/crypto/WSSEUsernameToken.as | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/errors/IllegalStateError.as | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/images/BitString.as | 42 ++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/images/JPGEncoder.as | 651 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/images/PNGEncoder.as | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/net/DynamicURLLoader.as | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/net/IURIResolver.as | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/net/URI.as | 2469 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/net/URIEncodingBitmap.as | 142 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/net/proxies/RFC2817Socket.as | 204 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSON.as | 563 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSONDecoder.as | 218 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSONEncoder.as | 302 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSONParseError.as | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSONToken.as | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSONTokenType.as | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSONTokenizer.as | 550 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/utils/ArrayUtil.as | 190 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/utils/DateUtil.as | 666 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/utils/DictionaryUtil.as | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/utils/IntUtil.as | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/utils/NumberFormatter.as | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/utils/StringUtil.as | 257 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/utils/XMLUtil.as | 171 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/webapis/ServiceBase.as | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/webapis/URLLoaderBase.as | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/adobe/webapis/events/ServiceEvent.as | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/com/serialization/json/JSON.as | 514 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/Background.as | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/InnerBackground.as | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/AxisLabel.as | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/RadarAxis.as | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/RadarAxisLabels.as | 134 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/RadarSpokeLabels.as | 168 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/XAxis.as | 417 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/XAxisLabels.as | 338 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/XLabelStyle.as | 44 ++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/YAxisBase.as | 320 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/YAxisLabelsBase.as | 262 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/YAxisLabelsLeft.as | 47 +++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/YAxisLabelsRight.as | 40 ++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/YAxisLeft.as | 38 ++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/YAxisRight.as | 46 ++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/YLabelStyle.as | 46 ++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/axis/YTextField.as | 17 +++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/labels/BaseLabel.as | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/labels/Keys.as | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/labels/Title.as | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/labels/XLegend.as | 44 ++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/labels/YLegendBase.as | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/labels/YLegendLeft.as | 17 +++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/labels/YLegendRight.as | 16 ++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/menu/CameraIcon.as | 42 ++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/menu/DefaultCameraIconProperties.as | 21 +++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/menu/DefaultMenuProperties.as | 18 ++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/menu/Menu.as | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/menu/menuItem.as | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/elements/menu/menu_item_factory.as | 19 +++++++++++++++++++ pacotes/openflashchart/open-flash-chart/global/Global.as | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/json.help.txt | 489 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/main.as | 911 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/obj/open-flash-chartConfig.xml | 23 +++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/object_helper.as | 28 ++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/open-flash-chart.as3proj | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/string/Css.as | 265 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/string/DateUtils.as | 273 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/string/Utils.as | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/open-flash-chart/tr.as | 130 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/JSON.php | 806 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/README.txt | 16 ++++++++++++++++ pacotes/openflashchart/php-ofc-library/dot_base.php | 231 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/json_format.php | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_area_base.php | 40 ++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_area_hollow.php | 10 ++++++++++ pacotes/openflashchart/php-ofc-library/ofc_area_line.php | 10 ++++++++++ pacotes/openflashchart/php-ofc-library/ofc_arrow.php | 27 +++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_bar.php | 34 ++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_bar_3d.php | 22 ++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_bar_base.php | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_bar_filled.php | 39 +++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_bar_glass.php | 131 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_bar_sketch.php | 29 +++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_bar_stack.php | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_candle.php | 41 +++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_hbar.php | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_line.php | 157 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_line_base.php | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_line_dot.php | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_line_hollow.php | 9 +++++++++ pacotes/openflashchart/php-ofc-library/ofc_line_style.php | 11 +++++++++++ pacotes/openflashchart/php-ofc-library/ofc_menu.php | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_pie.php | 257 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_radar_axis.php | 47 +++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_radar_axis_labels.php | 15 +++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_radar_spoke_labels.php | 15 +++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_scatter.php | 47 +++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_scatter_line.php | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_shape.php | 25 +++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_sugar.php | 43 +++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_tags.php | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_title.php | 39 +++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_tooltip.php | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_upload_image.php | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_x_axis.php | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_x_axis_label.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_x_axis_labels.php | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_x_legend.php | 15 +++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_y_axis.php | 17 +++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_y_axis_base.php | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_y_axis_label.php | 38 ++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_y_axis_labels.php | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/ofc_y_axis_right.php | 6 ++++++ pacotes/openflashchart/php-ofc-library/ofc_y_legend.php | 15 +++++++++++++++ pacotes/openflashchart/php-ofc-library/open-flash-chart-object.php | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php-ofc-library/open-flash-chart.php | 178 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/README.txt | 16 ++++++++++++++++ pacotes/openflashchart/php5-ofc-library/build_package.php | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/3d-bar-chart.php | 29 +++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/area-hollow.php | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/bar-chart.php | 32 ++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/data-lines-2.php | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/data-lines.php | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/glass-bar-chart.php | 32 ++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/horizontal-bar-chart.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/line-dot.php | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/line-hollow.php | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/pie-chart.php | 37 +++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/scatter-chart.php | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/sketch-bar-chart.php | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/examples/stacked-bar-chart.php | 25 +++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Area/OFC_Charts_Area_Hollow.php | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_3d.php | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Filled.php | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Glass.php | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Horizontal.php | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Sketch.php | 41 +++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Stack.php | 46 ++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Value.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Line/OFC_Charts_Line_Dot.php | 32 ++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Line/OFC_Charts_Line_Hollow.php | 32 ++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Area.php | 33 +++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Bar.php | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Base.php | 27 +++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Line.php | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Pie.php | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Scatter.php | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Scatter/OFC_Scatter_Line.php | 31 +++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X.php | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X_Label.php | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X_Label_Set.php | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_Y.php | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_Y_Right.php | 36 ++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Legend/OFC_Elements_Legend_X.php | 32 ++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Legend/OFC_Elements_Legend_Y.php | 32 ++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Axis.php | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Base.php | 30 ++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Title.php | 32 ++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/JSON.php | 805 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/JSON_Format.php | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/OFC_Chart.php | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/lib/OFC/OFC_Elements.php | 31 +++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/open-flash-chart-object.php | 127 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/php5-ofc-library/package.xml | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/openflashchart/swfobject.js | 5 +++++ pacotes/openflashchart/teste.htm | 36 ++++++++++++++++++++++++++++++++++++ 448 files changed, 46610 insertions(+), 0 deletions(-) create mode 100644 pacotes/openflashchart/README.txt create mode 100644 pacotes/openflashchart/data-files/3.html create mode 100644 pacotes/openflashchart/data-files/4.html create mode 100644 pacotes/openflashchart/data-files/5.html create mode 100644 pacotes/openflashchart/data-files/6.html create mode 100644 pacotes/openflashchart/data-files/7.html create mode 100644 pacotes/openflashchart/data-files/8.html create mode 100644 pacotes/openflashchart/data-files/area-1.txt create mode 100644 pacotes/openflashchart/data-files/area-line-dash.txt create mode 100644 pacotes/openflashchart/data-files/area-line.txt create mode 100644 pacotes/openflashchart/data-files/area-point-objects.txt create mode 100644 pacotes/openflashchart/data-files/bar-2.txt create mode 100644 pacotes/openflashchart/data-files/bar-3d-2-BUG.txt create mode 100644 pacotes/openflashchart/data-files/bar-3d.txt create mode 100644 pacotes/openflashchart/data-files/bar-4.txt create mode 100644 pacotes/openflashchart/data-files/bar-all-onclick.txt create mode 100644 pacotes/openflashchart/data-files/bar-alpha.txt create mode 100644 pacotes/openflashchart/data-files/bar-cylinder.txt create mode 100644 pacotes/openflashchart/data-files/bar-filled.txt create mode 100644 pacotes/openflashchart/data-files/bar-floating-2.txt create mode 100644 pacotes/openflashchart/data-files/bar-floating.txt create mode 100644 pacotes/openflashchart/data-files/bar-glass-2.txt create mode 100644 pacotes/openflashchart/data-files/bar-glass-height-0.txt create mode 100644 pacotes/openflashchart/data-files/bar-glass.txt create mode 100644 pacotes/openflashchart/data-files/bar-groups-with-nulls.txt create mode 100644 pacotes/openflashchart/data-files/bar-on-show-cascade.txt create mode 100644 pacotes/openflashchart/data-files/bar-on-show-pop.txt create mode 100644 pacotes/openflashchart/data-files/bar-on-show.txt create mode 100644 pacotes/openflashchart/data-files/bar-sketch.txt create mode 100644 pacotes/openflashchart/data-files/bar-test-all.txt create mode 100644 pacotes/openflashchart/data-files/bug-1.txt create mode 100644 pacotes/openflashchart/data-files/candle.txt create mode 100644 pacotes/openflashchart/data-files/combined-chart-bar-line-scatter.txt create mode 100644 pacotes/openflashchart/data-files/comparisons.txt create mode 100644 pacotes/openflashchart/data-files/exp.txt create mode 100644 pacotes/openflashchart/data-files/flash-variable.html create mode 100644 pacotes/openflashchart/data-files/horizontal-bar-chart-2.txt create mode 100644 pacotes/openflashchart/data-files/horizontal-bar-chart-3.txt create mode 100644 pacotes/openflashchart/data-files/horizontal-bar-chart.txt create mode 100644 pacotes/openflashchart/data-files/json-example.html create mode 100644 pacotes/openflashchart/data-files/json-test-2.html create mode 100644 pacotes/openflashchart/data-files/json-test.html create mode 100644 pacotes/openflashchart/data-files/keys-1.txt create mode 100644 pacotes/openflashchart/data-files/languages-chinese.txt create mode 100644 pacotes/openflashchart/data-files/line-2.txt create mode 100644 pacotes/openflashchart/data-files/line-anchor.txt create mode 100644 pacotes/openflashchart/data-files/line-bow.txt create mode 100644 pacotes/openflashchart/data-files/line-bug-report.txt create mode 100644 pacotes/openflashchart/data-files/line-dash.txt create mode 100644 pacotes/openflashchart/data-files/line-dot.txt create mode 100644 pacotes/openflashchart/data-files/line-hollow.txt create mode 100644 pacotes/openflashchart/data-files/line-null-bug.txt create mode 100644 pacotes/openflashchart/data-files/line-on-click.txt create mode 100644 pacotes/openflashchart/data-files/line-on-show.txt create mode 100644 pacotes/openflashchart/data-files/line-star.txt create mode 100644 pacotes/openflashchart/data-files/line.txt create mode 100644 pacotes/openflashchart/data-files/logo.png create mode 100644 pacotes/openflashchart/data-files/menu.txt create mode 100644 pacotes/openflashchart/data-files/on-show-area-drop.txt create mode 100644 pacotes/openflashchart/data-files/on-show-area-explode.txt create mode 100644 pacotes/openflashchart/data-files/on-show-area-fade-in.txt create mode 100644 pacotes/openflashchart/data-files/on-show-area-mid-slide.txt create mode 100644 pacotes/openflashchart/data-files/on-show-area-pop-up.txt create mode 100644 pacotes/openflashchart/data-files/on-show-area-shrink-in.txt create mode 100644 pacotes/openflashchart/data-files/on-show-line.txt create mode 100644 pacotes/openflashchart/data-files/on-show-scatter-explode.txt create mode 100644 pacotes/openflashchart/data-files/pie-1.txt create mode 100644 pacotes/openflashchart/data-files/pie-2.txt create mode 100644 pacotes/openflashchart/data-files/pie-3.txt create mode 100644 pacotes/openflashchart/data-files/pie-4.txt create mode 100644 pacotes/openflashchart/data-files/pie-bug-green.txt create mode 100644 pacotes/openflashchart/data-files/pie-colours.txt create mode 100644 pacotes/openflashchart/data-files/pie-fixed-radius.txt create mode 100644 pacotes/openflashchart/data-files/pie-label-colours.txt create mode 100644 pacotes/openflashchart/data-files/pie-many-slices-fixed.txt create mode 100644 pacotes/openflashchart/data-files/pie-many-slices.txt create mode 100644 pacotes/openflashchart/data-files/radar-2.txt create mode 100644 pacotes/openflashchart/data-files/radar-area.txt create mode 100644 pacotes/openflashchart/data-files/radar-axis-and-grid-style.txt create mode 100644 pacotes/openflashchart/data-files/radar-axis-labels-2.txt create mode 100644 pacotes/openflashchart/data-files/radar-axis-labels.txt create mode 100644 pacotes/openflashchart/data-files/radar-axis-tooltip-closest.txt create mode 100644 pacotes/openflashchart/data-files/radar-axis-tooltip-hover.txt create mode 100644 pacotes/openflashchart/data-files/radar-chart-minus-numbers.txt create mode 100644 pacotes/openflashchart/data-files/radar-line-loop.txt create mode 100644 pacotes/openflashchart/data-files/radar-steps.txt create mode 100644 pacotes/openflashchart/data-files/radar-test-keys.txt create mode 100644 pacotes/openflashchart/data-files/scatter-2.txt create mode 100644 pacotes/openflashchart/data-files/scatter-anchors.txt create mode 100644 pacotes/openflashchart/data-files/scatter-line-2.txt create mode 100644 pacotes/openflashchart/data-files/scatter-line-area.txt create mode 100644 pacotes/openflashchart/data-files/scatter-line-step-horizontal.txt create mode 100644 pacotes/openflashchart/data-files/scatter-line-step-vertical.txt create mode 100644 pacotes/openflashchart/data-files/scatter-line.txt create mode 100644 pacotes/openflashchart/data-files/scatter-on-click.txt create mode 100644 pacotes/openflashchart/data-files/scatter-step-all.txt create mode 100644 pacotes/openflashchart/data-files/scatter.txt create mode 100644 pacotes/openflashchart/data-files/shape.txt create mode 100644 pacotes/openflashchart/data-files/stack-bar-1.txt create mode 100644 pacotes/openflashchart/data-files/stack-bar-2.txt create mode 100644 pacotes/openflashchart/data-files/stack-bar-on-click.txt create mode 100644 pacotes/openflashchart/data-files/stack-bar-on-show.txt create mode 100644 pacotes/openflashchart/data-files/stack-bar-tooltip-hover.txt create mode 100644 pacotes/openflashchart/data-files/tags.txt create mode 100644 pacotes/openflashchart/data-files/title-1.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-1.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-2.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-bar-floating.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-clash-scatter-2.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-clash-scatter-hover.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-clash-scatter.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-clash.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-hover.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-mixed-1.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-mixed-2.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-rounded.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-x-radar-clash-proximity.txt create mode 100644 pacotes/openflashchart/data-files/tooltip-x-radar-clash.txt create mode 100644 pacotes/openflashchart/data-files/utf8-1.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-1.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-auto-range.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-big.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-labels-2.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-labels-3.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-labels-4.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-labels-5.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-labels-6.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-labels-7.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-labels-angle-no-offset.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-labels-angle-offset.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-labels.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-no-offset.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-range-scatter-minus.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-range-scatter-plus.txt create mode 100644 pacotes/openflashchart/data-files/x-axis-steps-zero-check.txt create mode 100644 pacotes/openflashchart/data-files/x-labels-auto-dates.txt create mode 100644 pacotes/openflashchart/data-files/x-labels-auto-min5-3rd-visible.txt create mode 100644 pacotes/openflashchart/data-files/x-labels-auto-min5.txt create mode 100644 pacotes/openflashchart/data-files/x-labels-auto-rev.txt create mode 100644 pacotes/openflashchart/data-files/x-labels-auto.txt create mode 100644 pacotes/openflashchart/data-files/x-labels-invisible-user-labels.txt create mode 100644 pacotes/openflashchart/data-files/x-labels-invisible.txt create mode 100644 pacotes/openflashchart/data-files/x-labels-user-labels-br.txt create mode 100644 pacotes/openflashchart/data-files/x-labels-user-labels.txt create mode 100644 pacotes/openflashchart/data-files/x-labels-user-x.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-auto-steps.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-big.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-fix-this-bug.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-format-labels.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-labels-step.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-labels-user-y.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-no-grid.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-no-title-no-offset-right.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-no-title-no-offset.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-no-title-offset.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-offset-tiny-numbers.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-right-all-bars.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-right-all-lines-10-20.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-right-all-lines.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-right.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-rotate-labels.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-upside-down-offset.txt create mode 100644 pacotes/openflashchart/data-files/y-axis-upside-down.txt create mode 100644 pacotes/openflashchart/data-files/y-axis.txt create mode 100644 pacotes/openflashchart/data-files/y-labels-auto-formatted.txt create mode 100644 pacotes/openflashchart/data-files/y-labels-auto-labelstyle.txt create mode 100644 pacotes/openflashchart/data-files/y-labels-auto.txt create mode 100644 pacotes/openflashchart/google-webtoolkit-OFCGWT/README.txt create mode 100644 pacotes/openflashchart/google-webtoolkit-OFCGWT/ofcgwt - Google Code.URL create mode 100644 pacotes/openflashchart/js-ofc-library/ofc.js create mode 100644 pacotes/openflashchart/js-ofc-library/open_flash_chart.js create mode 100644 pacotes/openflashchart/js-ofc-library/open_flash_chart.min.js create mode 100644 pacotes/openflashchart/js/README.txt create mode 100644 pacotes/openflashchart/js/json/json2.js create mode 100644 pacotes/openflashchart/js/swfobject.js create mode 100644 pacotes/openflashchart/json2.js create mode 100644 pacotes/openflashchart/open-flash-chart.swf create mode 100644 pacotes/openflashchart/open-flash-chart/.FlashDevelop_AS3_cache create mode 100644 pacotes/openflashchart/open-flash-chart/ErrorMsg.as create mode 100644 pacotes/openflashchart/open-flash-chart/ExternalInterfaceManager.as create mode 100644 pacotes/openflashchart/open-flash-chart/JsonErrorMsg.as create mode 100644 pacotes/openflashchart/open-flash-chart/JsonInspector.as create mode 100644 pacotes/openflashchart/open-flash-chart/Loading.as create mode 100644 pacotes/openflashchart/open-flash-chart/NumberFormat.as create mode 100644 pacotes/openflashchart/open-flash-chart/NumberUtils.as create mode 100644 pacotes/openflashchart/open-flash-chart/Parser.as create mode 100644 pacotes/openflashchart/open-flash-chart/PointCandle.as create mode 100644 pacotes/openflashchart/open-flash-chart/PointHLC.as create mode 100644 pacotes/openflashchart/open-flash-chart/Properties.as create mode 100644 pacotes/openflashchart/open-flash-chart/README.txt create mode 100644 pacotes/openflashchart/open-flash-chart/Range.as create mode 100644 pacotes/openflashchart/open-flash-chart/ScreenCoords.as create mode 100644 pacotes/openflashchart/open-flash-chart/ScreenCoordsBase.as create mode 100644 pacotes/openflashchart/open-flash-chart/ScreenCoordsRadar.as create mode 100644 pacotes/openflashchart/open-flash-chart/ShowTipEvent.as create mode 100644 pacotes/openflashchart/open-flash-chart/Tooltip.as create mode 100644 pacotes/openflashchart/open-flash-chart/br/com/stimuli/string/README.txt create mode 100644 pacotes/openflashchart/open-flash-chart/br/com/stimuli/string/printf.as create mode 100644 pacotes/openflashchart/open-flash-chart/caurina/transitions/AuxFunctions.as create mode 100644 pacotes/openflashchart/open-flash-chart/caurina/transitions/Equations.as create mode 100644 pacotes/openflashchart/open-flash-chart/caurina/transitions/PropertyInfoObj.as create mode 100644 pacotes/openflashchart/open-flash-chart/caurina/transitions/SpecialPropertiesDefault.as create mode 100644 pacotes/openflashchart/open-flash-chart/caurina/transitions/SpecialProperty.as create mode 100644 pacotes/openflashchart/open-flash-chart/caurina/transitions/SpecialPropertyModifier.as create mode 100644 pacotes/openflashchart/open-flash-chart/caurina/transitions/SpecialPropertySplitter.as create mode 100644 pacotes/openflashchart/open-flash-chart/caurina/transitions/TweenListObj.as create mode 100644 pacotes/openflashchart/open-flash-chart/caurina/transitions/Tweener.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Area.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Arrow.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Bar.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Bar3D.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarBase.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarCandle.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarCylinder.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarCylinderOutline.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarDome.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarFade.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarGlass.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarOutline.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarPlastic.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarPlasticFlat.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarRound.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarRound3D.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarRoundGlass.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarSketch.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/BarStack.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Base.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Candle.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Elements/PointBarFade.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Elements/Star.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Factory.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/HBar.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Line.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/LineBase.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/LineDot.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/LineHollow.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/LineStyle.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/ObjectCollection.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Pie.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Scatter.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/ScatterBase.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/ScatterLine.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Shape.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/Tags.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/Element.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Bar.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Bar3D.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Base.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Cylinder.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/CylinderOutline.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Dome.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/ECandle.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Glass.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Horizontal.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Outline.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Plastic.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/PlasticFlat.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Round.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Round3D.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/RoundGlass.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Sketch.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/Stack.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/bars/StackCollection.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/dots/DefaultDotProperties.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/dots/Hollow.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/dots/Point.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/dots/PointDot.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/dots/PointDotBase.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/dots/anchor.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/dots/bow.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/dots/dot_factory.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/dots/scat.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/dots/star.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/has_tooltip.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/pies/DefaultPieProperties.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/pies/PieLabel.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/pies/PieSlice.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/pies/PieSliceContainer.as create mode 100644 pacotes/openflashchart/open-flash-chart/charts/series/tags/Tag.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/crypto/MD5.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/crypto/SHA1.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/crypto/SHA224.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/crypto/SHA256.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/crypto/WSSEUsernameToken.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/errors/IllegalStateError.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/images/BitString.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/images/JPGEncoder.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/images/PNGEncoder.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/net/DynamicURLLoader.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/net/IURIResolver.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/net/URI.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/net/URIEncodingBitmap.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/net/proxies/RFC2817Socket.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSON.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSONDecoder.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSONEncoder.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSONParseError.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSONToken.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSONTokenType.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/serialization/json/JSONTokenizer.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/utils/ArrayUtil.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/utils/DateUtil.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/utils/DictionaryUtil.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/utils/IntUtil.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/utils/NumberFormatter.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/utils/StringUtil.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/utils/XMLUtil.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/webapis/ServiceBase.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/webapis/URLLoaderBase.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/adobe/webapis/events/ServiceEvent.as create mode 100644 pacotes/openflashchart/open-flash-chart/com/serialization/json/JSON.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/Background.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/InnerBackground.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/AxisLabel.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/RadarAxis.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/RadarAxisLabels.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/RadarSpokeLabels.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/XAxis.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/XAxisLabels.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/XLabelStyle.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/YAxisBase.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/YAxisLabelsBase.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/YAxisLabelsLeft.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/YAxisLabelsRight.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/YAxisLeft.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/YAxisRight.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/YLabelStyle.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/axis/YTextField.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/labels/BaseLabel.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/labels/Keys.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/labels/Title.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/labels/XLegend.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/labels/YLegendBase.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/labels/YLegendLeft.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/labels/YLegendRight.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/menu/CameraIcon.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/menu/DefaultCameraIconProperties.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/menu/DefaultMenuProperties.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/menu/Menu.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/menu/menuItem.as create mode 100644 pacotes/openflashchart/open-flash-chart/elements/menu/menu_item_factory.as create mode 100644 pacotes/openflashchart/open-flash-chart/global/Global.as create mode 100644 pacotes/openflashchart/open-flash-chart/json.help.txt create mode 100644 pacotes/openflashchart/open-flash-chart/main.as create mode 100644 pacotes/openflashchart/open-flash-chart/obj/open-flash-chartConfig.xml create mode 100644 pacotes/openflashchart/open-flash-chart/object_helper.as create mode 100644 pacotes/openflashchart/open-flash-chart/open-flash-chart.as3proj create mode 100644 pacotes/openflashchart/open-flash-chart/string/Css.as create mode 100644 pacotes/openflashchart/open-flash-chart/string/DateUtils.as create mode 100644 pacotes/openflashchart/open-flash-chart/string/Utils.as create mode 100644 pacotes/openflashchart/open-flash-chart/tr.as create mode 100644 pacotes/openflashchart/php-ofc-library/JSON.php create mode 100644 pacotes/openflashchart/php-ofc-library/README.txt create mode 100644 pacotes/openflashchart/php-ofc-library/dot_base.php create mode 100644 pacotes/openflashchart/php-ofc-library/json_format.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_area_base.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_area_hollow.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_area_line.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_arrow.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_bar.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_bar_3d.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_bar_base.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_bar_filled.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_bar_glass.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_bar_sketch.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_bar_stack.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_candle.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_hbar.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_line.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_line_base.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_line_dot.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_line_hollow.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_line_style.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_menu.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_pie.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_radar_axis.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_radar_axis_labels.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_radar_spoke_labels.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_scatter.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_scatter_line.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_shape.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_sugar.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_tags.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_title.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_tooltip.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_upload_image.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_x_axis.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_x_axis_label.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_x_axis_labels.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_x_legend.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_y_axis.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_y_axis_base.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_y_axis_label.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_y_axis_labels.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_y_axis_right.php create mode 100644 pacotes/openflashchart/php-ofc-library/ofc_y_legend.php create mode 100644 pacotes/openflashchart/php-ofc-library/open-flash-chart-object.php create mode 100644 pacotes/openflashchart/php-ofc-library/open-flash-chart.php create mode 100644 pacotes/openflashchart/php5-ofc-library/README.txt create mode 100644 pacotes/openflashchart/php5-ofc-library/build_package.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/3d-bar-chart.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/area-hollow.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/bar-chart.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/data-lines-2.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/data-lines.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/glass-bar-chart.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/horizontal-bar-chart.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/line-dot.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/line-hollow.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/pie-chart.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/scatter-chart.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/sketch-bar-chart.php create mode 100644 pacotes/openflashchart/php5-ofc-library/examples/stacked-bar-chart.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Area/OFC_Charts_Area_Hollow.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_3d.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Filled.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Glass.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Horizontal.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Sketch.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Stack.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Value.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Line/OFC_Charts_Line_Dot.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Line/OFC_Charts_Line_Hollow.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Area.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Bar.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Base.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Line.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Pie.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Scatter.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Scatter/OFC_Scatter_Line.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X_Label.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X_Label_Set.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_Y.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_Y_Right.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Legend/OFC_Elements_Legend_X.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Legend/OFC_Elements_Legend_Y.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Axis.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Base.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Title.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/JSON.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/JSON_Format.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/OFC_Chart.php create mode 100644 pacotes/openflashchart/php5-ofc-library/lib/OFC/OFC_Elements.php create mode 100644 pacotes/openflashchart/php5-ofc-library/open-flash-chart-object.php create mode 100644 pacotes/openflashchart/php5-ofc-library/package.xml create mode 100644 pacotes/openflashchart/swfobject.js create mode 100644 pacotes/openflashchart/teste.htm diff --git a/pacotes/openflashchart/README.txt b/pacotes/openflashchart/README.txt new file mode 100644 index 0000000..90f3e77 --- /dev/null +++ b/pacotes/openflashchart/README.txt @@ -0,0 +1,8 @@ +Hello. + +This is the Open Flash Chart source code. + +Take a look around :-) + +The test data is in the 'data-files' directory. + diff --git a/pacotes/openflashchart/data-files/3.html b/pacotes/openflashchart/data-files/3.html new file mode 100644 index 0000000..7ec4e60 --- /dev/null +++ b/pacotes/openflashchart/data-files/3.html @@ -0,0 +1,152 @@ + + + + + + + + + + + +
+ + + + + +
+ + +
+ + + \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/4.html b/pacotes/openflashchart/data-files/4.html new file mode 100644 index 0000000..d647185 --- /dev/null +++ b/pacotes/openflashchart/data-files/4.html @@ -0,0 +1,55 @@ + + + + + + + + +
+ + + +
+ +
+ + + + + + diff --git a/pacotes/openflashchart/data-files/5.html b/pacotes/openflashchart/data-files/5.html new file mode 100644 index 0000000..f7bc69b --- /dev/null +++ b/pacotes/openflashchart/data-files/5.html @@ -0,0 +1,39 @@ + + + + + + + + +
+ + + + + + diff --git a/pacotes/openflashchart/data-files/6.html b/pacotes/openflashchart/data-files/6.html new file mode 100644 index 0000000..f7bc69b --- /dev/null +++ b/pacotes/openflashchart/data-files/6.html @@ -0,0 +1,39 @@ + + + + + + + + +
+ + + + + + diff --git a/pacotes/openflashchart/data-files/7.html b/pacotes/openflashchart/data-files/7.html new file mode 100644 index 0000000..79d02a3 --- /dev/null +++ b/pacotes/openflashchart/data-files/7.html @@ -0,0 +1,43 @@ + + + + + + + + +
+ + + + + + diff --git a/pacotes/openflashchart/data-files/8.html b/pacotes/openflashchart/data-files/8.html new file mode 100644 index 0000000..f38763b --- /dev/null +++ b/pacotes/openflashchart/data-files/8.html @@ -0,0 +1,34 @@ + + + + + + + + +
+ + + + + + diff --git a/pacotes/openflashchart/data-files/area-1.txt b/pacotes/openflashchart/data-files/area-1.txt new file mode 100644 index 0000000..7029736 --- /dev/null +++ b/pacotes/openflashchart/data-files/area-1.txt @@ -0,0 +1,39 @@ +{ + "title":{ + "text":"Area Chart", + "style":"{font-size: 30px;}" + }, + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "text": "Page views", + "width": 3, + "font-size": 10, + "dot-style": { + "type":"anchor", + "sides":3, + "width":1, + "tip":"type = anchor\nsides = 3\nhollow" }, + "values" : [ + 0,0.37,0.73,1.07,1.36,1.59,1.77,1.87, + 1.89,1.85,1.72,1.53,1.28,0.97,0.63, + {"value" :0.26, "type":"star", "colour":"#FF0000", "dot-size":10}, + -0.11,-0.48,-0.84,-1.16,-1.43, + -1.65,-1.80,-1.88,-1.89,-1.82,-1.67,-1.46,-1.19,-0.88] + } + ], + + "y_axis":{ + "min": -2, + "max": 2 + } +} diff --git a/pacotes/openflashchart/data-files/area-line-dash.txt b/pacotes/openflashchart/data-files/area-line-dash.txt new file mode 100644 index 0000000..883c54d --- /dev/null +++ b/pacotes/openflashchart/data-files/area-line-dash.txt @@ -0,0 +1,33 @@ +{ + "title":{ + "text":"Volume Consumed", + "style":"font-size: 14px; font-family: Verdana; text-align: center;"}, + "x_axis":{ + "offset": false, + "labels":{ + "steps":3, + "labels":[ + "0","1","2","3","4","5", + "6","7","8","9","10","11", + "12","13","14","15","16", + "17","18","19","20","21", + "22","23","24","25","26", + "27","28","29","30","31"] + } + }, + "bg_colour":"#ffffff", + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "line-style": {"style":"dash","on":4,"off":4}, + "dot-style": {"type":"hollow-dot", "width":1, "size":2}, + "values":[ + 4,4.37,4.73,5.07,5.36,5.59,5.77,5.87,5.89,5.85,5.72,5.53,5.28,4.97,4.63,4.26, + 3.88,3.51,3.15,2.83,2.56,2.34,2.19,2.11,2.10,2.17,2.32,2.53,2.80,3.11,3.46,3.84], + "fill-alpha":0.5, + "width": 1, + "on-show": {"type": "mid-slide", "cascade":1, "delay":0.5} + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/area-line.txt b/pacotes/openflashchart/data-files/area-line.txt new file mode 100644 index 0000000..f9bafac --- /dev/null +++ b/pacotes/openflashchart/data-files/area-line.txt @@ -0,0 +1,40 @@ +{ + "title":{ + "text":"Area Chart", + "style":"{font-size: 30px;}" + }, + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "text": "Page views", + "width": 3, + "font-size": 10, + "dot-size": 7, + "tip": "Hello
#val#", + "values" : [0,0.37,0.73,1.07,1.36,1.59,1.77,1.87,1.89,1.85,1.72,1.53,1.28,0.97,0.63,0.26,-0.11,-0.48,-0.84,-1.16,-1.43,-1.65,-1.80,-1.88,-1.89,-1.82,-1.67,-1.46,-1.19,-0.88] + } + ], + + "x_axis":{ + "ma--x":30, + "labels": { + "labels": ["0.00","0.38","0.74","1.07","1.36","1.60","1.77","1.87","1.90","1.85","1.73","1.54", + "1.28","0.98","0.64","0.27","-0.11","-0.49","-0.84","-1.16","-1.44","-1.66","-1.81", + "-1.89","-1.89","-1.82","-1.68","-1.47","-1.20","-0.88"] + } + }, + + "y_axis":{ + "min": -2, + "max": 2 + } +} diff --git a/pacotes/openflashchart/data-files/area-point-objects.txt b/pacotes/openflashchart/data-files/area-point-objects.txt new file mode 100644 index 0000000..5b5eed9 --- /dev/null +++ b/pacotes/openflashchart/data-files/area-point-objects.txt @@ -0,0 +1,112 @@ +{ +"elements": [ + { + "type": "area", + "fill-alpha": 0.4, + "values": [ + { + "value": 0, + "colour": "#D02020", + "tip": "October 2007 Search Rank
Rank 0 \/ 100" + }, + { + "value": 0, + "colour": "#D02020", + "tip": "November 2007 Search Rank
Rank 0 \/ 100" + }, + { + "value": 0, + "colour": "#D02020", + "tip": "December 2007 Search Rank
Rank 0 \/ 100" + }, + { + "value": 0, + "colour": "#D02020", + "tip": "January 2008 Search Rank
Rank 0 \/ 100" + }, + { + "value": 0, + "colour": "#D02020", + "tip": "February 2008 Search Rank
Rank 0 \/ 100" + }, + { + "value": 0, + "colour": "#D02020", + "tip": "March 2008 Search Rank
Rank 0 \/ 100" + }, + { + "value": 83, + "colour": "#D02020", + "tip": "April 2008 Search Rank
Rank 83 \/ 100" + }, + { + "value": 76, + "colour": "#D02020", + "tip": "May 2008 Search Rank
Rank 76 \/ 100" + }, + { + "value": 100, + "colour": "#D02020", + "tip": "June 2008 Search Rank
Rank 100 \/ 100" + }, + { + "value": 80, + "colour": "#D02020", + "tip": "July 2008 Search Rank
Rank 80 \/ 100" + }, + { + "value": 73, + "colour": "#D02020", + "tip": "August 2008 Search Rank
Rank 73 \/ 100" + }, + { + "value": 100, + "colour": "#D02020", + "tip": "September 2008 Search Rank
Rank 100 \/ 100" + } + ], + "width": 2, + "dot-size": 4, + "halo-size": 2, + "colour": "#ff9900", + "fill": "#dbecf6" + } + ], + "bg_colour": "#ffffff", + "x_axis": { + "colour": "#aaaaaa", + "grid-colour": "#eeeeee", + "stroke": 1, + "tick-height": 4, + "labels": { + "labels": [ + "Oct", + "Nov", + "Dec", + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep" + ] + } + }, + "y_axis": { + "colour": "#aaaaaa", + "grid-colour": "#eeeeee", + "stroke": 1, + "tick-length": 5, + "min": 0, + "max": 105, + "steps": 50 + }, + "tooltip": { + "stroke": 1, + "colour": "#000000", + "background": "#fffbca" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/bar-2.txt b/pacotes/openflashchart/data-files/bar-2.txt new file mode 100644 index 0000000..a42556e --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-2.txt @@ -0,0 +1,51 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar", + "alpha": 0.5, + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,7,6,9,7] + }, + { + "type": "bar", + "alpha": 0.5, + "colour": "#CC9933", + "text": "Page views 2", + "font-size": 10, + "values" : [4,9,6,7,9,5,7,6,9] + } + ], + + "x_axis":{ + "stroke":1, + "tick_height":10, + "colour":"#d000d0", + "grid_colour":"#00ff00", + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "max": 20 + } + +/* &x_axis_steps=2& */ + +} + diff --git a/pacotes/openflashchart/data-files/bar-3d-2-BUG.txt b/pacotes/openflashchart/data-files/bar-3d-2-BUG.txt new file mode 100644 index 0000000..4af948c --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-3d-2-BUG.txt @@ -0,0 +1,56 @@ +/* bar close together overlap - bug */ + +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar_3d", + "alpha": 0.8, + "colour": "#9933CC", + "text--": "Page views", + "font-size--": 10, + "values" : [9,6,7,9,5,{"top":7,"colour":"#A03030","tip":"#top#
hello"},6,9,7] + }, + { + "type": "bar_3d", + "alpha": 0.8, + "colour": "#f00000", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,{"top":7,"colour":"#A03030","tip":"#top#
#x_label#"},6,9,7] + } + ], + + "x_axis":{ + "stroke": 1, + "tick_height": 10, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "labels": { + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + "3d": 5 + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "max": 20 + } + +/* &x_axis_steps=2& */ + +} + diff --git a/pacotes/openflashchart/data-files/bar-3d.txt b/pacotes/openflashchart/data-files/bar-3d.txt new file mode 100644 index 0000000..1dac5fb --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-3d.txt @@ -0,0 +1,48 @@ + + +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar_3d", + "alpha": 0.5, + "colour": "#9933CC", + "text--": "Page views", + "font-size--": 10, + "values" : [9,6,7,9,5,{"top":7,"colour":"#A03030","tip":"#top#
hello"},6,9,7] + } + ], + + "x_axis":{ + "stroke": 1, + "tick_height": 10, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "labels": { + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + "3d": 5 + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "max": 20 + } + +/* &x_axis_steps=2& */ + +} + diff --git a/pacotes/openflashchart/data-files/bar-4.txt b/pacotes/openflashchart/data-files/bar-4.txt new file mode 100644 index 0000000..ca10a8e --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-4.txt @@ -0,0 +1,59 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar", + "alpha": 0.5, + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,{"top":7,"colour":"#A03030","tip":"#top#
hello"},6,null,7] + }, + { + "type": "bar", + "alpha": 0.5, + "colour": "#CC9933", + "text": "Page views 2", + "font-size": 10, + "values" : [4,9,6,7,9,5,7,6,9] + }, + { + "type": "bar", + "alpha": 0.5, + "colour": "#CC0000", + "text": "XXX", + "font-size": 10, + "values" : [6,7,9,5,7,6,9,5,5] + } + ], + + "x_axis":{ + "stroke":1, + "tick_height":10, + "colour":"#d000d0", + "grid_colour":"#00ff00", + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "max": 20 + } + +/* &x_axis_steps=2& */ + +} + diff --git a/pacotes/openflashchart/data-files/bar-all-onclick.txt b/pacotes/openflashchart/data-files/bar-all-onclick.txt new file mode 100644 index 0000000..d0a1103 --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-all-onclick.txt @@ -0,0 +1,91 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "elements":[ + { + "type": "bar", + "colour": "#9933CC", + "on-click": "trace:http://example.com", + "values" : [{"top":7, "on-click": "trace:http://google.com"},0,-7] + }, + { + "type": "bar_sketch", + "colour": "#9933CC", + "on-click": "trace:http://example.com", + "values" : [{"top":7, "on-click": "trace:http://google.com"},0,-7] + }, + { + "type": "bar_glass", + "colour": "#9933CC", + "on-click": "trace:http://example.com", + "values" : [{"top":7, "on-click": "trace:http://google.com"},0,-7] + }, + { + "type": "bar_3d", + "colour": "#9933CC", + "on-click": "trace:http://example.com", + "values" : [{"top":7, "on-click": "trace:http://google.com"},0,-7] + }, + { + "type": "bar_filled", + "colour": "#9933CC", + "on-click": "trace:http://example.com", + "values" : [{"top":7, "on-click": "trace:http://google.com"},0,-7] + }, + { + "type": "bar_cylinder", + "colour": "#9933CC", + "on-click": "trace:http://example.com", + "values" : [{"top":7, "on-click": "trace:http://google.com"},0,-7] + }, + { + "type": "bar_cylinder_outline", + "colour": "#3030FF", + "on-click": "trace:http://example.com", + "values" : [{"top":7, "on-click": "trace:http://google.com"},0,-7] + }, + { + "type": "bar_round_glass", + "colour": "#CC0000", + "on-click": "trace:http://example.com", + "values" : [{"top":7, "on-click": "trace:http://google.com"},0,-7] + }, + { + "type": "bar_round", + "colour": "#CC0000", + "on-click": "trace:http://example.com", + "values" : [{"top":7, "on-click": "trace:http://google.com"},0,-7] + }, + { + "type": "bar_dome", + "colour": "#CCCC00", + "on-click": "trace:http://example.com", + "values" : [{"top":7, "on-click": "trace:http://google.com"},0,-7] + }, + { + "type": "bar_plastic", + "colour": "#CCCC00", + "on-click": "trace:http://example.com", + "values" : [{"top":7, "on-click": "trace:http://google.com"},0,-7] + }, + { + "type": "bar_plastic_flat", + "colour": "#CCCC00", + "on-click": "trace:http://example.com", + "values" : [{"top":7, "on-click": "trace:http://google.com"},0,-7] + } + ], + + "y_axis":{ + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "min": -10, + "max": 10 + } +} + diff --git a/pacotes/openflashchart/data-files/bar-alpha.txt b/pacotes/openflashchart/data-files/bar-alpha.txt new file mode 100644 index 0000000..f210cbd --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-alpha.txt @@ -0,0 +1,62 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar", + "colour": "#9933CC", + "alpha": 0.5, + "values" : [9] + }, + { + "type": "bar_cylinder_outline", + "colour": "#CC9933", + "alpha": 0.9, + "values" : [{"top":7,"colour":"#30A030","tip":"#top#
hello"}] + }, + { + "type": "bar_cylinder_outline", + "colour": "#CC9933", + "alpha": 0.9, + "values" : [{"top":7,"colour":"#A03030","tip":"#top#
hello","alpha":0.2}] + }, + { + "type": "bar_sketch", + "colour": "#0000FF", + "alpha": 0.5, + "values" : [4] + }, + { + "type": "bar_glass", + "alpha": 0.5, + "colour": "#CC9933", + "values" : [6] + } + ], + + "x_axis":{ + "stroke":1, + "tick_height":10, + "colour":"#d000d0", + "grid_colour":"#00ff00", + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "max": 20 + } +} + diff --git a/pacotes/openflashchart/data-files/bar-cylinder.txt b/pacotes/openflashchart/data-files/bar-cylinder.txt new file mode 100644 index 0000000..c884763 --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-cylinder.txt @@ -0,0 +1,75 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar_cylinder", + "alpha": 0.5, + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [5,{"top":7,"colour":"#A03030","tip":"#top#
hello"},-6,null,7] + }, + { + "type": "bar_cylinder_outline", + "alpha": 0.7, + "colour": "#3030FF", + "text": "Page views 2", + "font-size": 10, + "values" : [4,9,9,-6,9] + }, + { + "type": "bar_round_glass", + "alpha": 0.7, + "colour": "#CC0000", + "values" : [6,5,7,-5] + }, + { + "type": "bar_round", + "alpha": 0.7, + "colour": "#CC0000", + "values" : [6,5,7,-5] + }, + { + "type": "bar_dome", + "alpha": 0.7, + "colour": "#CCCC00", + "values" : [6,-5,5,7] + }, + { + "type": "bar_round3d", + "alpha": 0.7, + "colour": "#CCCC00", + "values" : [6,-5,5,7] + } + ], + + "x_axis":{ + "stroke":1, + "tick_height":10, + "colour":"#d000d0", + "grid_colour":"#00ff00", + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + + "y_axis":{ + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "min": -10, + "max": 20 + } + +/* &x_axis_steps=2& */ + +} + diff --git a/pacotes/openflashchart/data-files/bar-filled.txt b/pacotes/openflashchart/data-files/bar-filled.txt new file mode 100644 index 0000000..b11569d --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-filled.txt @@ -0,0 +1,40 @@ +{ + "title":{ + "text": "Filled", + "style": "{font-size:35px; color: #567300}" + }, + + "elements":[ + { + "type": "bar_filled", + "colour": "#81AC00", + "outline-colour": "#567300", + "values" : [ + 3, + 8, +null, + -5, + {"top":5,"outline-colour": "#7030A0", "tip": "outline"}, + 4, + {"top":5, "colour": "#99FF00", "tip": "colour"}, + {"top":-3,"colour": "#D08080", "outline-colour": "#FF0000", "tip": "colour + outline"}, + null, + 7.5] + } + ], + + "x_axis":{ + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + + "y_axis":{ + "min": -10, + "max": 10 + }, + + "tooltip":{ + "text": "My Tip
#top#,#bottom# = #val#" + } + +} + diff --git a/pacotes/openflashchart/data-files/bar-floating-2.txt b/pacotes/openflashchart/data-files/bar-floating-2.txt new file mode 100644 index 0000000..5a2a4b6 --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-floating-2.txt @@ -0,0 +1,48 @@ +{ + "title": { + "text": "Fri Jul 11 2008" + }, + "elements": [ + { + "type": "bar", + "values": [ + 130, + 180, + 200, + { + "top": 170 + }, + { + "top": 130, + "colour": "#000000", + "tip": "Hello
#top#" + }, + null, + 150 + ] + }, + { + "type": "bar_filled", + "values": [ + 140, + 190, + 180, + 140, + { + "top": 200, + "bottom": 150, +"tip":"#top# - #bottom#" + }, + 160, + 130 + ], + "colour": "#FFEF3F" + } + ], + "bg_colour": "#FFFFFF", + "y_axis": { + "min": 100, + "max": 200, + "steps": 10 + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/bar-floating.txt b/pacotes/openflashchart/data-files/bar-floating.txt new file mode 100644 index 0000000..76688ae --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-floating.txt @@ -0,0 +1,37 @@ +{ + "title":{ + "text": "Floating bars, -10 to 10", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar", + "alpha": 0.5, + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,9,5,7,{"top":4,"bottom":-4,"tip":"LOOK
#top#,#bottom# = #val#"},-9,{"top":4,"bottom":-5}] + } + ], + + "x_axis":{ + "labels": ["January","February","March","April","May","June","July"] + }, + + "y_axis":{ + "min": 10, + "max": -10 + }, + + "tooltip":{ + "text": "My Tip
#top#,#bottom# = #val#" + } + +} + diff --git a/pacotes/openflashchart/data-files/bar-glass-2.txt b/pacotes/openflashchart/data-files/bar-glass-2.txt new file mode 100644 index 0000000..c1effa9 --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-glass-2.txt @@ -0,0 +1,59 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar_glass", + "alpha": 0.5, + "colour": "#9933CC", + "tip": "Tip for purple bars
val=#val#, top=#top#", + "text--": "Page views", + "font-size--": 10, + "values" : [9,6,7,9,5,{"top":7,"colour":"#FF0000", "tip": "RED
Mooo
#val#"},6,9,7] + }, + { + "type": "bar_glass", + "alpha": 0.5, + "colour": "#44FF44", + "tip": "Tip for green bars
val=#val#, top=#top#", + "text--": "Page views", + "font-size--": 10, + "values" : [6,7,9,5,9,{"top":7,"colour":"#FF0000", "tip": "RED
W000t
#val#"},6,5,2] + } + ], + + "x_axis":{ + "stroke": 1, + "tick_height": 10, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "labels": { + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + } + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "max": 20 + }, + + "tooltip":{ + "text": "Global Tooltip
val=#val#, top=#top#" + } + +/* &x_axis_steps=2& */ + +} + diff --git a/pacotes/openflashchart/data-files/bar-glass-height-0.txt b/pacotes/openflashchart/data-files/bar-glass-height-0.txt new file mode 100644 index 0000000..49a705f --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-glass-height-0.txt @@ -0,0 +1,50 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar_glass", + "alpha": 0.5, + "colour": "#9933CC", + "tip": "Tip for purple bars
val=#val#, top=#top#", + "text--": "Page views", + "font-size--": 10, + "values" : [9,6,7,0,5,{"top":7,"colour":"#FF0000", "tip": "RED
Mooo
#val#"},6,9,7] + } + ], + + "x_axis":{ + "stroke": 1, + "tick_height": 10, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "labels": { + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + } + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "max": 20 + }, + + "tooltip":{ + "text": "Global Tooltip
val=#val#, top=#top#" + } + +/* &x_axis_steps=2& */ + +} + diff --git a/pacotes/openflashchart/data-files/bar-glass.txt b/pacotes/openflashchart/data-files/bar-glass.txt new file mode 100644 index 0000000..bbe23f8 --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-glass.txt @@ -0,0 +1,49 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar_glass", + "alpha": 0.5, + "colour": "#9933CC", + "text--": "Page views", + "font-size--": 10, + "values" : [9,6,7,9,5,{"top":7,"colour":"#FF0000", "tip": "Mooo
#val#"},6,9,7] + } + ], + + "x_axis":{ + "stroke": 1, + "tick_height": 10, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "labels": { + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + } + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "max": 20 + }, + + "tooltip":{ + "text": "My Tip
val=#val#, top=#top#" + } + +/* &x_axis_steps=2& */ + +} + diff --git a/pacotes/openflashchart/data-files/bar-groups-with-nulls.txt b/pacotes/openflashchart/data-files/bar-groups-with-nulls.txt new file mode 100644 index 0000000..a4f5b7d --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-groups-with-nulls.txt @@ -0,0 +1,51 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar", + "alpha": 0.5, + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,{"top":7,"colour":"#A03030","tip":"#top#
hello"},6,null,7] + }, + { + "type": "bar", + "alpha": 0.5, + "colour": "#CC9933", + "text": "Page views 2", + "font-size": 10, + "values" : [4,9,6,7,9,5,7,6,9] + } + ], + + "x_axis":{ + "stroke":1, + "tick-height":10, + "colour":"#d000d0", + "grid-colour":"#00ff00", + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + + "y_axis":{ + "stroke": 4, + "tick-length": 3, + "colour": "#d000d0", + "grid-colour": "#00ff00", + "offset": 0, + "max": 20 + } + +/* &x_axis_steps=2& */ + +} + diff --git a/pacotes/openflashchart/data-files/bar-on-show-cascade.txt b/pacotes/openflashchart/data-files/bar-on-show-cascade.txt new file mode 100644 index 0000000..4375add --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-on-show-cascade.txt @@ -0,0 +1,53 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#909090; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #909090; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar_glass", + "alpha": 0.5, + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "on-show": {"type": "pop", "cascade":1, "delay":2.5}, + "values" : [9,6,7,9,5,7,6,9,7] + }, + { + "type": "bar", + "alpha": 0.5, + "colour": "#CC9933", + "text": "Page views 2", + "font-size": 10, + "on-show": {"type": "drop", "cascade":0.9}, + "values" : [4,9,6,7,9,5,7,6,9] + } + ], + + "x_axis":{ + "stroke":1, + "tick_height":10, + "colour":"#909090", + "grid_colour":"#00ff00", + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#909090", + "grid_colour": "#d0d0d0", + "offset": 0, + "max": 20 + } + +/* &x_axis_steps=2& */ + +} + diff --git a/pacotes/openflashchart/data-files/bar-on-show-pop.txt b/pacotes/openflashchart/data-files/bar-on-show-pop.txt new file mode 100644 index 0000000..7ef8a0e --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-on-show-pop.txt @@ -0,0 +1,49 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#909090; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #909090; font-size: 12px;}" + }, + + "elements":[ + { + "type": "b-ar", + "alpha": 0.5, + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,7,6,9,7] + }, + { + "type": "bar_glass", + "alpha": 0.5, + "colour": "#CC9933", + "text": "Page views 2", + "font-size": 10, + "on-show": {"type": "pop", "delay":0.5, "cascade":0.6}, + "values" : [4,9,6,7,9,5,7,6,9] + } + ], + + "x_axis":{ + "stroke":1, + "tick_height":10, + "colour":"#909090", + "grid_colour":"#00ff00", + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#909090", + "grid_colour": "#d0d0d0", + "offset": 0, + "max": 20 + } +} + diff --git a/pacotes/openflashchart/data-files/bar-on-show.txt b/pacotes/openflashchart/data-files/bar-on-show.txt new file mode 100644 index 0000000..2852ff4 --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-on-show.txt @@ -0,0 +1,49 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#909090; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #909090; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar", + "alpha": 0.5, + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,7,6,9,7] + }, + { + "type": "bar_glass", + "alpha": 0.5, + "colour": "#CC9933", + "text": "Page views 2", + "font-size": 10, + "on-show": {"type": "grow-up"}, + "values" : [4,9,6,7,9,5,7,6,9] + } + ], + + "x_axis":{ + "stroke":1, + "tick_height":10, + "colour":"#909090", + "grid_colour":"#00ff00", + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#909090", + "grid_colour": "#d0d0d0", + "offset": 0, + "max": 20 + } +} + diff --git a/pacotes/openflashchart/data-files/bar-sketch.txt b/pacotes/openflashchart/data-files/bar-sketch.txt new file mode 100644 index 0000000..31a9744 --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-sketch.txt @@ -0,0 +1,42 @@ +{ + "title":{ + "text": "Sketch", + "style": "{font-size:35px; color: #567300}" + }, + + "elements":[ + { + "type": "bar_sketch", + "colour": "#81AC00", + "outline-colour": "#567300", + "text": "Sketch", + "font-size": 10, + "offset": 7, + "values" : [ + 3, + 8, + -5, + {"top":5,"outline-colour": "#7030A0", "tip": "outline"}, + 4, + {"top":5, "colour": "#99FF00", "tip": "colour"}, + {"top":-3,"colour": "#99FF00", "outline-colour": "#7030A0", "tip": "colour + outline"}, + 2, + 7.5] + } + ], + + "x_axis":{ + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + + "y_axis":{ + "min": -10, + "max": 10 + }, + + "tooltip":{ + "text": "My Tip
#top#,#bottom# = #val#" + } + +} + diff --git a/pacotes/openflashchart/data-files/bar-test-all.txt b/pacotes/openflashchart/data-files/bar-test-all.txt new file mode 100644 index 0000000..bc1bdd9 --- /dev/null +++ b/pacotes/openflashchart/data-files/bar-test-all.txt @@ -0,0 +1,83 @@ +{ + + "title":{ + "text":"Glass Bar Cart", + "style":"{font-size:20px; color: #FFFFFF; margin: 5px; background-color: #505050; padding:5px 20px 5px 20px;}" + }, + + "elements":[ + { + "type": "bar_3d", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [10,-6] + }, + { + "type": "bar_fade-", + "colour": "#3334AD", + "text": "Stuff", + "font-size": 10, + "values" : [10,-10] + }, + { + "type": "bar", + "colour": "#339966", + "text": "Green Bar", + "font-size": 10, + "values" : [7,-7] + }, + { + "type": "bar_glass", + "colour": "#339966", + "text": "Green Bar", + "font-size": 10, + "values" : [10,-10] + }, + { + "type": "bar_filled", + "colour": "#8822BB", + "outline-colour": "#8010A0", + "text": "Outline", + "font-size": 10, + "values" : [8,-8] + } + + ], + + + "x_axis":{ + "labels": { "labels" :["Jan","Feb"] }, + "3d": 5 + }, + + "y_axis":{ + "min": -20, + "max": 20 + }, + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#7E97A6;}" + } +} + +/* + +&bg_colour=#E2E6E0& +&show_y2=true& +&y2_axis_colour=#164166& + &y2_label_style=10,0x164166& +&_y2_lines=2,4& + + &y2_min=-10& +&y2_max=10& + +&y2_legend=Free Ram (mb),12,0x164166& + +&tool_tip=#x_legend#, € %25 #x_label#
#key#: £#val#.00
#val:time#& +&x_legend=2007,12,0x164166& + +*/ + + diff --git a/pacotes/openflashchart/data-files/bug-1.txt b/pacotes/openflashchart/data-files/bug-1.txt new file mode 100644 index 0000000..4aec08c --- /dev/null +++ b/pacotes/openflashchart/data-files/bug-1.txt @@ -0,0 +1,76 @@ +{ + "title": + { + "text": "Tooltip Demo", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + "x_axis": + { + "offset": false, + "labels": + { + "steps": 1 + }, + "steps": 1, + "3d": 0 + }, + "y_axis": + { + "tick-length": 0, + "offset": 0, + "steps": 5, + "min": -10, + "max": 15, + "3d": 0 + }, + "elements": + [ + { + "width": 2, + "dot-size": 5, + "halo-size": 3, + "colour": "#456f3", + "values": + [ + 7, + 7.3774717285106162, + 7.7398948503864364, + 8.0728206994505669, + 8.3629765727090941, + 8.598794871135004, + 8.77087426333773, + 8.8723544869780735, + 8.89918984577886, + 8.8503104986685717, + 8.727665110968795, + 8.5361431672572223, + 8.2833800430471864, + 7.9794526064607822, + 7.6364774852962185, + 7.2681280153137466, + 6.8890891274875967, + 6.5144719061490193, + 6.1592111577397786, + 5.8374700072088324, + 5.5620752589149349, + 5.3440060324141818, + 5.191956059609919, + 5.1119870930964169, + 5.1072872432119034, + 5.1780438781400377, + 5.32143615413171, + 5.5317474736436267, + 5.8005933880425928, + 6.1172558591138655, + 6.4691105534220457 + ], + "text": "line1", + "fillalpha": 0.35, + "type": "line" + } + ], + "tooltip": + { + "text": "global tooltip #val#" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/candle.txt b/pacotes/openflashchart/data-files/candle.txt new file mode 100644 index 0000000..0819e78 --- /dev/null +++ b/pacotes/openflashchart/data-files/candle.txt @@ -0,0 +1,41 @@ +{ + "title":{ + "text": "Candle", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "candle", + "alpha": 0.5, + "colour": "#40d040", + "negative-colour": "#d04040", + "text": "Burn baby, burn", + "font-size": 10, + "on-show": {"type": "po-p", "cascade":1, "delay":0}, + "tip": "#x_label#
High: #high#
Open: #open#
Close: #close#
Low: #low#", + "values" : [ + {"high":19, "top":14, "bottom":11, "low":10, "tip":"LOOK
#top#,#bottom# = #val#"}, + {"high":15, "top":10, "bottom":5, "low":0}, + {"high":7, "top":7, "bottom":4, "low":3}, + {"high":7, "top":3, "bottom":6, "low":2}, + {"high":7, "top":4, "bottom":4, "low":2} + ] + } + ], + + "x_axis":{ + "labels": ["January","February","March"] + }, + + "y_axis":{ + "max": 20 + } + +} + diff --git a/pacotes/openflashchart/data-files/combined-chart-bar-line-scatter.txt b/pacotes/openflashchart/data-files/combined-chart-bar-line-scatter.txt new file mode 100644 index 0000000..a50eebf --- /dev/null +++ b/pacotes/openflashchart/data-files/combined-chart-bar-line-scatter.txt @@ -0,0 +1,84 @@ +{ + "title":{ + "text": "Request from user: TheBashar", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar", + "alpha": 0.7, + "colour": "#6D9934", + "text": "Page views", + "font-size": 10, + "values" : [169,166,167,169,165,167,166,169,167] + }, + { + "type": "line", + "dot-style": {"type":"solid-dot", "dot-size": 2, "halo": 1}, + "values": [ 190, 192, 193, 194, 192, 190, 192, 193, 194 ], + "width": 2, + "colour": "#A18B6A", + "text": "S&P 500", + "font-size": 12 + }, + { + "type": "scatter", + "colour": "#FFB900", + "text": "Avg", + "font-size": 10, + "dot-style": {"type":"star", "colour":"#DD0000", "hollow":false}, + "values" : [ + {"x":3.5, "y":193, "tip":"HELLO" }, + {"x":7, "y":190, "dot-size":7} + ] + }, + { + "type": "scatter", + "colour": "#FFB900", + "text": "Avg", + "font-size": 10, + "dot-style": {"type":"anchor", "sides":4, "rotation":45, "colour":"#6D9934", "hollow":false}, + "values" : [ + {"x":3, "y":192}, + {"x":3.2, "y":192}, + {"x":4, "y":192}, + {"x":4.5, "y":192}, + {"x":8, "y":190} + ] + } + ], + + "bg_colour": "#FAF7F5", + + "x_axis":{ + "stroke":1, + "tick-length":2, + "colour":"#696969", + "grid-visible":false, + "labels": ["10
January","15
Jan","March","April","May","June","July","August","Spetember"] + }, + + "y_axis":{ + "stroke": 1, + "tick-length": 2, + "colour": "#696969", + "grid-colour": "#B5B4B3", + "offset": 0, + "min": 160, + "max": 200, + "steps": 5 + }, + + "tooltip":{ + "mouse": 1, + "stroke":1 + } + +} + diff --git a/pacotes/openflashchart/data-files/comparisons.txt b/pacotes/openflashchart/data-files/comparisons.txt new file mode 100644 index 0000000..cb90f9f --- /dev/null +++ b/pacotes/openflashchart/data-files/comparisons.txt @@ -0,0 +1,220 @@ +{ + "y_legend":{ + "text": "Time of day", + "style": "{color: #736AFF;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* December 28 - January 3 */ + 5217,12957,13761,10001,4409,10737,6805 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* January 4 - January 10 */ + 7265,15366,17295,17434,19908,18646,7590 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* January 11 - January 17 */ + 8807,16022,19428,18060,19342,16441,9144 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* January 18 - January 24 */ + 6987,18623,18234,18695,19463,18197,8038 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* January 25 - January 31 */ + 7388,16279,17989,16972,17300,16900,8631 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* February 1 - February 7 */ + 7630,15920,18820,19736,19877,19036,9498 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* February 8 - February 14 */ + 8462,20963,21375,19958,20934,19418,7468 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* February 15 - February 21 */ + 8156,18542,21337,22606,20517,19413,8287 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* February 22 - February 28 */ + 7697,18689,19207,20320,18814,19901,8910 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* March 1 - March 7 */ + 9208,19608,20342,22017,21121,21887,9295 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* March 8 - March 14 */ + 10137,20351,22631,23537,22577,21766,8350 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* March 15 - March 21 */ + 8615,21410,20658,21802,21743,19196,9142 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* March 22 - March 28 */ + 9597,23737,25651,26392,24262,22219,10238 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* March 29 - April 4 */ + 8986,23116,26447,26273,23800,22472,9885 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* April 5 - April 11 */ + 9877,26088,27208,23224,23080,18266,10373 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* April 12 - April 18 */ + 8749,19981,25231,25573,25301,22133,11443 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* April 19 - April 25 */ + 9606,23534,26971,27599,28266,28851,14547 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* April 26 - May 2 */ + 8536,23146,25804,23278,23338,11409,8987 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* May 3 - May 9 */ + 9927,20798,23867,24617,22217,20556,9146 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* May 10 - May 16 */ + 8655,21463,23547,24920,27221,22235,10928 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* May 17 - May 23 */ + 9601,21913,25392,24938,22652,22858,9513 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* May 24 - May 30 */ + 9423,22241,25194,24351,23348,23821,8379 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* May 31 - June 6 */ + 10162,20333,28830,25407,24313,24205,10580 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* June 7 - June 13 */ + 9726,24385,28695,25270,22878,21605,9805 + ]}, + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "values" : [ + /* June 14 - June 20 */ + 9395,22256,26144,26589,26070,24894,10347 + ]} + ], + "x_axis":{ + "labels": { + "rotate": "vertical", + "labels":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"] + } + }, + + "y_axis":{ + "max": 30000 + } + +} diff --git a/pacotes/openflashchart/data-files/exp.txt b/pacotes/openflashchart/data-files/exp.txt new file mode 100644 index 0000000..511ee12 --- /dev/null +++ b/pacotes/openflashchart/data-files/exp.txt @@ -0,0 +1,9 @@ +/* + +https://sourceforge.net/forum/forum.php?thread_id=2131075&forum_id=716572 + +by brian hull + +*/ + +{ "title": { "text": "Mitigating Systems Performance Index, High Pressure Injection System", "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" }, "y_legend":{ "text":"Arkansas Nuclear 1", "style":"{font-size: 12px; color:#736AFF;}" }, "elements": [ { "type": "line_hollow", "fill_alpha": 0.5, "colour": "#9933CC", "text": "Thresholds: White > 1.00E-6 Yellow > 1.00E-5 Red > 1.00E-4 ", "font-size": 10, "values": [3.28,4.29,6.39,6.49,4.99,3.99,7.28,5.28] } ], "x_axis": { "labels": { "steps": 1, "rotate": "vertical", "colour": "#CF4D5F", "size": 16, "labels": [ "2Q/06","3Q/06","4Q/06","1Q/07","2Q/07","3Q/07","4Q/07","1Q/08" ] } }, "x_legend": { "text": "Original Values: 3.20E-08 4.20E-09 6.30E-09 6.40E-09 4.90E-09 3.90E-09 7.20E-08 5.20E-08 ", "style": "{font-size: 10px; color: #778877}" }, "y_axis":{ "min": 3, "max": 12.28, "steps": 2 }, "y_axis_right": { "stroke": 0, "colour": "#D7E4A3", "tick-length": 30, "steps": 1, "labels": [ "Indicator","Threshold","A","Be ","Will","This" ] } } \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/flash-variable.html b/pacotes/openflashchart/data-files/flash-variable.html new file mode 100644 index 0000000..a30b701 --- /dev/null +++ b/pacotes/openflashchart/data-files/flash-variable.html @@ -0,0 +1,32 @@ + + + + + + + + + + +
+ + + +
boo
+ + + \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/horizontal-bar-chart-2.txt b/pacotes/openflashchart/data-files/horizontal-bar-chart-2.txt new file mode 100644 index 0000000..62776a5 --- /dev/null +++ b/pacotes/openflashchart/data-files/horizontal-bar-chart-2.txt @@ -0,0 +1,35 @@ +{ + + "title_":{ + "text":"Tooltip Hover", + "style":"{font-size: 20px; font-family: Verdana; text-align: center;}" + }, + + "elements":[ + { + "type": "hbar", + "tip": "#val#
L:#left#, R:#right#", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [{"right":10},{"right":15},{"left":5,"right":15}] + } + ], + "x_axis":{ + "min": 0, + "max": 20, + "offset": false, + "labels": { + "labels": ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v"] + } + }, + "y_axis":{ + "offset": true, + "labels": ["slashdot.org","digg.com","reddit.com"] + + }, + + "tooltip":{ + "mouse": 1 + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/horizontal-bar-chart-3.txt b/pacotes/openflashchart/data-files/horizontal-bar-chart-3.txt new file mode 100644 index 0000000..62776a5 --- /dev/null +++ b/pacotes/openflashchart/data-files/horizontal-bar-chart-3.txt @@ -0,0 +1,35 @@ +{ + + "title_":{ + "text":"Tooltip Hover", + "style":"{font-size: 20px; font-family: Verdana; text-align: center;}" + }, + + "elements":[ + { + "type": "hbar", + "tip": "#val#
L:#left#, R:#right#", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [{"right":10},{"right":15},{"left":5,"right":15}] + } + ], + "x_axis":{ + "min": 0, + "max": 20, + "offset": false, + "labels": { + "labels": ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v"] + } + }, + "y_axis":{ + "offset": true, + "labels": ["slashdot.org","digg.com","reddit.com"] + + }, + + "tooltip":{ + "mouse": 1 + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/horizontal-bar-chart.txt b/pacotes/openflashchart/data-files/horizontal-bar-chart.txt new file mode 100644 index 0000000..c2dad0e --- /dev/null +++ b/pacotes/openflashchart/data-files/horizontal-bar-chart.txt @@ -0,0 +1,34 @@ +{ + + "title_":{ + "text":"Horizontal Bar Chart", + "style":"{font-size: 20px; font-family: Verdana; text-align: center;}" + }, + + "elements":[ + { + "type": "hbar", + "tip": "#val#
L:#left#, R:#right#", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [{"right":10},{"right":15},{"left":5,"right":15}] + } + ], + "x_axis_":{ + "min": 0, + "max": 20, + "offset": false, + "labels": { + "labels": ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v"] + } + }, + "y_axis":{ + "offset": true, + "labels": ["slashdot.org","digg.com","reddit.com"] + }, + + "tooltip_":{ + "mouse": 0 + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/json-example.html b/pacotes/openflashchart/data-files/json-example.html new file mode 100644 index 0000000..f4897a6 --- /dev/null +++ b/pacotes/openflashchart/data-files/json-example.html @@ -0,0 +1,43 @@ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/json-test-2.html b/pacotes/openflashchart/data-files/json-test-2.html new file mode 100644 index 0000000..220ce8c --- /dev/null +++ b/pacotes/openflashchart/data-files/json-test-2.html @@ -0,0 +1,131 @@ + + + + + + + + + + + + + +
+ + + +load json + + + \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/json-test.html b/pacotes/openflashchart/data-files/json-test.html new file mode 100644 index 0000000..ad47955 --- /dev/null +++ b/pacotes/openflashchart/data-files/json-test.html @@ -0,0 +1,136 @@ + + + + + + + + + + + + + +
+ + + +load json + + + \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/keys-1.txt b/pacotes/openflashchart/data-files/keys-1.txt new file mode 100644 index 0000000..ea1db96 --- /dev/null +++ b/pacotes/openflashchart/data-files/keys-1.txt @@ -0,0 +1,41 @@ +{ + + "title":{ + "text":"Test stacked bar charts", + "style":"{font-size:16px;}" + }, + + "elements":[ + { + "type": "bar_stack", + "keys": [ + {"colour":"#FFB900", "text": "Key 1", "font-size": 10}, + {"colour":"#ff00ff", "text": "Key 2", "font-size": 16}, + {"colour":"#FFB9F0", "text": "Key 3"}, + {"colour":"#FFB9F0", "font-size": 16}, + {"text": "Key 5", "font-size": 16} + ], + + "values" : [ + [2.5,{"val":5}], + [{"val":2.5},{"val":5},{"val":2.5}], + null, + [{"val":5},{"val":5},{"val":2},{"val":2},{"val":2,"colour":"#ff00ff"},{"val":2},{"val":2}] + ] + } + ], + + "x_axis":{ + "max":4, + "steps": 1, + "labels": { + "labels": ["January","February","March","April"] + }, + "stroke": 12, + "tick-height": 6 + }, + + "y_axis":{ + "max": 20 + } +} diff --git a/pacotes/openflashchart/data-files/languages-chinese.txt b/pacotes/openflashchart/data-files/languages-chinese.txt new file mode 100644 index 0000000..f9e1700 --- /dev/null +++ b/pacotes/openflashchart/data-files/languages-chinese.txt @@ -0,0 +1,39 @@ +{ + + "title":{ + "text":"Calculate Range", + "style":"{color: #736AFF; font-size: 25;}" + }, + + + "elements":[ + { + "type": "line", + "colour": "#87421F", + "width": 3, + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40, + 2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62, + 0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61, + 1.81,1.99,2.15,2.29,2.39,2.46,2.49] + } + ], + + "y_axis":{ + "max": 3, + "colour": "#FF0000", + "grid-colour": "#FF0000" + }, + + "x_axis":{ + "steps": 4, + + "labels":{ + "visible": true, + "ro--tate": "vertical", + "steps": 2, + "labels": ["08\u5e7408\u670801\u65e5","08\u5e7408\u670802\u65e5"] + } + }, + + "bg_colour": "#F8F8F8" +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/line-2.txt b/pacotes/openflashchart/data-files/line-2.txt new file mode 100644 index 0000000..b181975 --- /dev/null +++ b/pacotes/openflashchart/data-files/line-2.txt @@ -0,0 +1,55 @@ +{ + "y_legend":{ + "text": "Time of day", + "style": "{color: #736AFF;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 0, + "values" : [ + 6,6, + {"value":7, "colour":"#FF0000", "tip":"LINE
#val#", "dot-size":12, "halo-size": 3 }, + 8,8] + }, + { + "type": "line_hollow", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 2, + "values" : [ + 4,4, + {"value":5, "colour":"#FF0000", "tip":"HOLLOW
#val#", "dot-size":12, "halo-size": 3 }, + 6,6] + }, + { + "type": "line_dot", + "colour": "#736AFF", + "text": "Line Dot Key", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 1, + "tip": "global dot
#val#", + "values" : [ + 2,2, + {"value":3, "colour":"#FF0000", "tip":"DOT
#val#
Key: #key#
#x_label#, #x_legend#", "dot-size":12, "halo-size": 3 }, + 4,4] + } + ], + + + "y_axis":{ + "max": 10 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/line-anchor.txt b/pacotes/openflashchart/data-files/line-anchor.txt new file mode 100644 index 0000000..180e15c --- /dev/null +++ b/pacotes/openflashchart/data-files/line-anchor.txt @@ -0,0 +1,24 @@ +{ + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 1, + "dot-style": { + "type":"anchor", "sides":4, + "alpha":1, "hollow":true, + "background-colour":"#a44a80", "background-alpha": 0.4, + "width":1, "tip":"type = anchor
sides = 4
hollow" }, + + "values" : [3,0,-3] + } + ], + + "y_axis":{ + "min": -5, + "max": 5 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/line-bow.txt b/pacotes/openflashchart/data-files/line-bow.txt new file mode 100644 index 0000000..8a1b034 --- /dev/null +++ b/pacotes/openflashchart/data-files/line-bow.txt @@ -0,0 +1,21 @@ +{ + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 1, + "dot-style": { + "type":"bow", "dot-size": 6, "tip":"#val#
#x_label#" }, + + "values" : [3,0,-3] + } + ], + + "y_axis":{ + "min": -5, + "max": 5 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/line-bug-report.txt b/pacotes/openflashchart/data-files/line-bug-report.txt new file mode 100644 index 0000000..babefcc --- /dev/null +++ b/pacotes/openflashchart/data-files/line-bug-report.txt @@ -0,0 +1,50 @@ +{ + "elements":[ + { + "type":"line", + "values":[1,0,0,0,0,0,0,0,1,0,0,0,6,2,0,0,0,0,0,6,0,0,0,0], + "colour":"#ffae00", + "text":"Returning Visits", + "font-size":12, + "tip":"Returning: #val#" + }, + { + "type":"line", + "values":[7,5,5,8,6,6,7,11,4,7,5,3,3,11,8,9,12,10,11,11,8,4,10,2], + "colour":"#52aa4b", + "text":"Unique Visits", + "font-size":12, + "tip":"Unique: #val#" + }, + { + "type":"line", + "values":[14,26,12,20,18,20,12,68,8,8,5,3,10,32,31,16,22,33,32,36,49,8,31,5], + "colour":"#335ac9", + "text":"Total Visits", + "font-size":12, + "tip":"Total: #val#" + } + ], + "title":{ + "text":"Visits data for Alan Edwardes from the 4th of June to the 5th of June", + "style":"{font-size:12px;padding-bottom:10px;text-align:left;color:#999999;}" + }, + "y_axis":{ + "stroke":1, + "colour":"#c6d9fd", + "grid-colour":"#dddddd", + "min":0, + "max":73, + "steps":5 + }, + "x_axis":{ + "offset":false, + "stroke":1, + "colour":"#c6d9fd", + "grid-colour":"#dddddd", + "labels":{ + "labels":["09pm","10pm","11pm","12am","01am","02am","03am","04am","05am","06am","07am","08am","09am","10am","11am","12pm","01pm","02pm","03pm","04pm","05pm","06pm","07pm","08pm"] + } + }, + "bg_colour":"#ffffff" +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/line-dash.txt b/pacotes/openflashchart/data-files/line-dash.txt new file mode 100644 index 0000000..f4cea6b --- /dev/null +++ b/pacotes/openflashchart/data-files/line-dash.txt @@ -0,0 +1,50 @@ +{ + "y_legend":{ + "text": "Time of day", + "style": "{color: #736AFF;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-style": { + "type":"anchor", + "sides":3, + "width":1, + "tip":"type = anchor\nsides = 3\nhollow" }, + + "line-style": {"style":"dash","on":10,"off":5}, + "values" : [ + 6,6, + {"value":7, "colour":"#FF0000", "tip":"LINE
#val#", "dot-size":12, "halo-size": 3 }, + 8,8] + }, + { + "type": "line", + "colour": "#736AFF", + "text": "Line Dot Key", + "font-size": 10, + "width": 2, + "dot-style": { + "type":"anchor", + "sides":3, + "width":1, + "tip":"type = anchor\nsides = 3\nhollow" }, + "tip": "global dot
#val#", + "values" : [ + 2,2, + {"value":3, "colour":"#FF0000", "tip":"DOT
#val#
Key: #key#
#x_label#, #x_legend#", "dot-size":12, "halo-size": 3 }, + 4,4] + } + ], + + + "y_axis":{ + "max": 10 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/line-dot.txt b/pacotes/openflashchart/data-files/line-dot.txt new file mode 100644 index 0000000..62b75f3 --- /dev/null +++ b/pacotes/openflashchart/data-files/line-dot.txt @@ -0,0 +1,45 @@ +{ + "y_legend":{ + "text": "Time of day", + "style": "{color: #736AFF;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-style": { + "type":"solid-dot", "colour":"#a44a80", "dot-size": 6, + "tip":"#val#
#x_label#" }, + "values" : [ + 1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47, + 2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88, + 0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03, + {"value":1.22, "colour":"#FF0000"}, + 1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49, + 2.48,2.44,2.35,2.23,2.08] + } + ], + + "x_axis":{ + "labe--ls": { + "rotate": "vertical", + "labels":["2:00am % £","2:10","2:20","2:30","2:40","2:50", + "3:00am","3:10","3:20","3:30","3:40","3:50", + "4:00am","4:10","4:20","4:30","4:40","4:50", + "5:00am","5:10","5:20","5:30","5:40","5:50", + "6:00am","6:10","6:20","6:30","6:40","6:50", + "7:00am","7:10","7:20","7:30","7:40","7:50", + "8:00am","8:10","8:20","8:30","8:40","8:50", + "9:00am","9:10","9:20"] + } + }, + + "y_axis":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/line-hollow.txt b/pacotes/openflashchart/data-files/line-hollow.txt new file mode 100644 index 0000000..58ed673 --- /dev/null +++ b/pacotes/openflashchart/data-files/line-hollow.txt @@ -0,0 +1,48 @@ +{ + "y_legend":{ + "text": "Time of day", + "style": "{color: #736AFF;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-style": { "ty--pe":"anchor", "sides":3, "alpha":1, "hollow":true, "background-colour":"#a44a80", + "background-alpha": 0.4, "width":1, "tip":"type = anchor\nsides = 3\nhollow" }, + "values" : [ + 1.5,1.69,1.88,2.06,2.21,2.34,2.43, + 2.48,2.49,2.47,2.40,2.30,2.17,2.01, + 1.83,1.64,1.44,1.24,1.05, + {"value" :0.88, "type":"anchor"}, + {"value" :0.74, "type":"anchor", "colour":"#00FF00", "sides":4, "rotation":45}, + 0.62,0.54,0.50,0.50,0.54,0.61,0.72, + 0.86,1.03,1.22,1.41,1.61,1.81,1.99, + 2.15,2.29,2.39,2.46,2.49, + {"value" :2.48, "type":"star", "colour":"#FF0000", "hollow":true}, + {"value" :2.44, "type":"star", "colour":"#FF0000", "dot-size":10}, + {"value" :2.35, "type":"dot", "colour":"#FF0000"}, + {"value" :2.23, "type":"solid-dot", "colour":"#00FF00"}, + {"value" :2.08, "type":"hollow-dot", "colour":"#FF00FF"}] + } + ], + + "x_axis":{ + "labels--":["2:00am","2:10","2:20","2:30","2:40","2:50", + "3:00am","3:10","3:20","3:30","3:40","3:50", + "4:00am","4:10","4:20","4:30","4:40","4:50", + "5:00am","5:10","5:20","5:30","5:40","5:50", + "6:00am","6:10","6:20","6:30","6:40","6:50", + "7:00am","7:10","7:20","7:30","7:40","7:50", + "8:00am","8:10","8:20","8:30","8:40","8:50", + "9:00am","9:10","9:20"] + }, + + "y_axis":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/line-null-bug.txt b/pacotes/openflashchart/data-files/line-null-bug.txt new file mode 100644 index 0000000..22896f0 --- /dev/null +++ b/pacotes/openflashchart/data-files/line-null-bug.txt @@ -0,0 +1,47 @@ + { + "elements": [ + { + "type": "line", + "values": [ + { + "value": 3 + }, + { + "value": null + }, + { + "value": 3 + } + ], + "dot-style": { + "type": "hollow-dot", + "colour": "#ff0000", + "dot-size": 4, + "halo-size": 1 + } + }, + + { + "type": "line", + "values": [2,null,2], + "dot-style": { + "type": "hollow-dot", + "colour": "#ff0000", + "dot-size": 4, + "halo-size": 1 + } + }, + + { + "type": "line", + "values": [ + {"value": 4},null,4], + "dot-style": { + "type": "hollow-dot", + "colour": "#ff0000", + "dot-size": 4, + "halo-size": 1 + } + } + ] + } diff --git a/pacotes/openflashchart/data-files/line-on-click.txt b/pacotes/openflashchart/data-files/line-on-click.txt new file mode 100644 index 0000000..e9dac71 --- /dev/null +++ b/pacotes/openflashchart/data-files/line-on-click.txt @@ -0,0 +1,17 @@ +{ + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-style": { + "on-click": "trace:http://eden"}, + "values" : [ + 1.5,1.69,1.88,2.06,2.21,2.34, + {"value":2.44,"colour":"#FF0000","tip":"monkies","on-click":"trace:anchor_test"}, + 2.35,2.23,2.08] + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/line-on-show.txt b/pacotes/openflashchart/data-files/line-on-show.txt new file mode 100644 index 0000000..d66c3fd --- /dev/null +++ b/pacotes/openflashchart/data-files/line-on-show.txt @@ -0,0 +1,48 @@ +{ + "y_legend":{ + "text": "Time of day", + "style": "{color: #736AFF;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 1, + "dot-style": { + "type":"solid-dot", "colour":"#a44a80", "dot-size": 3, + "tip":"#val#
#x_label#" }, + "on-show": {"type": "shrink-in", "cascade":1, "delay":0.5}, + "values" : [ + 1.5,1.69,1.88,2.06,2.21,2.34,2.43, + 2.48,2.49,2.47,2.40,2.30,2.17,2.01, + 1.83,1.64,1.44,1.24,1.05,0.88,0.74, + 0.62,0.54,0.50,0.50,0.54,0.61,0.72, + 0.86,1.03,1.22,1.41,1.61,1.81,1.99, + 2.15,2.29,2.39,2.46,2.49,2.48, + {"value":2.44,"colour":"#FF0000","tip":"monkies"}, + 2.35,2.23,2.08] + } + ], + + "x_axis":{ + "labels": { + "rotate": "vertical", + "labels":["2:00am % £","2:10","2:20","2:30","2:40","2:50", + "3:00am","3:10","3:20","3:30","3:40","3:50", + "4:00am","4:10","4:20","4:30","4:40","4:50", + "5:00am","5:10","5:20","5:30","5:40","5:50", + "6:00am","6:10","6:20","6:30","6:40","6:50", + "7:00am","7:10","7:20","7:30","7:40","7:50", + "8:00am","8:10","8:20","8:30","8:40","8:50", + "9:00am","9:10","9:20"] + } + }, + + "y_axis":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/line-star.txt b/pacotes/openflashchart/data-files/line-star.txt new file mode 100644 index 0000000..583fd78 --- /dev/null +++ b/pacotes/openflashchart/data-files/line-star.txt @@ -0,0 +1,21 @@ +{ + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 1, + "dot-style": { + "type":"star", "dot-size": 6, "tip":"#val#
#x_label#" }, + + "values" : [3,0,-3] + } + ], + + "y_axis":{ + "min": -5, + "max": 5 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/line.txt b/pacotes/openflashchart/data-files/line.txt new file mode 100644 index 0000000..b094746 --- /dev/null +++ b/pacotes/openflashchart/data-files/line.txt @@ -0,0 +1,44 @@ +{ + "y_legend":{ + "text": "Time of day", + "style": "{color: #736AFF;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "values" : [ + 1.5,1.69,1.88,2.06,2.21,2.34,2.43, + 2.48,2.49,2.47,2.40,2.30,2.17,2.01, + 1.83,1.64,1.44,1.24,1.05,0.88,0.74, + 0.62,0.54,0.50,0.50,0.54,0.61,0.72, + 0.86,1.03,1.22,1.41,1.61,1.81,1.99, + 2.15,2.29,2.39,2.46,2.49,2.48, + {"value":2.44,"colour":"#FF0000","tip":"monkies"}, + 2.35,2.23,2.08] + } + ], + + "x_axis":{ + "labels": { + "rotate": "vertical", + "labels":["2:00am % £","2:10","2:20","2:30","2:40","2:50", + "3:00am","3:10","3:20","3:30","3:40","3:50", + "4:00am","4:10","4:20","4:30","4:40","4:50", + "5:00am","5:10","5:20","5:30","5:40","5:50", + "6:00am","6:10","6:20","6:30","6:40","6:50", + "7:00am","7:10","7:20","7:30","7:40","7:50", + "8:00am","8:10","8:20","8:30","8:40","8:50", + "9:00am","9:10","9:20"] + } + }, + + "y_axis__":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/logo.png b/pacotes/openflashchart/data-files/logo.png new file mode 100644 index 0000000..3a203cf Binary files /dev/null and b/pacotes/openflashchart/data-files/logo.png differ diff --git a/pacotes/openflashchart/data-files/menu.txt b/pacotes/openflashchart/data-files/menu.txt new file mode 100644 index 0000000..3237fe6 --- /dev/null +++ b/pacotes/openflashchart/data-files/menu.txt @@ -0,0 +1,50 @@ +{ + "y_legend":{ + "text": "Time of day", + "style": "{color: #736AFF;}" + }, + + "menu":{ + "colour": "#E0E0ff", + "outline-colour": "#707070", + "values" : [ + { + "type": "camera-icon", + "text": "Save as image" + }, + { + "type": "text", + "text": "Save as image 2" + }, + { + "type": "camera-icon", + "text": "3!!", + "javascript-function": "my_function" + } + ] + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "values" : [ + 1.5,1.69,1.88,2.06,2.21,2.34,2.43, + 2.48,2.49,2.47,2.40,2.30,2.17,2.01, + 1.83,1.64,1.44,1.24,1.05,0.88,0.74, + 0.62,0.54,0.50,0.50,0.54,0.61,0.72, + 0.86,1.03,1.22,1.41,1.61,1.81,1.99, + 2.15,2.29,2.39,2.46,2.49,2.48, + {"value":2.44,"colour":"#FF0000","tip":"monkies"}, + 2.35,2.23,2.08] + } + ], + + "y_axis":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/on-show-area-drop.txt b/pacotes/openflashchart/data-files/on-show-area-drop.txt new file mode 100644 index 0000000..080fe9c --- /dev/null +++ b/pacotes/openflashchart/data-files/on-show-area-drop.txt @@ -0,0 +1,33 @@ +{ + "title":{ + "text":"Volume Consumed", + "style":"font-size: 14px; font-family: Verdana; text-align: center;"}, + "x_axis":{ + "offset": false, + "labels":{ + "steps":3, + "labels":[ + "0","1","2","3","4","5", + "6","7","8","9","10","11", + "12","13","14","15","16", + "17","18","19","20","21", + "22","23","24","25","26", + "27","28","29","30","31"] + } + }, + "bg_colour":"#ffffff", + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "line-style": {"style":"dash","on":4,"off":4}, + "dot-style": {"type":"hollow-dot", "width":1, "size":2}, + "values":[ + 4,4.37,4.73,5.07,5.36,5.59,5.77,5.87,5.89,5.85,5.72,5.53,5.28,4.97,4.63,4.26, + 3.88,3.51,3.15,2.83,2.56,2.34,2.19,2.11,2.10,2.17,2.32,2.53,2.80,3.11,3.46,3.84], + "fill-alpha":0.5, + "width": 1, + "on-show": {"type": "drop", "cascade":0.6, "delay":0.5} + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/on-show-area-explode.txt b/pacotes/openflashchart/data-files/on-show-area-explode.txt new file mode 100644 index 0000000..839cd7f --- /dev/null +++ b/pacotes/openflashchart/data-files/on-show-area-explode.txt @@ -0,0 +1,33 @@ +{ + "title":{ + "text":"Volume Consumed", + "style":"font-size: 14px; font-family: Verdana; text-align: center;"}, + "x_axis":{ + "offset": false, + "labels":{ + "steps":3, + "labels":[ + "0","1","2","3","4","5", + "6","7","8","9","10","11", + "12","13","14","15","16", + "17","18","19","20","21", + "22","23","24","25","26", + "27","28","29","30","31"] + } + }, + "bg_colour":"#ffffff", + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "line-style": {"style":"dash","on":4,"off":4}, + "dot-style": {"type":"hollow-dot", "width":1, "size":2}, + "values":[ + 4,4.37,4.73,5.07,5.36,5.59,5.77,5.87,5.89,5.85,5.72,5.53,5.28,4.97,4.63,4.26, + 3.88,3.51,3.15,2.83,2.56,2.34,2.19,2.11,2.10,2.17,2.32,2.53,2.80,3.11,3.46,3.84], + "fill-alpha":0.5, + "width": 1, + "on-show": {"type": "explode", "cascade":0.6, "delay":0.5} + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/on-show-area-fade-in.txt b/pacotes/openflashchart/data-files/on-show-area-fade-in.txt new file mode 100644 index 0000000..42bb5e9 --- /dev/null +++ b/pacotes/openflashchart/data-files/on-show-area-fade-in.txt @@ -0,0 +1,33 @@ +{ + "title":{ + "text":"Volume Consumed", + "style":"font-size: 14px; font-family: Verdana; text-align: center;"}, + "x_axis":{ + "offset": false, + "labels":{ + "steps":3, + "labels":[ + "0","1","2","3","4","5", + "6","7","8","9","10","11", + "12","13","14","15","16", + "17","18","19","20","21", + "22","23","24","25","26", + "27","28","29","30","31"] + } + }, + "bg_colour":"#ffffff", + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "line-style": {"style":"dash","on":4,"off":4}, + "dot-style": {"type":"hollow-dot", "width":1, "size":2}, + "values":[ + 4,4.37,4.73,5.07,5.36,5.59,5.77,5.87,5.89,5.85,5.72,5.53,5.28,4.97,4.63,4.26, + 3.88,3.51,3.15,2.83,2.56,2.34,2.19,2.11,2.10,2.17,2.32,2.53,2.80,3.11,3.46,3.84], + "fill-alpha":0.5, + "width": 1, + "on-show": {"type": "fade-in", "cascade":0.6, "delay":0.5} + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/on-show-area-mid-slide.txt b/pacotes/openflashchart/data-files/on-show-area-mid-slide.txt new file mode 100644 index 0000000..34a13c5 --- /dev/null +++ b/pacotes/openflashchart/data-files/on-show-area-mid-slide.txt @@ -0,0 +1,33 @@ +{ + "title":{ + "text":"Volume Consumed", + "style":"font-size: 14px; font-family: Verdana; text-align: center;"}, + "x_axis":{ + "offset": false, + "labels":{ + "steps":3, + "labels":[ + "0","1","2","3","4","5", + "6","7","8","9","10","11", + "12","13","14","15","16", + "17","18","19","20","21", + "22","23","24","25","26", + "27","28","29","30","31"] + } + }, + "bg_colour":"#ffffff", + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "line-style": {"style":"dash","on":4,"off":4}, + "dot-style": {"type":"hollow-dot", "width":1, "dot-size":2}, + "values":[ + 4,4.37,4.73,5.07,5.36,5.59,5.77,5.87,5.89,5.85,5.72,5.53,5.28,4.97,4.63,4.26, + 3.88,3.51,3.15,2.83,2.56,2.34,2.19,2.11,2.10,2.17,2.32,2.53,2.80,3.11,3.46,3.84], + "fill-alpha":0.5, + "width": 1, + "on-show": {"type": "mid-slide", "cascade":0.6, "delay":0.5} + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/on-show-area-pop-up.txt b/pacotes/openflashchart/data-files/on-show-area-pop-up.txt new file mode 100644 index 0000000..07d57be --- /dev/null +++ b/pacotes/openflashchart/data-files/on-show-area-pop-up.txt @@ -0,0 +1,33 @@ +{ + "title":{ + "text":"Volume Consumed", + "style":"font-size: 14px; font-family: Verdana; text-align: center;"}, + "x_axis":{ + "offset": false, + "labels":{ + "steps":3, + "labels":[ + "0","1","2","3","4","5", + "6","7","8","9","10","11", + "12","13","14","15","16", + "17","18","19","20","21", + "22","23","24","25","26", + "27","28","29","30","31"] + } + }, + "bg_colour":"#ffffff", + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "line-style": {"style":"dash","on":4,"off":4}, + "dot-style": {"type":"hollow-dot", "width":1, "size":2}, + "values":[ + 4,4.37,4.73,5.07,5.36,5.59,5.77,5.87,5.89,5.85,5.72,5.53,5.28,4.97,4.63,4.26, + 3.88,3.51,3.15,2.83,2.56,2.34,2.19,2.11,2.10,2.17,2.32,2.53,2.80,3.11,3.46,3.84], + "fill-alpha":0.5, + "width": 1, + "on-show": {"type": "pop-up", "cascade":0.6, "delay":0.5} + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/on-show-area-shrink-in.txt b/pacotes/openflashchart/data-files/on-show-area-shrink-in.txt new file mode 100644 index 0000000..8bf3fde --- /dev/null +++ b/pacotes/openflashchart/data-files/on-show-area-shrink-in.txt @@ -0,0 +1,33 @@ +{ + "title":{ + "text":"Volume Consumed", + "style":"font-size: 14px; font-family: Verdana; text-align: center;"}, + "x_axis":{ + "offset": false, + "labels":{ + "steps":3, + "labels":[ + "0","1","2","3","4","5", + "6","7","8","9","10","11", + "12","13","14","15","16", + "17","18","19","20","21", + "22","23","24","25","26", + "27","28","29","30","31"] + } + }, + "bg_colour":"#ffffff", + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "line-style": {"style":"dash","on":4,"off":4}, + "dot-style": {"type":"hollow-dot", "width":1, "size":2}, + "values":[ + 4,4.37,4.73,5.07,5.36,5.59,5.77,5.87,5.89,5.85,5.72,5.53,5.28,4.97,4.63,4.26, + 3.88,3.51,3.15,2.83,2.56,2.34,2.19,2.11,2.10,2.17,2.32,2.53,2.80,3.11,3.46,3.84], + "fill-alpha":0.5, + "width": 1, + "on-show": {"type": "shrink-in", "cascade":1.6, "delay":0.2} + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/on-show-line.txt b/pacotes/openflashchart/data-files/on-show-line.txt new file mode 100644 index 0000000..d68b3e5 --- /dev/null +++ b/pacotes/openflashchart/data-files/on-show-line.txt @@ -0,0 +1,48 @@ +{ + "y_legend":{ + "text": "Time of day", + "style": "{color: #736AFF;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 1, + "dot-style": { + "type":"solid-dot", "colour":"#a44a80", "dot-size": 3, + "tip":"#val#
#x_label#" }, + "on-show": {"type": "pop-up", "cascade":1, "delay":0.5}, + "values" : [ + 1.5,1.69,1.88,2.06,2.21,2.34,2.43, + 2.48,2.49,2.47,2.40,2.30,2.17,2.01, + 1.83,1.64,1.44,1.24,1.05,0.88,0.74, + 0.62,0.54,0.50,0.50,0.54,0.61,0.72, + 0.86,1.03,1.22,1.41,1.61,1.81,1.99, + 2.15,2.29,2.39,2.46,2.49,2.48, + {"value":2.44,"colour":"#FF0000","tip":"monkies"}, + 2.35,2.23,2.08] + } + ], + + "x_axis":{ + "labels": { + "rotate": "vertical", + "labels":["2:00am % £","2:10","2:20","2:30","2:40","2:50", + "3:00am","3:10","3:20","3:30","3:40","3:50", + "4:00am","4:10","4:20","4:30","4:40","4:50", + "5:00am","5:10","5:20","5:30","5:40","5:50", + "6:00am","6:10","6:20","6:30","6:40","6:50", + "7:00am","7:10","7:20","7:30","7:40","7:50", + "8:00am","8:10","8:20","8:30","8:40","8:50", + "9:00am","9:10","9:20"] + } + }, + + "y_axis":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/on-show-scatter-explode.txt b/pacotes/openflashchart/data-files/on-show-scatter-explode.txt new file mode 100644 index 0000000..a6c0195 --- /dev/null +++ b/pacotes/openflashchart/data-files/on-show-scatter-explode.txt @@ -0,0 +1,66 @@ +{ + + "elements":[ + { + "type": "scatter", + "colour": "#FFB900", + "text": "Avg", + "font-size": 10, + "dot-style": {"type":"solid-dot"}, + "on-show": {"type": "explode", "cascade":0.6, "delay":1}, + "values" : [ + {"x":-5, "y":-5 }, + {"x":0, "y":0 }, + {"x":5, "y":5, "dot-size":20}, + {"x":5, "y":-5, "dot-size":5}, + {"x":-5, "y":5, "dot-size":5}, + {"x":0.5, "y":1, "dot-size":15, "tip": "moooo"} + ] + }, + { + "type": "scatter", + "colour": "#B900FF", + "text": "No 2", + "font-size": 10, + "dot-style": {"type":"hollow-dot", "width":1, "size":2}, + "on-show": {"type": "explode", "cascade":0.6, "delay":0.5}, + "values" : [ + {"x":-5, "y":-3}, + {"x":0, "y":0.5} + ] + }, + { + "type": "line", + "colour": "#B9FF00", + "text": "Line", + "font-size": 10, + "values" : [3,3,3,3,3] + } + + ], + + "x_axis":{ + "min": -5, + "max": 5, + "labels":["mon","tue","wed","thur","fri","sat","sun"] + }, + + "y_axis":{ + "min": -5, + "max": 5 + }, + + "y_legend":{ + "text": "Time of day", + "style": "{font-size: 20px; color: #736AFF;}" + } +} + + +/* +&bg_colour=#DFFFDF& +&x_label_style=12,#9933CC& +&y_label_style=12,#9933CC& +&tool_tip=x:#x_label#
y:#val#& +*/ + diff --git a/pacotes/openflashchart/data-files/pie-1.txt b/pacotes/openflashchart/data-files/pie-1.txt new file mode 100644 index 0000000..9c51aa3 --- /dev/null +++ b/pacotes/openflashchart/data-files/pie-1.txt @@ -0,0 +1,23 @@ +{ + + "title":{ + "text":"Pie for you sir?", + "style":"{font-size: 30px;}" + }, + + "elements":[ + { + "type": "pie", + "colours": ["#d01f3c","#356aa0","#C79810"], + "alpha": 0.6, + "border": 2, + "start-angle": 35, + "values" : [ + 2, + 3, + {"value":6.5,"label":"hello (#val#)", "tip":"99 bottles of beer","on-click":"http://eden"}, + {"value":6.5,"on-click":"my_function"} + ] + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/pie-2.txt b/pacotes/openflashchart/data-files/pie-2.txt new file mode 100644 index 0000000..bdb462a --- /dev/null +++ b/pacotes/openflashchart/data-files/pie-2.txt @@ -0,0 +1,18 @@ +{ + + "elements":[ + { + "type": "pie", + "colours": ["#d01f3c","#356aa0","#C79810"], + "alpha": 0.2, + "border": 2, + "animate": [ { "type": "fade" }], + "start-angle": 45, + "tip": "#val#
#total#
#percent#
#label#", + "gradient-fill" : true, + "label-colour": "#0000d0", + "values" : + [10,10,{"value":100,"label":"hello (#val#)","font-size":20,"colour":"#00FF00","label-colour":"#00FFFF"},10] + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/pie-3.txt b/pacotes/openflashchart/data-files/pie-3.txt new file mode 100644 index 0000000..967e261 --- /dev/null +++ b/pacotes/openflashchart/data-files/pie-3.txt @@ -0,0 +1,18 @@ +{ + "bg_colour": "#ffffff", + "elements":[ + { + "type": "pie", + "tip": "#label#
$#val# (#percent#)", + "colours": ["#00ff00","#ff0000","#0000ff"], + "alpha": 0.3, + "animate": [ { "type": "fade" }], + "start-angle": 90, + "gradient-fill": true, + "no-labe-ls": true, + "values": [ + {"value":13400,"label":"Income"},{"value":9344,"label":"Expense"},{"value":4066,"label":"Profit"} + ] + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/pie-4.txt b/pacotes/openflashchart/data-files/pie-4.txt new file mode 100644 index 0000000..cda2bb5 --- /dev/null +++ b/pacotes/openflashchart/data-files/pie-4.txt @@ -0,0 +1,31 @@ +{ + "elements" : [ + { + "tip" : "#val# of #total# messages
#percent#", + "colours" : [ + "#000000", + "#4693B8" + ], + "alpha" : "0.8", + "start_angle" : 135, + "animate" : false, + "values" : [ + { + "value" : 135, + "label" : "spam deliveries" + }, + { + "value" : 103, + "label" : "normal deliveries" + } + ], + "type" : "pie", + "border" : "2" + } + ], + "bg_colour" : "#FAFAFA", + "title" : { + "text" : "mail distribution for b@b.com", + "style" : "{font-size: 14px; color:#0000ff; font-family: Verdana; text-align: center;}" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/pie-bug-green.txt b/pacotes/openflashchart/data-files/pie-bug-green.txt new file mode 100644 index 0000000..58f62bc --- /dev/null +++ b/pacotes/openflashchart/data-files/pie-bug-green.txt @@ -0,0 +1,74 @@ +{ + "bg_colour": "#ffffff", + "elements": [ + { + "alpha": 0.5, + "animate":[{"type":"bounce","distance":5},{"type":"fade"}], + "border": 2, + "colours": [ + "#0247fe", + "#3d01a4", + "#8601af", + "#a7194b", + "#fe2712", + "#fd5308", + "#fb9902", + "#fabc02", + "#fefe33", + "#d0ea2b", + "#66b032", + "#0392ce" + ], + "label-colour": "#432baf", + "start-angle": 0, + "tip": "#val# of #total#
#percent# of 100%", + "type": "pie", + "values": [ + { + "label": "New Zealand", + "value": 52236 + }, + { + "label": "Vodafone Mobile", + "value": 9560 + }, + { + "label": "Airedale Street", + "value": 6367 + }, + { + "label": "Ellerslie", + "value": 5870 + }, + { + "label": "Auckland LICA", + "value": 2627 + }, + { + "label": "Manukau City", + "value": 2360 + }, + { + "label": "Telecom Mobile", + "value": 2068 + }, + { + "label": "Remuera", + "value": 1747 + }, + { + "label": "Henderson", + "value": 1231 + }, + { + "label": "East Tamaki / Otara", + "value": 1187 + } + ] + } + ], + "title": { + "style": "{color: #888888; font-size: 16; text-align: center}", + "text": "Top 10 Caller Locations by OGA" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/pie-colours.txt b/pacotes/openflashchart/data-files/pie-colours.txt new file mode 100644 index 0000000..05c93c4 --- /dev/null +++ b/pacotes/openflashchart/data-files/pie-colours.txt @@ -0,0 +1,25 @@ +{ + + "title":{ + "text":"Pie for you sir?", + "style":"{font-size: 30px;}" + }, + "bg_colour": "#000000", + + "elements":[ + { + "type": "pie", + "colours": ["#d01f3c","#356aa0","#C79810"], + "alpha": 0.6, + "border": 2, + "ani-mate": 0, + "start-angle": 35, + "values" : [ + 2, + 3, + {"value":65,"label":"hello (#val#)", "tip":"99 bottles of beer","on-click":"http://eden"}, + {"value":65,"on-click":"my_function"} + ] + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/pie-fixed-radius.txt b/pacotes/openflashchart/data-files/pie-fixed-radius.txt new file mode 100644 index 0000000..47e5c05 --- /dev/null +++ b/pacotes/openflashchart/data-files/pie-fixed-radius.txt @@ -0,0 +1,24 @@ +{ + + "title":{ + "text":"Pie for you sir?", + "style":"{font-size: 30px;}" + }, + "bg_colour": "#000000", + + "elements":[ + { + "type": "pie", + "colours": ["#d01f3c","#356aa0","#C79810"], + "alpha": 0.6, + "start-angle": 35, + "radius": 55, + "values" : [ + 2, + 3, + {"value":65,"label":"hello (#val#)", "tip":"99 bottles of beer","on-click":"http://eden"}, + {"value":65,"on-click":"my_function"} + ] + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/pie-label-colours.txt b/pacotes/openflashchart/data-files/pie-label-colours.txt new file mode 100644 index 0000000..e7aae8b --- /dev/null +++ b/pacotes/openflashchart/data-files/pie-label-colours.txt @@ -0,0 +1,214 @@ +{ + "elements" : [ + { + "tip" : "#val# of #total#
#percent#\npie radius = #radius#", + + "colours" : [ + "0x336699", "0x88AACC", "0x999933", "0x666699", + "0xCC9933", "0x006666", "0x3399FF", "0x993300", + "0xAAAA77", "0x666666", "0xFFCC66", "0x6699CC", + "0x663366", "0x9999CC", "0xAAAAAA", "0x669999", + "0xBBBB55", "0xCC6600", "0x9999FF", "0x0066CC", + "0x99CCCC", "0x999999", "0xFFCC00", "0x009999", + "0x99CC33", "0xFF9900", "0x999966", "0x66CCCC", + "0x339966", "0xCCCC33" ], + + "alpha" : 0.2, + "start_angle" : 135, + "radius":200, + "no-labels":false, + "ani--mate" : true, + //"label-colour":0, // leave out or set to null for auto-colour labels + "values" : [ + { + "value" : 135, + "label" : "Label Num 1 - click to google", + "label-colour":"0xFF0000", // Override the label colour + "on-click":"http://www.google.com", + "animate":[{"type":"bounce","distance":5}] + }, + { + "value" : 135, + "label" : "Label Num 2", + "animate":[{"type":"bounce","distance":5}] + }, + { + "value" : 135, + "label" : "Label Num 3", + "animate":[{"type":"bounce","distance":5},{"type":"fade"}] + }, + { + "value" : 135, + "label" : "" // Do not display a label for this slice + }, + { + "value" : 135, + "label" : "" + }, + { + "value" : 135, + "label" : "Label Num 6" + }, + { + "value" : 135, + "label" : "Label Num 7" + }, + { + "value" : 4, + "label" : "small slice 8" + }, + { + "value" : 4, + "label" : "small slice 9" + }, + { + "value" : 4, + "label" : "small slice 10" + }, + { + "value" : 4, + "label" : "small slice 11" + }, + { + "value" : 4, + "label" : "small slice 12" + }, + { + "value" : 135, + "label" : "Label Num 13" + }, + { + "value" : 135, + "label" : "Label Num 14" + }, + { + "value" : 135, + "label" : "Label Num 15" + }, + { + "value" : 135, + "label" : "Label Num 16" + }, + { + "value" : 135, + "label" : "Label Num 17" + }, + { + "value" : 135, + "label" : "Label Num 18" + }, + { + "value" : 135, + "label" : "Label Num 19" + }, + { + "value" : 135, + "label" : "Label Num 20" + }, + { + "value" : 135, + "label" : "Label Num 21" + }, + { + "value" : 135, + "label" : "Label Num 22" + }, + { + "value" : 135, + "label" : "Label Num 23" + }, + { + "value" : 135, + "label" : "Label Num 24" + }, + { + "value" : 135, + "label" : "Label Num 25" + }, + { + "value" : 135, + "label" : "Label Num 26" + }, + { + "value" : 135, + "label" : "Label Num 27" + }, + { + "value" : 135, + "label" : "Label Num 28" + }, + { + "value" : 135, + "label" : "Label Num 29" + }, + { + "value" : 135, + "label" : "Label Num 30" + }, + { + "value" : 135, + "label" : "Label Num 31" + }, + { + "value" : 0, + "label" : "zero slice 32" + }, + { + "value" : 0, + "label" : "zero slice 33" + }, + { + "value" : 0, + "label" : "zero slice 34" + }, + { + "value" : 135, + "label" : "Label Num 35" + }, + { + "value" : 135, + "label" : "Label Num 36" + }, + { + "value" : 135, + "label" : "Label Num 37" + }, + { + "value" : 135, + "label" : "Label Num 38" + }, + { + "value" : 135, + "label" : "" + }, + { + "value" : 135, + "label" : "Label Num 40" + }, + { + "value" : 135, + "label" : "" + }, + { + "value" : 135, + "label" : "Label Num 42" + }, + { + "value" : 135, + "label" : "Label Num 43" + }, + { + "value" : 103, + "label" : "Label Num 44" + } + ], + "type" : "pie", + "border" : "2" + } + ], + "bg_colour" : "#FAFAFA", + "title" : { + "text" : "Auto-size Pie and Label Adjustment", + "style" : "{font-size: 14px; color:#0000ff; font-family: Verdana; text-align: center;}" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/pie-many-slices-fixed.txt b/pacotes/openflashchart/data-files/pie-many-slices-fixed.txt new file mode 100644 index 0000000..3bfc13a --- /dev/null +++ b/pacotes/openflashchart/data-files/pie-many-slices-fixed.txt @@ -0,0 +1,201 @@ +{ + "elements" : [ + { + "tip" : "#val# of #total# messages
#percent#\npie radius = #radius#", + "colours" : [ + "#000000", + "#4693B8" + ], + "alpha" : "0.8", + "start_angle" : 135, + "radius":200, + "no-labels":false, + "animate" : false, + "values" : [ + { + "value" : 135, + "label" : "Label Num 1" + }, + { + "value" : 135, + "label" : "Label Num 2" + }, + { + "value" : 135, + "label" : "Label Num 3" + }, + { + "value" : 135, + "label" : "" + }, + { + "value" : 135, + "label" : "" + }, + { + "value" : 135, + "label" : "Label Num 6" + }, + { + "value" : 135, + "label" : "Label Num 7" + }, + { + "value" : 4, + "label" : "small slice 1" + }, + { + "value" : 4, + "label" : "small slice 2" + }, + { + "value" : 4, + "label" : "small slice 3" + }, + { + "value" : 4, + "label" : "small slice4 " + }, + { + "value" : 4, + "label" : "small slice 5" + }, + { + "value" : 135, + "label" : "Label Num 8" + }, + { + "value" : 135, + "label" : "Label Num 9" + }, + { + "value" : 135, + "label" : "Label Num 10" + }, + { + "value" : 135, + "label" : "Label Num 11" + }, + { + "value" : 135, + "label" : "Label Num 12" + }, + { + "value" : 135, + "label" : "Label Num 13" + }, + { + "value" : 135, + "label" : "Label Num 14" + }, + { + "value" : 135, + "label" : "Label Num 15" + }, + { + "value" : 135, + "label" : "Label Num 16" + }, + { + "value" : 135, + "label" : "Label Num 17" + }, + { + "value" : 135, + "label" : "Label Num 18" + }, + { + "value" : 135, + "label" : "Label Num 19" + }, + { + "value" : 135, + "label" : "Label Num 20" + }, + { + "value" : 135, + "label" : "Label Num 21" + }, + { + "value" : 135, + "label" : "Label Num 22" + }, + { + "value" : 135, + "label" : "Label Num 23" + }, + { + "value" : 135, + "label" : "Label Num 24" + }, + { + "value" : 135, + "label" : "Label Num 25" + }, + { + "value" : 135, + "label" : "Label Num 26" + }, + { + "value" : 135, + "label" : "Label Num 27" + }, + { + "value" : 135, + "label" : "Label Num 28" + }, + { + "value" : 135, + "label" : "Label Num 29" + }, + { + "value" : 135, + "label" : "Label Num 30" + }, + { + "value" : 135, + "label" : "Label Num 31" + }, + { + "value" : 135, + "label" : "Label Num 32" + }, + { + "value" : 135, + "label" : "Label Num 33" + }, + { + "value" : 135, + "label" : "" + }, + { + "value" : 135, + "label" : "Label Num 35" + }, + { + "value" : 135, + "label" : "" + }, + { + "value" : 135, + "label" : "Label Num 36" + }, + { + "value" : 135, + "label" : "Label Num 37" + }, + { + "value" : 103, + "label" : "Label Num 38" + } + ], + "type" : "pie", + "border" : "2" + } + ], + "bg_colour" : "#FAFAFA", + "title" : { + "text" : "Fixed Radius Pie and Auto Label Adjustment", + "style" : "{font-size: 14px; color:#0000ff; font-family: Verdana; text-align: center;}" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/pie-many-slices.txt b/pacotes/openflashchart/data-files/pie-many-slices.txt new file mode 100644 index 0000000..bacffb2 --- /dev/null +++ b/pacotes/openflashchart/data-files/pie-many-slices.txt @@ -0,0 +1,201 @@ +{ + "elements" : [ + { + "tip" : "#val# of #total# messages
#percent#\npie radius = #radius#", + "colours" : [ + "#000000", + "#4693B8" + ], + "alpha" : "0.8", + "start_angle" : 135, +// "radius":200, + "no-labels":false, + "animate" : false, + "values" : [ + { + "value" : 135, + "label" : "Label Num 1" + }, + { + "value" : 135, + "label" : "Label Num 2" + }, + { + "value" : 135, + "label" : "Label Num 3" + }, + { + "value" : 135, + "label" : "" + }, + { + "value" : 135, + "label" : "" + }, + { + "value" : 135, + "label" : "Label Num 6" + }, + { + "value" : 135, + "label" : "Label Num 7" + }, + { + "value" : 4, + "label" : "small slice 1" + }, + { + "value" : 4, + "label" : "small slice 2" + }, + { + "value" : 4, + "label" : "small slice 3" + }, + { + "value" : 4, + "label" : "small slice4 " + }, + { + "value" : 4, + "label" : "small slice 5" + }, + { + "value" : 135, + "label" : "Label Num 8" + }, + { + "value" : 135, + "label" : "Label Num 9" + }, + { + "value" : 135, + "label" : "Label Num 10" + }, + { + "value" : 135, + "label" : "Label Num 11" + }, + { + "value" : 135, + "label" : "Label Num 12" + }, + { + "value" : 135, + "label" : "Label Num 13" + }, + { + "value" : 135, + "label" : "Label Num 14" + }, + { + "value" : 135, + "label" : "Label Num 15" + }, + { + "value" : 135, + "label" : "Label Num 16" + }, + { + "value" : 135, + "label" : "Label Num 17" + }, + { + "value" : 135, + "label" : "Label Num 18" + }, + { + "value" : 135, + "label" : "Label Num 19" + }, + { + "value" : 135, + "label" : "Label Num 20" + }, + { + "value" : 135, + "label" : "Label Num 21" + }, + { + "value" : 135, + "label" : "Label Num 22" + }, + { + "value" : 135, + "label" : "Label Num 23" + }, + { + "value" : 135, + "label" : "Label Num 24" + }, + { + "value" : 135, + "label" : "Label Num 25" + }, + { + "value" : 135, + "label" : "Label Num 26" + }, + { + "value" : 135, + "label" : "Label Num 27" + }, + { + "value" : 135, + "label" : "Label Num 28" + }, + { + "value" : 135, + "label" : "Label Num 29" + }, + { + "value" : 135, + "label" : "Label Num 30" + }, + { + "value" : 135, + "label" : "Label Num 31" + }, + { + "value" : 135, + "label" : "Label Num 32" + }, + { + "value" : 135, + "label" : "Label Num 33" + }, + { + "value" : 135, + "label" : "" + }, + { + "value" : 135, + "label" : "Label Num 35" + }, + { + "value" : 135, + "label" : "" + }, + { + "value" : 135, + "label" : "Label Num 36" + }, + { + "value" : 135, + "label" : "Label Num 37" + }, + { + "value" : 103, + "label" : "Label Num 38" + } + ], + "type" : "pie", + "border" : "2" + } + ], + "bg_colour" : "#FAFAFA", + "title" : { + "text" : "Auto-size Pie and Label Adjustment", + "style" : "{font-size: 14px; color:#0000ff; font-family: Verdana; text-align: center;}" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/radar-2.txt b/pacotes/openflashchart/data-files/radar-2.txt new file mode 100644 index 0000000..1ed8f7c --- /dev/null +++ b/pacotes/openflashchart/data-files/radar-2.txt @@ -0,0 +1,43 @@ +{ + "title":{ + "text":"Pie for you sir?", + "style":"{font-size: 30px;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "loop": true, + "values" : [ + + 4, 5, {"value":6,"colour":"#FF0000","tip":"monkies"}, 7, 8, 9 + ] + }, + { + "type": "line", + "colour": "#6AFF73", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-style": { + "type":"star", "hollow":true, "background-colour":"#a44a80", + "background-alpha": 0.4, "width":1, "dot-size":10 }, + + "loop": true, + "values" : [ + 15, 14, {"value":13,"colour":"#FF0000","tip":"monkies", "background-alpha": 0.9}, 12, 11, 10 + ] + } + ], + + "radar_axis": { + "max": 20, + "stroke": 5, + "colour": "#167840", + "grid-colour": "#E1AAF5" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/radar-area.txt b/pacotes/openflashchart/data-files/radar-area.txt new file mode 100644 index 0000000..df3eaee --- /dev/null +++ b/pacotes/openflashchart/data-files/radar-area.txt @@ -0,0 +1,50 @@ +{ + "title":{ + "text":"Fruit distribution", + "style":"{font-size: 12px;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#FA3D37", + "fill": "#FA3D37", + "fill-alpha": 0.2, + "text": "Oranges", + "width": 3, + "font-size": 10, + "dot-style": { + "type": "dot", + "tip": "Orange
#val#", + "dot-size": 5}, + + "loop": true, + "values" : [3,3,9,9,9,3,3] + }, + + { + "type": "area", + "colour": "#C9C738", + "fill": "#C9C738", + "fill-alpha": 0.2, + "text": "Limes", + "width": 3, + "font-size": 10, + "dot-style": { + "type": "hollow-dot", + "tip": "Lime
#val#", + "dot-size": 5}, + + "loop": true, + "values" : [9,9,3,3,3,9,9] + } + ], + "radar_axis": { + "max": 11, + "stroke": 2, + "colour": "#A1D4B5", + "grid-colour": "#C0DEBF" + }, + + "bg_colour": "#ffffff" +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/radar-axis-and-grid-style.txt b/pacotes/openflashchart/data-files/radar-axis-and-grid-style.txt new file mode 100644 index 0000000..36189b6 --- /dev/null +++ b/pacotes/openflashchart/data-files/radar-axis-and-grid-style.txt @@ -0,0 +1,40 @@ +{ + "title":{ + "text":"Ahhhh, sweet.", + "style":"{font-size: 13px;}" + }, + + "elements":[ + { + "type": "line_hollow", + "colour": "#D41E47", + "text": "How I love thee", + "font-size": 10, + "width": 2, + "dot-size": 6, + "halo-size": 0, + "loop": true, + "values" : [3,5,6,7,8,9,10,11.5,13,11.5,10,9,8,7,6,5] + } + ], + + + "radar_axis": { + "max": 13, + "stroke": 2, + "colour": "#A1D4B5", + "grid-colour": "#C0DEBF", + + "labels":{ + "colour" :"#ff0000", + "labels": [ + "0","1", + "2", + {"text":"3","colour":"#00D000"}, + "4", + "5 Hello", + "6","7","8","9","10","11","12","13" + ] + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/radar-axis-labels-2.txt b/pacotes/openflashchart/data-files/radar-axis-labels-2.txt new file mode 100644 index 0000000..c7d2a13 --- /dev/null +++ b/pacotes/openflashchart/data-files/radar-axis-labels-2.txt @@ -0,0 +1,58 @@ +{ + "title":{ + "text":"Ahhhh, sweet.", + "style":"{font-size: 13px;}" + }, + + "elements":[ + { + "type": "area_line", + "colour": "#FA3D37", + "fill": "#FA3D37", + "fill-alpha": 0.3, + "text": "Orange", + "width": 1, + "font-size": 10, + "dot-size": 3, + "halo-size": 1, + "tip": "Orange
#val#", + "loop": true, + "values" : [2,2,2,2,2,2,2] + }, + { + "type": "area_line", + "colour": "#3D37FA", + "fill": "#3D37FA", + "fill-alpha": 0.3, + "text": "Blue", + "width": 1, + "font-size": 10, + "dot-size": 3, + "halo-size": 1, + "tip": "Blue
#val#", + "loop": true, + "values" : [{"value":3, "tip":"3 Accuratesse"},3,3,1.5,1,2,3] + } + ], + + + "radar_axis": { + "max": 4, + "stroke": 1, + "colour": "#909090", + "grid-colour": "#C0DEBF", + "steps": 4, + + "labels":{ + "colour" :"#000000", + "labels": [ + "0","1","2","3","4" + ] + }, + + "spoke-labels":{ + "colour": "#000000", + "labels": ["Accuratesse","Analystich
vermogen","Creativiteit","Plannen en
organiseren","Probleemanalyse","Samenwerken in
teamverband","Zelfstandigheid"] + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/radar-axis-labels.txt b/pacotes/openflashchart/data-files/radar-axis-labels.txt new file mode 100644 index 0000000..fcd98aa --- /dev/null +++ b/pacotes/openflashchart/data-files/radar-axis-labels.txt @@ -0,0 +1,43 @@ +{ + "title":{ + "text":"Ahhhh, sweet.", + "style":"{font-size: 13px;}" + }, + + "elements":[ + { + "type": "line_hollow", + "colour": "#D41E47", + "text": "How I love thee", + "font-size": 10, + "width": 2, + "dot-size": 6, + "halo-size": 0, + "loop": true, + "values" : [4,4,4,4,4,3.5] + } + ], + + + "radar_axis": { + "max": 5, + "stroke": 2, + "colour": "#A1D4B5", + "grid-colour": "#C0DEBF", + + "labels":{ + "colour" :"#ff0000", + "labels": [ + "0","1","2", + {"text":"3","colour":"#00D000"}, + "4", + "5 Hello" + ] + }, + + "spoke-labels":{ + "colour": "#000000", + "labels": ["A","bbb","c","d","E","F"] + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/radar-axis-tooltip-closest.txt b/pacotes/openflashchart/data-files/radar-axis-tooltip-closest.txt new file mode 100644 index 0000000..4300fe6 --- /dev/null +++ b/pacotes/openflashchart/data-files/radar-axis-tooltip-closest.txt @@ -0,0 +1,43 @@ +{ + "title":{ + "text":"Ahhhh, sweet.", + "style":"{font-size: 13px;}" + }, + + "elements":[ + { + "type": "line_hollow", + "colour": "#D41E47", + "text": "How I love thee", + "font-size": 10, + "width": 2, + "dot-size": 6, + "halo-size": 0, + "loop": true, + "values" : [4,4,4,4,4,3.5] + } + ], + + + "radar_axis": { + "max": 5, + "stroke": 2, + "colour": "#A1D4B5", + "grid-colour": "#C0DEBF", + + "labels":{ + "colour" :"#ff0000", + "labels": [ + "0","1","2", + {"text":"3","colour":"#00D000"}, + "4", + "5 Hello" + ] + } + }, + + "tooltip":{ + "mouse": 1 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/radar-axis-tooltip-hover.txt b/pacotes/openflashchart/data-files/radar-axis-tooltip-hover.txt new file mode 100644 index 0000000..66fe9d8 --- /dev/null +++ b/pacotes/openflashchart/data-files/radar-axis-tooltip-hover.txt @@ -0,0 +1,43 @@ +{ + "title":{ + "text":"Ahhhh, sweet.", + "style":"{font-size: 13px;}" + }, + + "elements":[ + { + "type": "line_hollow", + "colour": "#D41E47", + "text": "How I love thee", + "font-size": 10, + "width": 2, + "dot-size": 6, + "halo-size": 0, + "loop": true, + "values" : [4,4,4,4,4,3.5] + } + ], + + + "radar_axis": { + "max": 5, + "stroke": 2, + "colour": "#A1D4B5", + "grid-colour": "#C0DEBF", + + "labels":{ + "colour" :"#ff0000", + "labels": [ + "0","1","2", + {"text":"3","colour":"#00D000"}, + "4", + "5 Hello" + ] + } + }, + + "tooltip":{ + "mouse": 2 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/radar-chart-minus-numbers.txt b/pacotes/openflashchart/data-files/radar-chart-minus-numbers.txt new file mode 100644 index 0000000..e108a14 --- /dev/null +++ b/pacotes/openflashchart/data-files/radar-chart-minus-numbers.txt @@ -0,0 +1,78 @@ +{ + "elements": + [ + { + "fill": "#988d5a", + "width": 3, + "dot-size": 0, + "colour": "#988d5a", + "values": + [ + {"value": 10.129090909090907, "tip": "mooo"}, + -32.405162496404941, + "-100", + 0, + -15.443510737628385 + ], + "font-size": 0, + "fillalpha": 0.3, + "type": "area", + "dot-style": + { + "tip": "#val#%", + "dot-size": 0, + "value": 0 + }, + "loop": true + } + ], + "bg_colour": "#ffffff", + "radar_axis": + { + "labels": + { + "labels": + [] + }, + "spoke-labels": + { + "labels": + [ + { + "text": "Football", + "size": 10, + "visible": true + }, + { + "text": "Tennis", + "size": 10, + "visible": true + }, + { + "text": "Rugby", + "size": 10, + "visible": true + }, + { + "text": "F1", + "size": 10, + "visible": true + }, + { + "text": "Basket\u003Cbr>Ball", + "size": 10, + "visible": true + } + ], + "colour": "#1a171b" + }, + "colour": "#e5e5e5", + "grid-colour": "#e5e5e5", + "steps": 25, + "min": -100, + "max": 100, + "3d": 0 + }, + "x_axis": null, + "y_axis": null +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/radar-line-loop.txt b/pacotes/openflashchart/data-files/radar-line-loop.txt new file mode 100644 index 0000000..6758c51 --- /dev/null +++ b/pacotes/openflashchart/data-files/radar-line-loop.txt @@ -0,0 +1,36 @@ +{ + "title":{ + "text":"Pie for you sir?", + "style":"{font-size: 30px;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 0, + "loop": true, + "values" : [ + + 5, 10, {"value":10,"colour":"#FF0000","tip":"monkies"}, 20, 18 + ] + }, + { + "type": "line", + "colour": "#73FF6A", + "width": 1, + "dot-size": 3, + "halo-size": 2, + "loop": false, + "values" : [20,20,20,20,20] + } + ], + + "radar_axis": { + "max": 20 + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/radar-steps.txt b/pacotes/openflashchart/data-files/radar-steps.txt new file mode 100644 index 0000000..46453be --- /dev/null +++ b/pacotes/openflashchart/data-files/radar-steps.txt @@ -0,0 +1,31 @@ +{ + "title":{ + "text":"Fruit distribution", + "style":"{font-size: 12px;}" + }, + + "elements":[ + { + "type": "area_hollow", + "colour": "#FA3D37", + "fill": "#FA3D37", + "fill-alpha": 0.2, + "text": "Oranges", + "width": 3, + "font-size": 10, + "dot-size": 7, + "tip": "Orange
#val#", + "loop": true, + "values" : [35,35,35] + } + ], + "radar_axis": { + "max": 50, + "steps": 10, + "stroke": 2, + "colour": "#A1D4B5", + "grid-colour": "#C0DEBF" + }, + + "bg_colour": "#ffffff" +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/radar-test-keys.txt b/pacotes/openflashchart/data-files/radar-test-keys.txt new file mode 100644 index 0000000..27684c1 --- /dev/null +++ b/pacotes/openflashchart/data-files/radar-test-keys.txt @@ -0,0 +1,44 @@ +{ + "title":{ + "text":"Radar: key 2 disabled", + "style":"{font-size: 20px;}" + }, + + "elements":[ + { + "type": "line_hollow", + "colour": "#736AFF", + "text": "Key 1", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 0, + "loop": true, + "values" : [4,4,4,4,4,4,4] + }, + { + "type": "line_hollow", + "colour": "#0000FF", + "width": 2, + "dot-size": 4, + "halo-size": 0, + "loop": true, + "values" : [8,8,8,8,8,8,8] + }, + { + "type": "line_dot", + "colour": "#6AFF73", + "text": "Key 3", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 0, + "loop": true, + "values" : [14,14,14,14,14,14,14] + } + ], + + "radar_axis": { + "max": 20 + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/scatter-2.txt b/pacotes/openflashchart/data-files/scatter-2.txt new file mode 100644 index 0000000..a6c0195 --- /dev/null +++ b/pacotes/openflashchart/data-files/scatter-2.txt @@ -0,0 +1,66 @@ +{ + + "elements":[ + { + "type": "scatter", + "colour": "#FFB900", + "text": "Avg", + "font-size": 10, + "dot-style": {"type":"solid-dot"}, + "on-show": {"type": "explode", "cascade":0.6, "delay":1}, + "values" : [ + {"x":-5, "y":-5 }, + {"x":0, "y":0 }, + {"x":5, "y":5, "dot-size":20}, + {"x":5, "y":-5, "dot-size":5}, + {"x":-5, "y":5, "dot-size":5}, + {"x":0.5, "y":1, "dot-size":15, "tip": "moooo"} + ] + }, + { + "type": "scatter", + "colour": "#B900FF", + "text": "No 2", + "font-size": 10, + "dot-style": {"type":"hollow-dot", "width":1, "size":2}, + "on-show": {"type": "explode", "cascade":0.6, "delay":0.5}, + "values" : [ + {"x":-5, "y":-3}, + {"x":0, "y":0.5} + ] + }, + { + "type": "line", + "colour": "#B9FF00", + "text": "Line", + "font-size": 10, + "values" : [3,3,3,3,3] + } + + ], + + "x_axis":{ + "min": -5, + "max": 5, + "labels":["mon","tue","wed","thur","fri","sat","sun"] + }, + + "y_axis":{ + "min": -5, + "max": 5 + }, + + "y_legend":{ + "text": "Time of day", + "style": "{font-size: 20px; color: #736AFF;}" + } +} + + +/* +&bg_colour=#DFFFDF& +&x_label_style=12,#9933CC& +&y_label_style=12,#9933CC& +&tool_tip=x:#x_label#
y:#val#& +*/ + diff --git a/pacotes/openflashchart/data-files/scatter-anchors.txt b/pacotes/openflashchart/data-files/scatter-anchors.txt new file mode 100644 index 0000000..f58787b --- /dev/null +++ b/pacotes/openflashchart/data-files/scatter-anchors.txt @@ -0,0 +1,61 @@ +{ + + "title":{ + "text":"Sample Scatter Anchors", + "style":"{font-size: 24px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + "num_decimals":3, + + "elements":[ + { + "type": "scatter", + "colour": "#30BfBc", + "dot-style": { "type":"anchor", "sides":3, "alpha":1, "hollow":true, "background-colour":"#a44a80", + "background-alpha": 0.4, "width":1, "tip":"type = anchor\nsides = 3\nhollow" }, + "animate": 0, + "dot-size": 12, + "width": 3, + "halo-size": 2, + "text": "Sample Scatter Anchors", + "tip": "[#x#,#y#] #size#\nSample Anchors", + "values" : [ + {"x": 1, "y": 8, "type":"point", "tip":"type = point" }, + {"x": 2, "y": 8, "type":"solid-dot", "tip":"type = dot" }, + {"x": 3, "y": 8, "type":"bow", "hollow":false, "rotation":-45, "tip":"type = bow" }, + {"x": 4, "y": 8, "type":"bow", "hollow":true, "background-colour":"#b0101c", + "rotation":45, "tip":"type = bow\nhollow" }, + {"x": 5, "y": 8, "type":"bow", "hollow":true, "background-colour":"#b0101c", + "rotation":90, "tip":"type = bow\nhollow" }, + {"x": 6, "y": 8, "type":"star", "hollow":true, "rotation":0, "tip":"type = star\nhollow" }, + {"x": 7, "y": 8, "type":"star", "hollow":true, "rotation":90, "tip":"type = star\nhollow", "dot-size":12 }, + {"x": 8, "y": 8, "type":"star", "hollow":false, "rotation":180, "tip":"type = star", "dot-size":12 }, + {"x": 9, "y": 8, "type":"dot", "tip":"type = solid dot", "dot-size":12 }, + {"x": 1, "y": 4 }, // triangle from dot-style definition above + {"x": 2, "y": 4, "type":"anchor", "sides":4, "tip":"type = anchor
sides = 4\nhollow" }, + {"x": 3, "y": 4, "type":"anchor", "sides":5, "tip":"type = anchor\nsides = 5\nhollow" }, + {"x": 4, "y": 4, "type":"anchor", "sides":6, "tip":"type = anchor\nsides = 6\nhollow" }, + {"x": 5, "y": 4, "type":"anchor", "sides":7, "tip":"type = anchor\nsides = 7\nhollow" }, + {"x": 6, "y": 4, "type":"anchor", "sides":8, "tip":"type = anchor\nsides = 8\nhollow" }, + {"x": 7, "y": 4, "type":"anchor", "sides":9, "tip":"type = anchor\nsides = 9\nhollow", "hollow":true, "background-colour":"#ffffff" }, + {"x": 8, "y": 4, "type":"anchor", "sides":10, "tip":"type = anchor\nsides = 10\nhollow" } + ] + } + ], + + "x_axis": { + "min": 0, + "max": 10, + "offset": 0, + "steps" : 1, + "3d" : 0, + "labels": { "rotate" : 0, "size": 10 } + }, + + "y_axis": { + "min": 0, + "max": 10, + "stroke": 2, + "steps" : 1, + "offset": 0 + } +} diff --git a/pacotes/openflashchart/data-files/scatter-line-2.txt b/pacotes/openflashchart/data-files/scatter-line-2.txt new file mode 100644 index 0000000..cb3c0fc --- /dev/null +++ b/pacotes/openflashchart/data-files/scatter-line-2.txt @@ -0,0 +1,123 @@ +{ + + "title":{ + "text":"ScatterLine Test Chart", + "style":"{font-size: 24px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; background-color: #356AA0; }" + }, + + "elements":[ + { + "type": "scatter_line", + "colours": ["#d01f3c","#356aa0","#C79810"], + "alpha": 0.6, + "border": 2, + "animate": 0, + "dot-style": {"type":"solid-dot"}, + "values" : [ + // Draw a 60 sided object to approximate a circle + {"x": 0, "y": -80 }, + {"x": 8.362277061412277, "y": -79.56175162946187 }, + {"x": 16.632935265420738, "y": -78.25180805870446 }, + {"x": 24.721359549995796, "y": -76.08452130361228 }, + {"x": 32.538931446064026, "y": -73.08363661140807 }, + {"x": 40.00000000000001, "y": -69.28203230275508 }, + {"x": 47.022820183397855, "y": -64.7213595499958 }, + {"x": 53.53044850870866, "y": -59.45158603819153 }, + {"x": 59.451586038191536, "y": -53.53044850870866 }, + {"x": 64.7213595499958, "y": -47.022820183397855 }, + {"x": 69.2820323027551, "y": -39.99999999999999 }, + {"x": 73.08363661140807, "y": -32.53893144606401 }, + {"x": 76.08452130361228, "y": -24.721359549995793 }, + {"x": 78.25180805870446, "y": -16.632935265420745 }, + {"x": 79.56175162946187, "y": -8.362277061412277 }, + {"x": 80, "y": 0 }, + {"x": 79.56175162946187, "y": 8.362277061412277 }, + {"x": 78.25180805870446, "y": 16.632935265420745 }, + {"x": 76.08452130361228, "y": 24.721359549995793 }, + {"x": 73.08363661140807, "y": 32.53893144606401 }, + {"x": 69.2820323027551, "y": 39.99999999999999 }, + {"x": 64.7213595499958, "y": 47.022820183397855 }, + {"x": 59.451586038191536, "y": 53.53044850870866 }, + {"x": 53.53044850870866, "y": 59.45158603819153 }, + {"x": 47.022820183397855, "y": 64.7213595499958 }, + {"x": 40.00000000000001, "y": 69.28203230275508 }, + {"x": 32.538931446064026, "y": 73.08363661140807 }, + {"x": 24.721359549995796, "y": 76.08452130361228 }, + {"x": 16.632935265420738, "y": 78.25180805870446 }, + {"x": 8.362277061412277, "y": 79.56175162946187 }, + {"x": 0, "y": 80 }, + {"x": -8.362277061412266, "y": 79.56175162946187 }, + {"x": -16.63293526542073, "y": 78.25180805870446 }, + {"x": -24.72135954999579, "y": 76.08452130361229 }, + {"x": -32.538931446064005, "y": 73.08363661140808 }, + {"x": -39.999999999999986, "y": 69.2820323027551 }, + {"x": -47.02282018339784, "y": 64.7213595499958 }, + {"x": -53.53044850870863, "y": 59.45158603819156 }, + {"x": -59.45158603819155, "y": 53.530448508708645 }, + {"x": -64.72135954999578, "y": 47.02282018339786 }, + {"x": -69.2820323027551, "y": 39.99999999999999 }, + {"x": -73.08363661140808, "y": 32.538931446064005 }, + {"x": -76.08452130361228, "y": 24.7213595499958 }, + {"x": -78.25180805870446, "y": 16.632935265420745 }, + {"x": -79.56175162946187, "y": 8.362277061412298 }, + {"x": -80, "y": 0 }, + {"x": -79.56175162946187, "y": -8.36227706141228 }, + {"x": -78.25180805870446, "y": -16.632935265420727 }, + {"x": -76.08452130361228, "y": -24.721359549995817 }, + {"x": -73.08363661140808, "y": -32.538931446063984 }, + {"x": -69.28203230275508, "y": -40.00000000000001 }, + {"x": -64.72135954999581, "y": -47.02282018339784 }, + {"x": -59.451586038191536, "y": -53.53044850870866 }, + {"x": -53.53044850870867, "y": -59.45158603819152 }, + {"x": -47.02282018339786, "y": -64.72135954999578 }, + {"x": -40.000000000000036, "y": -69.28203230275507 }, + {"x": -32.538931446064005, "y": -73.08363661140808 }, + {"x": -24.721359549995803, "y": -76.08452130361228 }, + {"x": -16.632935265420784, "y": -78.25180805870444 }, + {"x": -8.362277061412339, "y": -79.56175162946187 }, + {"x": 0, "y": -80 }, + // Force a break in the lines + {"x": null, "y": null }, + // Draw the star inside the circle + {"x": 0 ,"y": 80 }, + {"x": -47.02282018339786 ,"y": -64.72135954999578 }, + {"x": 76.08452130361229 ,"y": 24.721359549995775 }, + {"x": -76.08452130361228 ,"y": 24.7213595499958 }, + {"x": 47.02282018339783 ,"y": -64.72135954999581 }, + {"x": 0 ,"y": 80 }, + // Force a break in the lines + {"x": null, "y": null }, + // Draw a Triangle inside the star + {"x": 0 ,"y": -10 }, + {"x": -10 ,"y": 10 }, + {"x": 10 ,"y": 10 }, + {"x": 0 ,"y": -10 } + + ], + "bg_colour" : "#DFFFDF" + } + ], + + "x_axis": { + "min": -100, + "max": 100, + "offset": 0, + "steps" : 10, + "3d" : 0, + "rotatation" : 2 + }, + + "x_label_style": { + "rotation" : "2", + "visible" : "false" + }, + + "y_axis": { + "min": -100, + "max": 100, + "stroke": 2, + "steps" : 10, + "ticks" : [25,50,75], + "offset": 0 + } +} diff --git a/pacotes/openflashchart/data-files/scatter-line-area.txt b/pacotes/openflashchart/data-files/scatter-line-area.txt new file mode 100644 index 0000000..73aeea2 --- /dev/null +++ b/pacotes/openflashchart/data-files/scatter-line-area.txt @@ -0,0 +1,128 @@ +{ + + "title":{ + "text":"Scatter Line with Area Fill", + "style":"{font-size: 24px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + "num_decimals":3, + + "elements":[ + { + "type": "scatter_line", + "colour": "#d01f3c", + "alpha": 0.6, + "border": 2, + "animate": 0, + "width": 3, + "line-style": { "style":"dash", "off":2 }, + "text": "Area base is line Y=0", + "tip": "[#x#,#y#] #size#\nArea base is line Y=0", + "line-style": { "style":"solid", "off":2 }, + "area-style": { "colour":"#b0101c", "y":0}, + "values" : [ + {"x": -50, "y": 80 }, + {"x": -20, "y": 20 }, + {"x": 0, "y": -40 }, + {"x": 20, "y": 20 }, + {"x": 50, "y": 80 } + ] + }, + { + "type": "scatter_line", + "colour": "#356aa0", + "animate": 0, + "dot-size": 3, + "text": "Area base is line X=-80", + "tip": "[#x#,#y#] #size#\nArea base is line X=-80", + "line-style": { "style":"solid", "off":2 }, + "area-style": { "colour":"#104a80", "alpha":0.5, "x":-80}, + "values" : [ + {"x": -90, "y": -80 }, + {"x": -85, "y": -20 }, + {"x": -80, "y": 0 }, + {"x": -75, "y": 20 }, + {"x": -70, "y": 80 } + ] + }, + { + "type": "scatter_line", + "colour": "#C79810", + "animate": 0, + "dot-size": 3, + "text": "Area base is point (80,-60)", + "tip": "[#x#,#y#] #size#\nArea base is point (80,-60)", + "line-style": { "style":"solid", "off":2 }, + "area-style": { "colour":"#A7780c", "x":80, "y":-60}, + "values" : [ + {"x": 70, "y": -50 }, + {"x": 75, "y": -45 }, + {"x": 85, "y": -45 }, + {"x": 90, "y": -50 }, + {"x": 90, "y": -70 }, + {"x": 85, "y": -65 }, + {"x": 75, "y": -65 }, + {"x": 70, "y": -70 }, + {"x": 70, "y": -50 } + ] + }, + { + "type": "scatter_line", + "colour": "#1fd03c", + "animate": 0, + "dot-size": 3, + "halo-size": 1, + "text": "Area base is line Y=-90 with gaps", + "tip": "[#x#,#y#] #size#\nArea base is line Y=-90 with gaps", + "line-style": { "style":"solid", "off":2 }, + "area-style": { "colour":"#10b01c", "y":-90}, + "values" : [ + {"x": -60, "y": -80 }, + {"x": -40, "y": -85 }, + {"x": null, "y": null }, // Create a gap in the chart + {"x": -30, "y": -85 }, + {"x": -10, "y": -80 } + ] + }, + { + "type": "scatter_line", + "colour": "#d03c1f", + "animate": 0, + "dot-size": 3, + "halo-size": 1, + "text": "Area base is point (80,50) with gaps", + "tip": "[#x#,#y#] #size#\nArea base is point (80,50) with gaps", + "line-style": { "style":"solid", "off":2 }, + "area-style": { "colour":"#10b01c", "x":80, "y":50}, + "values" : [ + {"x": 70, "y": 80 }, + {"x": 90, "y": 80 }, + {"x": null, "y": null }, // Create a gap in the chart + {"x": 100, "y": 60 }, + {"x": 100, "y": 40 }, + {"x": null, "y": null }, // Create a gap in the chart + {"x": 90, "y": 20 }, + {"x": 70, "y": 20 }, + {"x": null, "y": null }, // Create a gap in the chart + {"x": 60, "y": 40 }, + {"x": 60, "y": 60 } + ] + } + ], + + "x_axis": { + "min": -100, + "max": 100, + "offset": 0, + "steps" : 10, + "3d" : 0, + "labels": { "rotate" : -30, "size": 10 } + }, + + "y_axis": { + "min": -100, + "max": 100, + "stroke": 2, + "steps" : 10, + "offset": 0 + } +} diff --git a/pacotes/openflashchart/data-files/scatter-line-step-horizontal.txt b/pacotes/openflashchart/data-files/scatter-line-step-horizontal.txt new file mode 100644 index 0000000..b877e91 --- /dev/null +++ b/pacotes/openflashchart/data-files/scatter-line-step-horizontal.txt @@ -0,0 +1,25 @@ +{ + + "elements":[ + { + "type": "scatter_line", + "colour": "#FFB900", + "text": "Avg", + "font-size": 10, + "dot-size": 10, + "stepgraph" : "horizontal", + "values" : [ + {"x":-4, "y":-5 }, + {"x":-4, "y":-2 }, + {"x":-4, "y":1 }, + {"x":3, "y":3 }, + {"x":3.5, "y":3.5 }, + {"x":4.9, "y":4.9 } + ] + } + + ] +} + + + diff --git a/pacotes/openflashchart/data-files/scatter-line-step-vertical.txt b/pacotes/openflashchart/data-files/scatter-line-step-vertical.txt new file mode 100644 index 0000000..11e18cb --- /dev/null +++ b/pacotes/openflashchart/data-files/scatter-line-step-vertical.txt @@ -0,0 +1,25 @@ +{ + + "elements":[ + { + "type": "scatter_line", + "colour": "#FFB900", + "text": "Avg", + "font-size": 10, + "dot-size": 10, + "stepgraph" : "vertical", + "values" : [ + {"x":-4, "y":-5 }, + {"x":-4, "y":-2 }, + {"x":-4, "y":1 }, + {"x":3, "y":3 }, + {"x":3.5, "y":3.5 }, + {"x":4.9, "y":4.9 } + ] + } + + ] +} + + + diff --git a/pacotes/openflashchart/data-files/scatter-line.txt b/pacotes/openflashchart/data-files/scatter-line.txt new file mode 100644 index 0000000..12aa224 --- /dev/null +++ b/pacotes/openflashchart/data-files/scatter-line.txt @@ -0,0 +1,42 @@ +{ + + "elements":[ + { + "type": "scatter_line", + "colour": "#FFB900", + "text": "Avg", + "font-size": 10, + /* BUG: if you comment this out no line is drawn? why? */ + "dot-style": {"type":"solid-dot"}, + "values" : [ + {"x":-4, "y":-5, "tip":"HELLO" }, + {"x":-4, "y":-2, "colour":"#FF0000" }, + {"x":-4, "y":1, "dot-size":4}, + {"x":3, "y":3, "dot-size":5, "type": "hollow-dot"}, + {"x":3.5, "y":3.5, "dot-size":6}, + {"x":4.9, "y":4.9, "dot-size":7} + ] + } + + ], + + "x_axis":{ + "offset": false, + "min": -5, + "max": 5/*, + "labels":["mon","tue","wed","thur","fri","sat","sun"]*/ + }, + + "y_axis":{ + "min": -5, + "max": 5 + }, + + "y_legend":{ + "text": "Time of day", + "style": "{font-size: 20px; color: #736AFF;}" + } +} + + + diff --git a/pacotes/openflashchart/data-files/scatter-on-click.txt b/pacotes/openflashchart/data-files/scatter-on-click.txt new file mode 100644 index 0000000..8a57354 --- /dev/null +++ b/pacotes/openflashchart/data-files/scatter-on-click.txt @@ -0,0 +1,41 @@ +{ + + "elements":[ + { + "type": "scatter", + "colour": "#FFB900", + "text": "Avg", + "font-size": 10, + "dot-style": {"type":"solid-dot", "on-click":"trace:moooo"}, + "values" : [ + {"x":-5, "y":-5, "tip":"HELLO" }, + {"x":0, "y":0, "colour":"#FF0000" }, + {"x":5, "y":5, "dot-size":20, "on-click":"trace:big dot"}, + {"x":5, "y":-5, "dot-size":5}, + {"x":-5, "y":5, "dot-size":5}, + {"x":0.5, "y":1, "dot-size":15} + ] + } + + ], + + "x_axis":{ + "offset": false, + "min": -5, + "max": 5/*, + "labels":["mon","tue","wed","thur","fri","sat","sun"]*/ + }, + + "y_axis":{ + "min": -5, + "max": 5 + }, + + "y_legend":{ + "text": "Time of day", + "style": "{font-size: 20px; color: #736AFF;}" + } +} + + + diff --git a/pacotes/openflashchart/data-files/scatter-step-all.txt b/pacotes/openflashchart/data-files/scatter-step-all.txt new file mode 100644 index 0000000..c967679 --- /dev/null +++ b/pacotes/openflashchart/data-files/scatter-step-all.txt @@ -0,0 +1,66 @@ +{ + "elements": [ + { + "type": "scatter_line", + "colour": "#ff0000", + "dot-size": 3, + "values": [ + { + "x": 1, + "y": 1 + }, + { + "x": 2, + "y": 2 + }, + { + "x": 3, + "y": 1 + } + ] + }, + { + "type": "scatter_line", + "colour": "#ff0000", + "dot-size": 3, + "values": [ + { + "x": 4, + "y": 1 + }, + { + "x": 5, + "y": 2 + }, + { + "x": 6, + "y": 1 + } + ], + "stepgraph": "horizontal" + }, + { + "type": "scatter_line", + "colour": "#ff0000", + "dot-size": 3, + "values": [ + { + "x": 7, + "y": 1 + }, + { + "x": 8, + "y": 2 + }, + { + "x": 9, + "y": 1 + } + ], + "stepgraph": "vertical" + } + ], + "title": { + "text": "Thu Nov 20 2008" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/scatter.txt b/pacotes/openflashchart/data-files/scatter.txt new file mode 100644 index 0000000..0e78a18 --- /dev/null +++ b/pacotes/openflashchart/data-files/scatter.txt @@ -0,0 +1,40 @@ +{ + + "elements":[ + { + "type": "scatter", + "colour": "#FFB900", + "text": "Avg", + "font-size": 10, + "dot-style": {"type":"solid-dot"}, + "values" : [ + {"x":-5, "y":-5, "tip":"HELLO" }, + {"x":0, "y":0, "colour":"#FF0000" }, + {"x":5, "y":5, "dot-size":20, "on-click":"trace:moooo"}, + {"x":5, "y":-5, "dot-size":5, "type":"hollow-dot"}, + {"x":-5, "y":5, "dot-size":5}, + {"x":0.5, "y":1, "dot-size":15} + ] + } + + ], + + "x_axis":{ + "offset": false, + "min": -5, + "max": 5/*,"labels":["mon","tue","wed","thur","fri","sat","sun"]*/ + }, + + "y_axis":{ + "min": -5, + "max": 5 + }, + + "y_legend":{ + "text": "Time of day", + "style": "{font-size: 20px; color: #736AFF;}" + } +} + + + diff --git a/pacotes/openflashchart/data-files/shape.txt b/pacotes/openflashchart/data-files/shape.txt new file mode 100644 index 0000000..551023c --- /dev/null +++ b/pacotes/openflashchart/data-files/shape.txt @@ -0,0 +1,55 @@ +{ + "y_legend":{ + "text": "Time of day", + "style": "{color: #736AFF;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 0, + "line-style": {"style":"dash","on":10,"off":5}, + "values" : [ + 6,6, + {"value":7, "colour":"#FF0000", "tip":"LINE
#val#", "dot-size":12, "halo-size": 3 }, + 8,8] + }, + { + "type": "shape", + "colour": "#FF0000", + "alpha": 0.2, + "values" : [ + {"x":2,"y":2}, + {"x":4,"y":2}, + {"x":4,"y":4}, + {"x":3,"y":5}, + {"x":2,"y":4} + ] + }, + { + "type": "line_dot", + "colour": "#736AFF", + "text": "Line Dot Key", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 1, + "tip": "global dot
#val#", + "values" : [ + 2,2, + {"value":3, "colour":"#FF0000", "tip":"DOT
#val#
Key: #key#
#x_label#, #x_legend#", "dot-size":12, "halo-size": 3 }, + 4,4] + } + ], + + + "y_axis":{ + "max": 10 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/stack-bar-1.txt b/pacotes/openflashchart/data-files/stack-bar-1.txt new file mode 100644 index 0000000..77e458e --- /dev/null +++ b/pacotes/openflashchart/data-files/stack-bar-1.txt @@ -0,0 +1,41 @@ +{ + + "title":{ + "text":"Test stacked bar charts", + "style":"{font-size:16px;}" + }, + + "elements":[ + { + "type": "bar_stack", + "keys": [ + {"colour":"#FFB900", "text": "Key 1", "font-size": 10}, + {"colour":"#FFB9F0", "text": "Key 2", "font-size": 16}, + {"colour":"#FFB9F0", "text": "Key 3"}, + {"colour":"#FFB9F0", "font-size": 16}, + {"text": "Key 5", "font-size": 16} + ], + + "values" : [ + [2.5,{"val":5}], + [{"val":2.5},{"val":5},{"val":2.5}], + null, + [{"val":5},{"val":5},{"val":2},{"val":2},{"val":2,"colour":"#ff00ff"},{"val":2},{"val":2}] + ] + } + ], + + "x_axis":{ + "max":4, + "steps": 1, + "labels": { + "labels": ["January","February","March","April"] + }, + "stroke": 12, + "tick-height": 6 + }, + + "y_axis":{ + "max": 20 + } +} diff --git a/pacotes/openflashchart/data-files/stack-bar-2.txt b/pacotes/openflashchart/data-files/stack-bar-2.txt new file mode 100644 index 0000000..c1eacf2 --- /dev/null +++ b/pacotes/openflashchart/data-files/stack-bar-2.txt @@ -0,0 +1,44 @@ +{ + + "title":{ + "text":"Test stacked bar charts", + "style":"{font-size:16px;}" + }, + + "elements":[ + { + "type": "bar_stack", + "colours": ["#FF0000","#0000FF"], + "keys": [ + {"colour":"#FFB900", "text": "Key 1", "font-size": 10}, + {"colour":"#FFB9F0", "text": "Key 2", "font-size": 16} + ], + "ti--p": "#total#
(bar total)", + "values": [ + [2.5,{"val":5}], + [{"val":2.5},{"val":5},{"val":2.5}], + null, + [{"val":5},{"val":5},{"val":2},{"val":2},{"val":2,"colour":"#ff00ff","tip":"hello"},{"val":2},{"val":2}] + ] + }, + { + "type": "bar", + "colour": "#9933CC", + "text": "Bar", + "font-size": 10, + "values" : [9,6,7,9] + } + ], + + "x_axis":{ + "labels": { + "labels": ["January","February","March","April"] + }, + "stroke": 12, + "tick-height": 6 + }, + + "y_axis":{ + "max": 20 + } +} diff --git a/pacotes/openflashchart/data-files/stack-bar-on-click.txt b/pacotes/openflashchart/data-files/stack-bar-on-click.txt new file mode 100644 index 0000000..22cfd4a --- /dev/null +++ b/pacotes/openflashchart/data-files/stack-bar-on-click.txt @@ -0,0 +1,52 @@ +{ + + "title":{ + "text":"Test stacked bar charts", + "style":"{font-size:16px;}" + }, + + "elements":[ + { + "type": "bar_stack", + "keys": [ + {"colour":"#FFB900", "text": "Key 1", "font-size": 10}, + {"colour":"#FFB9F0", "text": "Key 2", "font-size": 16} + ], + "on-click": "trace:http://example.com", + "on-show": {"type": "drop", "delay":0.5, "cascade":0.6}, + "tip": "#total#
(bar total)", + "values": [ + [2.5,{"val":5}], + [{"val":2.5},{"val":5},{"val":2.5}], + null, + [{"val":5},{"val":5},{"val":2},{"val":2},{"val":2,"colour":"#ff00ff","tip": "Click me!", "on-click": "trace:clicked!!"},{"val":2},{"val":2}] + ] + }, + { + "type": "bar", + "colour": "#9933CC", + "text": "Bar", + "font-size": 10, + "values" : [9,6,7,9] + } + ], + + "x_axis":{ + "max":4, + "steps": 1, + "labels": { + "labels": ["January","February","March","April"] + }, + "stroke": 12, + "tick-height": 6 + }, + + "y_axis":{ + "max": 20 + }, + + "tooltip":{ + "mouse": 2, + "stroke":1 + } +} diff --git a/pacotes/openflashchart/data-files/stack-bar-on-show.txt b/pacotes/openflashchart/data-files/stack-bar-on-show.txt new file mode 100644 index 0000000..b747e07 --- /dev/null +++ b/pacotes/openflashchart/data-files/stack-bar-on-show.txt @@ -0,0 +1,52 @@ +{ + + "title":{ + "text":"Test stacked bar charts", + "style":"{font-size:16px;}" + }, + + "elements":[ + { + "type": "bar_stack", + "keys": [ + {"colour":"#FFB900", "text": "Key 1", "font-size": 10}, + {"colour":"#FFB9F0", "text": "Key 2", "font-size": 16} + ], + "tip": "#total#
(bar total)", + "on-show": {"type": "pop", "delay":0.5, "cascade":0.6}, + "values": [ + [2.5,{"val":5}], + [{"val":2.5},{"val":5},{"val":2.5}], + null, + [{"val":5},{"val":5},{"val":2},{"val":2},{"val":2,"colour":"#ff00ff","tip":"hello"},{"val":2},{"val":2}] + ] + }, + { + "type": "bar", + "colour": "#9933CC", + "text": "Bar", + "font-size": 10, + "on-show": {"type": "pop", "delay":0.5, "cascade":0.6}, + "values" : [9,6,7,9] + } + ], + + "x_axis":{ + "max":4, + "steps": 1, + "labels": { + "labels": ["January","February","March","April"] + }, + "stroke": 12, + "tick-height": 6 + }, + + "y_axis":{ + "max": 20 + }, + + "tooltip":{ + "mouse": 2, + "stroke":1 + } +} diff --git a/pacotes/openflashchart/data-files/stack-bar-tooltip-hover.txt b/pacotes/openflashchart/data-files/stack-bar-tooltip-hover.txt new file mode 100644 index 0000000..1a81962 --- /dev/null +++ b/pacotes/openflashchart/data-files/stack-bar-tooltip-hover.txt @@ -0,0 +1,50 @@ +{ + + "title":{ + "text":"Test stacked bar charts", + "style":"{font-size:16px;}" + }, + + "elements":[ + { + "type": "bar_stack", + "keys": [ + {"colour":"#FFB900", "text": "Key 1", "font-size": 10}, + {"colour":"#FFB9F0", "text": "Key 2", "font-size": 16} + ], + "tip": "#total#
(bar total)", + "values": [ + [2.5,{"val":5}], + [{"val":2.5},{"val":5},{"val":2.5}], + null, + [{"val":5},{"val":5},{"val":2},{"val":2},{"val":2,"colour":"#ff00ff","tip":"hello"},{"val":2},{"val":2}] + ] + }, + { + "type": "bar", + "colour": "#9933CC", + "text": "Bar", + "font-size": 10, + "values" : [9,6,7,9] + } + ], + + "x_axis":{ + "max":4, + "steps": 1, + "labels": { + "labels": ["January","February","March","April"] + }, + "stroke": 12, + "tick-height": 6 + }, + + "y_axis":{ + "max": 20 + }, + + "tooltip":{ + "mouse": 2, + "stroke":1 + } +} diff --git a/pacotes/openflashchart/data-files/tags.txt b/pacotes/openflashchart/data-files/tags.txt new file mode 100644 index 0000000..2ef70e7 --- /dev/null +++ b/pacotes/openflashchart/data-files/tags.txt @@ -0,0 +1,150 @@ +{ + "title":{ + "text": "Bars on Left Axis and Line on Right Axis", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type":"tags", + "font":"Verdana", + "font-size":10, + "colour":"#000000", + "pad-x":0, + "pad-y":0, + "rotate":0, + "align-x":"center", + "align-y":"above", + "text":"$#y#", + "values":[ + {"x":0,"y":9}, + {"x":1,"y":6, "align-y":"below"}, + {"x":2,"y":7}, + {"x":3,"y":9}, + {"x":4,"y":5}, + {"x":5,"y":7, "font":"Arial", "bold":true}, + {"x":6,"y":6}, + {"x":7,"y":9}, + + {"x":1,"y":13, "colour":"#0000F0", "underline": true, + "text":"Click", "on-cl--ick":"http://www.google.com" + }, + + {"x":1,"y":12.2, "colour":"#0000F0", "underline": true, + "text":"Call JS", "on-click":"trace:farts" + }, + + /* And one using the right axis just because we can */ + {"x":2,"y":78,"axis":"right", "pad-y":16, "font-size":20, + "colour":"#00BB00","font":"Arial Black", "rotate":0, + "text":"Click Tag to\nGoogle!!", "on-click":"http://www.google.com" + } + + ] + }, + { + "type": "arrow", + "start": {"x":2,"y":5}, + "end": {"x":4,"y":7}, + "barb-length": 10, + "colour": "#ff00ff" + }, + { + "type": "bar_glass", + "alpha": 0.5, + "colour": "#9933CC", + "text--": "Page views", + "alpha": 0.6, + "font-size--": 10, + "values" : [9,6,7,9,5,{"top":7,"colour":"#FF0000", "tip": "Mooo
#val#"}, + 6,9,{"top":7, "tip":"click to google
#val#", "on-click":"http://www.google.com"}] + }, + { + "type": "line_hollow", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "axis": "right", + "width": 2, + "dot-size": 4, + "halo-size": 0, + "values" : [ + 60,64, + {"value":78, "colour":"#FF0000", "tip":"Override
#val#", "dot-size":12, "halo-size": 3 }, + 58,50,41,41,36, 32 ] + }, + + // Moved this tag to be last in "elements" so it shows up + // on top of the bars instead of under it + { + "type":"tags", + "font":"Verdana", + "font-size":10, + "colour":"#000000", + "pad-x":0, + "pad-y":0, + "rotate":0, + "align-x":"center", + "align-y":"above", + "text":"$#y#", + "values":[ + {"x":8,"y":0.5, "rotate":270, "font-size":12, + "text":"click bar to\ngo to google" }, + + {"x":6,"y":80, "rotate":45, "font-size":14, + "text":"45 degrees\n(not aligned yet)", + "axis":"right", "background":"#AA99", "border":true } + ] + } + + ], + + "tooltip":{ + "mouse": 0 + }, + + "x_axis":{ + "stroke": 1, + "tick_height": 10, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "labels": { + "labels": [ + "January\n2008","February\n2008","March\n2008","April\n2008", + "May\n2008","June\n2008","July\n2008","August\n2008","September\n2008"] + } + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "max": 20, + "steps": 4 + }, + + "y_axis_right":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "grid_visible": true, + "offset": 0, + "steps": 20, + "max": 100, + "min": 0 + }, + + "tooltip":{ + "text": "My Tip
val=#val#, top=#top#" + } + +} + diff --git a/pacotes/openflashchart/data-files/title-1.txt b/pacotes/openflashchart/data-files/title-1.txt new file mode 100644 index 0000000..c1a30c6 --- /dev/null +++ b/pacotes/openflashchart/data-files/title-1.txt @@ -0,0 +1,40 @@ +{ + "title":{ + "text":"Area Chart", + "style":"{font-size:18px; padding: 5px; text-align: left; font-family: Century Gothic; font-weight: bold;}" + }, + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area_hollow", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "text": "Page views", + "width": 3, + "font-size": 10, + "dot-size": 7, + "tip": "Hello
#val#", + "values" : [0,0.37,0.73,1.07,1.36,1.59,1.77,1.87,1.89,1.85,1.72,1.53,1.28,0.97,0.63,0.26,-0.11,-0.48,-0.84,-1.16,-1.43,-1.65,-1.80,-1.88,-1.89,-1.82,-1.67,-1.46,-1.19,-0.88] + } + ], + + "x_axis":{ + "max":30, + "labels": { + "labels": ["0.00","0.38","0.74","1.07","1.36","1.60","1.77","1.87","1.90","1.85","1.73","1.54", + "1.28","0.98","0.64","0.27","-0.11","-0.49","-0.84","-1.16","-1.44","-1.66","-1.81", + "-1.89","-1.89","-1.82","-1.68","-1.47","-1.20","-0.88"] + } + }, + + "y_axis":{ + "min": -2, + "max": 2 + } +} diff --git a/pacotes/openflashchart/data-files/tooltip-1.txt b/pacotes/openflashchart/data-files/tooltip-1.txt new file mode 100644 index 0000000..87866f8 --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-1.txt @@ -0,0 +1,38 @@ +{ + + "title":{ + "text":"Custom tooltip", + "style":"{font-size: 20px; font-family: Verdana; text-align: center;}" + }, + + "elements":[ + { + "type": "bar", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,7,6,9,9] + } + ], + "x_axis":{ + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + "y_axis":{ + "max":20 + }, + "tooltip":{ + "shadow":false, + "stroke":5, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + } +} + +/* + +&y_legendx=Open Flash Chart,12,0x736AFF& +&x_axis_steps=2& + +*/ \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/tooltip-2.txt b/pacotes/openflashchart/data-files/tooltip-2.txt new file mode 100644 index 0000000..a114173 --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-2.txt @@ -0,0 +1,34 @@ +{ + + "title":{ + "text":"Custom tooltip", + "style":"{font-size: 20px; font-family: Verdana; text-align: center;}" + }, + + "elements":[ + { + "type": "bar", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,7,6,9,9], + "tip": "!!!
#val#
#x_label#" + } + ], + "x_axis":{ + "labels":{ + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + } + }, + "y_axis":{ + "max":20 + }, + "tooltip":{ + "shadow":false, + "stroke":5, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + } +} diff --git a/pacotes/openflashchart/data-files/tooltip-bar-floating.txt b/pacotes/openflashchart/data-files/tooltip-bar-floating.txt new file mode 100644 index 0000000..cbee021 --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-bar-floating.txt @@ -0,0 +1,57 @@ +{ + "title": { + "text": "Fri Jul 11 2008" + }, + "elements": [ + { + "type": "bar", + "values": [ + 130, + 180, + 200, + { + "top": 170 + }, + { + "top": 130, + "colour": "#000000", + "tip": "Hello
#top#" + }, + null, + 150 + ] + }, + { + "type": "bar_filled", + "values": [ + 140, + 190, + 180, + 140, + { + "top": 200, + "bottom": 150, +"tip":"#top# - #bottom#" + }, + 160, + 130 + ], + "colour": "#FFEF3F" + } + ], + "bg_colour": "#FFFFFF", + "y_axis": { + "min": 100, + "max": 200, + "steps": 10 + }, + + "tooltip":{ + "mouse": 1, + "stroke":1, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/tooltip-clash-scatter-2.txt b/pacotes/openflashchart/data-files/tooltip-clash-scatter-2.txt new file mode 100644 index 0000000..5be4dda --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-clash-scatter-2.txt @@ -0,0 +1,60 @@ +/* + +many points from a single set in the same location +many points from different sets in the same location + +*/ + +{ + + "elements":[ + { + "type": "scatter_line", + "dot-size": 10, + "tip": "Scatter 1
#x#, #y#", + "colour": "#000000", + "values" : [ + {"x":-4, "y":-5, "tip":"HELLO 1" }, + {"x":-4, "y":-2, "colour":"#FF0000" }, + {"x":-4, "y":1, "dot-size":4}, + {"x":3, "y":3, "dot-size":5}, + {"x":3, "y":3, "colour":"#FF00FF", "dot-size":3}, + {"x":3.5, "y":3.5, "dot-size":6}, + {"x":4.9, "y":4.9, "dot-size":7} + ] + }, + { + "type": "scatter", + "dot-size": 10, + "tip": "Scatter 2
#x#, #y#", + "colour": "#000000", + "values" : [ + {"x":-4, "y":-5, "tip":"HELLO 2" }, + {"x":-4, "y":-2 }, + {"x":-4, "y":-2, "dot-size":3 }, + {"x":3, "y":3, "colour":"#FF00FF"} + ] + } + + ], + + "x_axis":{ + "offset": false, + "min": -5, + "max": 5/*, + "labels":["mon","tue","wed","thur","fri","sat","sun"]*/ + }, + + "y_axis":{ + "min": -5, + "max": 5 + }, + + "y_legend":{ + "text": "Time of day", + "style": "{font-size: 20px; color: #736AFF;}" + } +} + + + diff --git a/pacotes/openflashchart/data-files/tooltip-clash-scatter-hover.txt b/pacotes/openflashchart/data-files/tooltip-clash-scatter-hover.txt new file mode 100644 index 0000000..9574b7a --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-clash-scatter-hover.txt @@ -0,0 +1,63 @@ +/* + +many points from a single set in the same location +many points from different sets in the same location + +tooltip is set to hover -- is this a bug?? + +*/ + +{ + "title":{ + "text":"Calculate Range", + "style":"{color: #736AFF; font-size: 25;}" + }, + + "elements":[ + { + "type": "scatter_line", + "dot-size": 10, + "tip": "Scatter 1
#x#, #y#", + "colour": "#000000", + "values" : [ + {"x":0, "y":0, "tip":"HELLO 1" }, + {"x":1, "y":0 } + ] + }, + { + "type": "scatter", + "dot-size": 7, + "tip": "Scatter 2
#x#, #y#", + "colour": "#600060", + "values" : [ + {"x":0, "y":0, "tip":"HELLO 2" }, + {"x":2, "y":0 } + ] + } + + ], + + "x_axis":{ + "offset": false, + "min": -5, + "max": 5 + }, + + "y_axis":{ + "min": -5, + "max": 5 + }, + + "y_legend":{ + "text": "Time of day", + "style": "{font-size: 20px; color: #736AFF;}" + }, + + "tooltip":{ + "mouse": 2, + "stroke":1 + } +} + + + diff --git a/pacotes/openflashchart/data-files/tooltip-clash-scatter.txt b/pacotes/openflashchart/data-files/tooltip-clash-scatter.txt new file mode 100644 index 0000000..5be4dda --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-clash-scatter.txt @@ -0,0 +1,60 @@ +/* + +many points from a single set in the same location +many points from different sets in the same location + +*/ + +{ + + "elements":[ + { + "type": "scatter_line", + "dot-size": 10, + "tip": "Scatter 1
#x#, #y#", + "colour": "#000000", + "values" : [ + {"x":-4, "y":-5, "tip":"HELLO 1" }, + {"x":-4, "y":-2, "colour":"#FF0000" }, + {"x":-4, "y":1, "dot-size":4}, + {"x":3, "y":3, "dot-size":5}, + {"x":3, "y":3, "colour":"#FF00FF", "dot-size":3}, + {"x":3.5, "y":3.5, "dot-size":6}, + {"x":4.9, "y":4.9, "dot-size":7} + ] + }, + { + "type": "scatter", + "dot-size": 10, + "tip": "Scatter 2
#x#, #y#", + "colour": "#000000", + "values" : [ + {"x":-4, "y":-5, "tip":"HELLO 2" }, + {"x":-4, "y":-2 }, + {"x":-4, "y":-2, "dot-size":3 }, + {"x":3, "y":3, "colour":"#FF00FF"} + ] + } + + ], + + "x_axis":{ + "offset": false, + "min": -5, + "max": 5/*, + "labels":["mon","tue","wed","thur","fri","sat","sun"]*/ + }, + + "y_axis":{ + "min": -5, + "max": 5 + }, + + "y_legend":{ + "text": "Time of day", + "style": "{font-size: 20px; color: #736AFF;}" + } +} + + + diff --git a/pacotes/openflashchart/data-files/tooltip-clash.txt b/pacotes/openflashchart/data-files/tooltip-clash.txt new file mode 100644 index 0000000..be49141 --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-clash.txt @@ -0,0 +1,42 @@ +{ + "y_legend":{ + "text": "Time of day", + "style": "{color: #736AFF;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#FF0000", + "width": 2, + "dot-size": 4, + "halo-size": 0, + "tip": "#val#
Red [#x_label#]", + "values" : [7,6,7,8,8] + }, + { + "type": "line_hollow", + "colour": "#00FF00", + "width": 2, + "dot-size": 4, + "halo-size": 2, + "tip": "#val#
Green [#x_label#]", + "values" : [7,8,7,6,6] + }, + { + "type": "line_dot", + "colour": "#0000FF", + "width": 2, + "dot-size": 4, + "halo-size": 2, + "tip": "#val#
Blue [#x_label#]", + "values" : [3,4,7,3,3] + } + ], + + + "y_axis":{ + "max": 10 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/tooltip-hover.txt b/pacotes/openflashchart/data-files/tooltip-hover.txt new file mode 100644 index 0000000..63c7a93 --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-hover.txt @@ -0,0 +1,29 @@ +{ + "y_legend":{ + "text": "Time of day", + "style": "{color: #736AFF;}" + }, + + "elements":[ + { + "type": "line_hollow", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 1, + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ], + + "tooltip":{ + "mouse": 2, + "stroke":1 + }, + + "y_axis":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/tooltip-mixed-1.txt b/pacotes/openflashchart/data-files/tooltip-mixed-1.txt new file mode 100644 index 0000000..8ba95f1 --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-mixed-1.txt @@ -0,0 +1,79 @@ +{ + "title":{ + "text": "TOOLTIP: CLOSEST", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar", + "alpha": 0.5, + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,7,6,9,7] + }, + { + "type": "bar", + "alpha": 0.5, + "colour": "#CC9933", + "text": "Page views 2", + "font-size": 10, + "values" : [4,9,6,7,9,5,7,6,9] + }, + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-style": { + "type":"hollow-dot", "dot-size": 4, "halo-size": 2 }, + "values" : [ + 14,14, + {"value":15, "colour":"#FF0000", "tip":"HOLLOW
#val#", "dot-size":12, "halo-size": 3 }, + 16,18] + }, + { + "type": "line", + "colour": "#736AFF", + "text": "Line Dot Key", + "font-size": 10, + "width": 2, + "dot-style": { + "type":"dot", "dot-size": 4, + "tip":"global dot
#val#" }, + "values" : [ + null,null,null,null, + 12,12, + {"value":13, "colour":"#FF0000", "tip":"DOT
#val#
Key: #key#
Label: #x_label#, #x_legend#", "dot-size":12, "halo-size": 3 }, + 14,9] + } + ], + + "x_axis":{ + "stroke":1, + "tick_height":10, + "colour":"#d000d0", + "grid_colour":"#00ff00", + "labels": { + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + } + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "max": 20 + } + +} + diff --git a/pacotes/openflashchart/data-files/tooltip-mixed-2.txt b/pacotes/openflashchart/data-files/tooltip-mixed-2.txt new file mode 100644 index 0000000..ebae337 --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-mixed-2.txt @@ -0,0 +1,86 @@ +{ + "title":{ + "text": "TOOLTIP: HOVER", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + }, + + "elements":[ + { + "type": "bar", + "alpha": 0.5, + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,7,6,9,7] + }, + { + "type": "bar", + "alpha": 0.5, + "colour": "#CC9933", + "text": "Page views 2", + "font-size": 10, + "tip": "#x_label#: #val#
#key#", + "values" : [4,9,6,7,9,5,7,6,9] + }, + { + "type": "line_hollow", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 2, + "values" : [ + 14,14, + {"value":15, "colour":"#FF0000", "tip":"HOLLOW
#val#", "dot-size":12, "halo-size": 3 }, + 16,18] + }, + { + "type": "line_dot", + "colour": "#736AFF", + "text": "Line Dot Key", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 1, + "tip": "global dot
#val#", + "values" : [ + null,null,null,null, + 12,12, + {"value":13, "colour":"#FF0000", "tip":"DOT
#val#
Key: #key#
#x_label#, #x_legend#", "dot-size":12, "halo-size": 3 }, + 14,9] + } + ], + + "x_axis":{ + "stroke":1, + "tick_height":10, + "colour":"#d000d0", + "grid_colour":"#00ff00", + "labels": { + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + } + }, + + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "max": 20 + }, + + "tooltip":{ + "mouse": 1 + } + +/* &x_axis_steps=2& */ + +} + diff --git a/pacotes/openflashchart/data-files/tooltip-rounded.txt b/pacotes/openflashchart/data-files/tooltip-rounded.txt new file mode 100644 index 0000000..c34a8ec --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-rounded.txt @@ -0,0 +1,35 @@ +{ + + "title":{ + "text":"Custom tooltip", + "style":"{font-size: 20px; font-family: Verdana; text-align: center;}" + }, + + "elements":[ + { + "type": "bar", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,7,6,9,9], + "tip": "!!!
#val#
#x_label#" + } + ], + "x_axis":{ + "labels":{ + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + } + }, + "y_axis":{ + "max":20 + }, + "tooltip":{ + "shadow":false, + "stroke":5, + "rounded": 12, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + } +} diff --git a/pacotes/openflashchart/data-files/tooltip-x-radar-clash-proximity.txt b/pacotes/openflashchart/data-files/tooltip-x-radar-clash-proximity.txt new file mode 100644 index 0000000..3e5adcc --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-x-radar-clash-proximity.txt @@ -0,0 +1,63 @@ +{ + "title":{ + "text":"Ahhhh, sweet.", + "style":"{font-size: 13px;}" + }, + + "elements":[ + { + "type": "area_line", + "colour": "#FA3D37", + "fill": "#FA3D37", + "fill-alpha": 0.3, + "text": "Orange", + "width": 1, + "font-size": 10, + "dot-size": 3, + "halo-size": 1, + "tip": "Orange
#val#", + "loop": true, + "values" : [2,2,2,2,2,2,2] + }, + { + "type": "area_line", + "colour": "#3D37FA", + "fill": "#3D37FA", + "fill-alpha": 0.3, + "text": "Blue", + "width": 1, + "font-size": 10, + "dot-size": 3, + "halo-size": 1, + "tip": "Blue
#val#", + "loop": true, + "values" : [{"value":3, "tip":"3 Accuratesse"},3,3,1.5,1,2,3] + } + ], + + + "radar_axis": { + "max": 4, + "stroke": 1, + "colour": "#909090", + "grid-colour": "#C0DEBF", + "steps": 4, + + "labels":{ + "colour" :"#000000", + "labels": [ + "0","1","2","3","4" + ] + }, + + "spoke-labels":{ + "colour": "#000000", + "labels": ["Accuratesse","Analystich
vermogen","Creativiteit","Plannen en
organiseren","Probleemanalyse","Samenwerken in
teamverband","Zelfstandigheid"] + } + }, + + "tooltip":{ + "mouse": 1, + "stroke":1 + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/tooltip-x-radar-clash.txt b/pacotes/openflashchart/data-files/tooltip-x-radar-clash.txt new file mode 100644 index 0000000..c7d2a13 --- /dev/null +++ b/pacotes/openflashchart/data-files/tooltip-x-radar-clash.txt @@ -0,0 +1,58 @@ +{ + "title":{ + "text":"Ahhhh, sweet.", + "style":"{font-size: 13px;}" + }, + + "elements":[ + { + "type": "area_line", + "colour": "#FA3D37", + "fill": "#FA3D37", + "fill-alpha": 0.3, + "text": "Orange", + "width": 1, + "font-size": 10, + "dot-size": 3, + "halo-size": 1, + "tip": "Orange
#val#", + "loop": true, + "values" : [2,2,2,2,2,2,2] + }, + { + "type": "area_line", + "colour": "#3D37FA", + "fill": "#3D37FA", + "fill-alpha": 0.3, + "text": "Blue", + "width": 1, + "font-size": 10, + "dot-size": 3, + "halo-size": 1, + "tip": "Blue
#val#", + "loop": true, + "values" : [{"value":3, "tip":"3 Accuratesse"},3,3,1.5,1,2,3] + } + ], + + + "radar_axis": { + "max": 4, + "stroke": 1, + "colour": "#909090", + "grid-colour": "#C0DEBF", + "steps": 4, + + "labels":{ + "colour" :"#000000", + "labels": [ + "0","1","2","3","4" + ] + }, + + "spoke-labels":{ + "colour": "#000000", + "labels": ["Accuratesse","Analystich
vermogen","Creativiteit","Plannen en
organiseren","Probleemanalyse","Samenwerken in
teamverband","Zelfstandigheid"] + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/utf8-1.txt b/pacotes/openflashchart/data-files/utf8-1.txt new file mode 100644 index 0000000..bdc01ec --- /dev/null +++ b/pacotes/openflashchart/data-files/utf8-1.txt @@ -0,0 +1,38 @@ +{ + + "title":{ + "text":"€£â‚¬", + "style":"{font-size: 20px; font-family: Verdana; text-align: center;}" + }, + + "elements":[ + { + "type": "bar", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,7,6,9,9] + } + ], + "x_axis":{ + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + }, + "y_axis":{ + "max":20 + }, + "tooltip":{ + "shadow":false, + "stroke":5, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + } +} + +/* + +&y_legendx=Open Flash Chart,12,0x736AFF& +&x_axis_steps=2& + +*/ \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-1.txt b/pacotes/openflashchart/data-files/x-axis-1.txt new file mode 100644 index 0000000..de017d5 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-1.txt @@ -0,0 +1,38 @@ +{ + + "title":{ + "text":"Calculate Range", + "style":"{color: #736AFF; font-size: 25;}" + }, + + + "elements":[ + { + "type": "line", + "colour": "#87421F", + "width": 3, + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40, + 2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62, + 0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61, + 1.81,1.99,2.15,2.29,2.39,2.46,2.49] + } + ], + + "y_axis":{ + "max": 3, + "colour": "#FF0000", + "grid-colour": "#FF0000" + }, + + "x_axis":{ + "steps": 1, + + "labels":{ + "visible": true, + "rotate": "vertical", + "steps": 2 + } + }, + + "bg_colour": "#F8F8F8" +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-auto-range.txt b/pacotes/openflashchart/data-files/x-axis-auto-range.txt new file mode 100644 index 0000000..bf8b739 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-auto-range.txt @@ -0,0 +1,51 @@ +{ + "elements": [ + { + "type": "line", + "values": [ + 1, + 2, + 1, + null, + null, + null, + null, + null, + null, + null + ] + }, + { + "type": "line", + "values": [ + null, + null, + null, + 1, + 2, + 1, + null, + null, + null, + null + ] + }, + { + "type": "line", + "values": [ + null, + null, + null, + null, + null, + null, + 1, + 2, + 1 + ] + } + ], + "title": { + "text": "Thu Nov 20 2008" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-big.txt b/pacotes/openflashchart/data-files/x-axis-big.txt new file mode 100644 index 0000000..58f98ee --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-big.txt @@ -0,0 +1,51 @@ +{ + "elements":[ + { + "type":"scatter", + "colour":"#FF0000", + "outline-colour":"#577261", + "dot-style": { + "type":"anchor", "sides":4, + "alpha":1, "hollow":true, + "background-colour":"#a44a80", "background-alpha": 0.4, + "width":1, "tip":"X: #x_label#" }, + "values":[ + {"x":0,"y":0}, + {"x":20000,"y":0}, + {"x":20000,"y":20000}, + {"x":0,"y":20000} + ] + } + ], + + "title":{ + "text":"adsfasdfasdf" + }, + + "bg_colour":"#FFFFFF", + + "x_axis":{ + "grid-colour":"#FFFFFF", + "colour":"#000000", + "min":0, + "max":20000, + "steps":3000, + "labels": { + "_visible": true, + "_colour": "#f09090", + "steps": 3000, + "_size" : 15, + "_align": "right", + "rotate": 45, + "visible-steps": 3000 + } + }, + + "y_axis":{ + "grid-colour":"#FFFFFF", + "colour":"#000000", + "min":0, + "max":20000, + "steps":2500 + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-labels-2.txt b/pacotes/openflashchart/data-files/x-axis-labels-2.txt new file mode 100644 index 0000000..7804e44 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-labels-2.txt @@ -0,0 +1,48 @@ +{ + + "title":{ + "text":"Portreath beach", + "style":"{color: #736AFF; font-size: 25;}" + }, + + + "elements":[ + { + "type": "line", + "colour": "#87421F", + "width": 3, + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40, + 2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62, + 0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61, + 1.81,1.99,2.15,2.29,2.39,2.46,2.49] + } + ], + + "y_axis":{ + "max": 3, + "colour": "#FF0000", + "grid-colour": "#FF0000" + }, + + "x_axis":{ + "steps": 4, + + "labels":{ + "visible": true, + "rotate": "vertical", + "steps": 1, + "labels": [ + "1", + "2", + {"text":"3","colour":"#00D000"}, + "4", + "5 Hello", + {"text":"Long text 1","colour":"#00D0D0", "rotate": "diagonal"}, /* override parent */ + {"text":"Long text 2","colour":"#00D0D0", "rotate": "moo", "size":30}, /* should default to horizontal */ + {"text":"Long text 3","colour":"#D000D0", "size":10} /* inherit and become vertical */ + ] + } + }, + + "bg_colour": "#F8F8F8" +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-labels-3.txt b/pacotes/openflashchart/data-files/x-axis-labels-3.txt new file mode 100644 index 0000000..12c5476 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-labels-3.txt @@ -0,0 +1,49 @@ +{ + + "title":{ + "text":"Portreath beach", + "style":"{color: #736AFF; font-size: 25;}" + }, + + + "elements":[ + { + "type": "line", + "colour": "#87421F", + "width": 3, + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40, + 2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62, + 0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61, + 1.81,1.99,2.15,2.29,2.39,2.46,2.49] + } + ], + + "y_axis":{ + "max": 3, + "colour": "#FF0000", + "grid-colour": "#FF0000" + }, + + "x_axis":{ + "steps": 4, + + "labels":{ + "visible": true, + "rotate": "vertical", + "steps": 2, + "size": 16, + "labels": [ + "1", + "2", + {"text":"3","colour":"#00D000"}, + "4", + "5 Hello", + {"text":"Long text 1","colour":"#00D0D0", "visible": true}, + "Long text 2", + "Long text 3" + ] + } + }, + + "bg_colour": "#F8F8F8" +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-labels-4.txt b/pacotes/openflashchart/data-files/x-axis-labels-4.txt new file mode 100644 index 0000000..9df4f0c --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-labels-4.txt @@ -0,0 +1,53 @@ +{ + "title": { + "text": "Our New House Schedule" + }, + "elements": [ + { + "type": "hbar", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values": [ + { + "right": 4 + }, + { + "right": 4, + "left": 8 + }, + { + "right": 8, + "left": 11 + } + ] + } + ], + "y_axis": { + "offset": 1, + "labels": [ + "Make garden look sexy", + "Paint house", + "Move into house" + ] + }, + "x_axis": { + "offset": false, + "labels": { + "labels": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ] + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-labels-5.txt b/pacotes/openflashchart/data-files/x-axis-labels-5.txt new file mode 100644 index 0000000..54b0f2b --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-labels-5.txt @@ -0,0 +1,43 @@ +{ + "title": { + "text": "Too few labels check" + }, + "elements": [ + { + "type": "hbar", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values": [ + { + "right": 4 + }, + { + "right": 4, + "left": 8 + }, + { + "right": 8, + "left": 11 + } + ] + } + ], + "y_axis": { + "offset": 1, + "labels": [ + "Make garden look sexy", + "Paint house", + "Move into house" + ] + }, + "x_axis": { + "offset": false, + "labels": { + "labels": [ + "Jan", + "Feb" + ] + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-labels-6.txt b/pacotes/openflashchart/data-files/x-axis-labels-6.txt new file mode 100644 index 0000000..931f1c6 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-labels-6.txt @@ -0,0 +1,56 @@ +{ + "title": { + "text": "Our New House Schedule" + }, + "elements": [ + { + "type": "hbar", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values": [ + { + "right": 4 + }, + { + "right": 4, + "left": 8 + }, + { + "right": 8, + "left": 11 + } + ] + } + ], + "y_axis": { + "offset": 1, + "labels": [ + "Make garden look sexy", + "Paint house", + "Move into house" + ] + }, + "x_axis": { + "offset": false, + "labels": { + + "rotate": -24, + + "labels": [ + "January", + {"text":"February","rotate":45}, + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + {"text":"November","rotate":350}, + "December" + ] + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-labels-7.txt b/pacotes/openflashchart/data-files/x-axis-labels-7.txt new file mode 100644 index 0000000..df074c8 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-labels-7.txt @@ -0,0 +1,36 @@ +{ + "elements": [ + { + "type": "line_dot", + "values": [ 9, 8, 7, 6, 5, 4, 3, 2, 1 ], + "tip": "#val# cccc
#x_label# cccc" + } + ], + + "title": { "text": "X Axis Labels Complex Example" }, + + "x_axis": { + "stroke": 1, + "colour": "#428C3E", + "tick-height": 5, + "grid-colour": "#86BF83", + "steps": 1, + "labels": { + "steps": 2, + "rotate": "vertical", + "colour": "#ff0000", + "size": 16, + "labels": [ + "one", + "two", + "three", + "four", + "five", + { "text": "six", "colour": "#0000FF", "size": 30, "rotate": 90 }, + { "text": "seven", "colour": "#0000FF", "size": 30, "rotate": 180 }, + { "text": "eight", "colour": "#8C773E", "size": 16, "rotate": 35, "visible": true }, + { "text": "nine", "colour": "#2683CF", "size": 16, "rotate": 0 } + ] + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-labels-angle-no-offset.txt b/pacotes/openflashchart/data-files/x-axis-labels-angle-no-offset.txt new file mode 100644 index 0000000..0506917 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-labels-angle-no-offset.txt @@ -0,0 +1,55 @@ +{ + "title": { + "text": "Our New House Schedule" + }, + "elements": [ + { + "type": "hbar", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values": [ + { + "right": 4 + }, + { + "right": 4, + "left": 8 + }, + { + "right": 8, + "left": 11 + } + ] + } + ], + "y_axis": { + "offset": 1, + "labels": [ + "Make garden look sexy", + "Paint house", + "Move into house" + ] + }, + "x_axis": { + "offset": false, + "labels": { + "align":"center", + "labels": [ + {"text":"January 0","rotate":0}, + {"text":"January 30","rotate":30}, + {"text":"January 60","rotate":60}, + {"text":"January 90","rotate":90}, + {"text":"January 120","rotate":120}, + {"text":"January 150","rotate":150}, + {"text":"January 180","rotate":180}, + {"text":"January 210","rotate":210}, + {"text":"January 240","rotate":240}, + {"text":"January 270","rotate":270}, + {"text":"January 300","rotate":300}, + {"text":"January 330","rotate":330}, + {"text":"January 360","rotate":360} + ] + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-labels-angle-offset.txt b/pacotes/openflashchart/data-files/x-axis-labels-angle-offset.txt new file mode 100644 index 0000000..562bbc4 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-labels-angle-offset.txt @@ -0,0 +1,55 @@ +{ + "title": { + "text": "Our New House Schedule" + }, + "elements": [ + { + "type": "hbar", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values": [ + { + "right": 4 + }, + { + "right": 4, + "left": 8 + }, + { + "right": 8, + "left": 11 + } + ] + } + ], + "y_axis": { + "offset": 1, + "labels": [ + "Make garden look sexy", + "Paint house", + "Move into house" + ] + }, + "x_axis": { + "offset": true, + "labels": { + "align":"center", + "labels": [ + {"text":"January 0","rotate":0}, + {"text":"January 30","rotate":30}, + {"text":"January 60","rotate":60}, + {"text":"January 90","rotate":90}, + {"text":"January 120","rotate":120}, + {"text":"January 150","rotate":150}, + {"text":"January 180","rotate":180}, + {"text":"January 210","rotate":210}, + {"text":"January 240","rotate":240}, + {"text":"January 270","rotate":270}, + {"text":"January 300","rotate":300}, + {"text":"January 330","rotate":330}, + {"text":"January 360","rotate":360} + ] + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-labels.txt b/pacotes/openflashchart/data-files/x-axis-labels.txt new file mode 100644 index 0000000..3eaef1d --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-labels.txt @@ -0,0 +1,38 @@ +{ + + "title":{ + "text":"Calculate Range", + "style":"{color: #736AFF; font-size: 25;}" + }, + + + "elements":[ + { + "type": "line", + "colour": "#87421F", + "width": 3, + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40, + 2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62, + 0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61, + 1.81,1.99,2.15,2.29,2.39,2.46,2.49] + } + ], + + "y_axis":{ + "max": 3, + "colour": "#FF0000", + "grid-colour": "#FF0000" + }, + + "x_axis":{ + "steps": 4, + + "labels":{ + "visible": true, + "rotate": "vertical", + "steps": 2 + } + }, + + "bg_colour": "#F8F8F8" +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-no-offset.txt b/pacotes/openflashchart/data-files/x-axis-no-offset.txt new file mode 100644 index 0000000..06bca65 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-no-offset.txt @@ -0,0 +1,39 @@ +{ + + "title":{ + "text":"Calculate Range", + "style":"{color: #736AFF; font-size: 25;}" + }, + + + "elements":[ + { + "type": "line", + "colour": "#87421F", + "width": 3, + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40, + 2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62, + 0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61, + 1.81,1.99,2.15,2.29,2.39,2.46,2.49] + } + ], + + "y_axis":{ + "max": 3, + "colour": "#FF0000", + "grid-colour": "#FF0000" + }, + + "x_axis":{ + "steps": 1, + "offset": false, + + "labels":{ + "visible": true, + "rotate": "vertical", + "steps": 2 + } + }, + + "bg_colour": "#F8F8F8" +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-axis-range-scatter-minus.txt b/pacotes/openflashchart/data-files/x-axis-range-scatter-minus.txt new file mode 100644 index 0000000..6073229 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-range-scatter-minus.txt @@ -0,0 +1,38 @@ +{ + + "elements":[ + { + "type": "scatter_line", + "colour": "#FFB900", + "text": "Avg", + "font-size": 10, + "dot-size": 10, + "values" : [ + {"x": 5, "y":-5 }, + {"x": 3, "y":-2 }, + {"x": 2.5, "y": 1 }, + {"x": 1, "y": 3 }, + {"x": 0, "y": 3.5 }, + {"x":-5, "y": 4.9 } + ] + } + + ], + + "x_axis":{ + "steps": 1, + + "labels":{ + "visible": true, + "rotate": "vertical" + } + }, + + "y_axis":{ + "min": -5, + "max": 5 + } +} + + + diff --git a/pacotes/openflashchart/data-files/x-axis-range-scatter-plus.txt b/pacotes/openflashchart/data-files/x-axis-range-scatter-plus.txt new file mode 100644 index 0000000..cad51cc --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-range-scatter-plus.txt @@ -0,0 +1,36 @@ +{ + + "elements":[ + { + "type": "scatter_line", + "colour": "#FFB900", + "text": "Avg", + "font-size": 10, + "dot-size": 10, + "values" : [ + {"x":9, "y":3 }, + {"x":3, "y":3 }, + {"x":7, "y":3 }, + {"x":8, "y":5 } + ] + } + + ], + + "x_axis":{ + "steps": 1, + + "labels":{ + "visible": true, + "rotate": "vertical" + } + }, + + "y_axis":{ + "min": -5, + "max": 5 + } +} + + + diff --git a/pacotes/openflashchart/data-files/x-axis-steps-zero-check.txt b/pacotes/openflashchart/data-files/x-axis-steps-zero-check.txt new file mode 100644 index 0000000..a39175e --- /dev/null +++ b/pacotes/openflashchart/data-files/x-axis-steps-zero-check.txt @@ -0,0 +1,38 @@ +{ + + "title":{ + "text":"Calculate Range", + "style":"{color: #736AFF; font-size: 25;}" + }, + + + "elements":[ + { + "type": "line", + "colour": "#87421F", + "width": 3, + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40, + 2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62, + 0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61, + 1.81,1.99,2.15,2.29,2.39,2.46,2.49] + } + ], + + "y_axis":{ + "max": 3, + "colour": "#FF0000", + "grid-colour": "#FF0000" + }, + + "x_axis":{ + "steps": 0, + + "labels":{ + "visible": true, + "rotate": "vertical", + "steps": 2 + } + }, + + "bg_colour": "#F8F8F8" +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-labels-auto-dates.txt b/pacotes/openflashchart/data-files/x-labels-auto-dates.txt new file mode 100644 index 0000000..41cfff9 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-labels-auto-dates.txt @@ -0,0 +1,69 @@ +{ + "title":{ + "text":"X Labels - Auto Dates - Every 2nd Visible", + "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + + "x_axis": { + "min": 1220245200, + "max": 1221368400, + "steps": 86400, // <-- seconds in a day + "labels":{ + "rotate":345, + "steps":86400, + "visible-steps":2, + "text":"#date:l jS, M Y#" // <-- apply default date format to X axis labels + } + }, + + "elements":[ + { + "type": "scatter_line", + "colours": ["#1f3cd0"], + "alpha": 0.6, + "border": 2, + "animate": 0, + "dot-style": { + "tip": "#date:d M y#
#y#\n(left axis)", // User formatted date + "type":"solid-dot"}, + + "width": 4, + "text": "Test with Unix Timestamp as X Value", + "values" : [ + {"x":1220245200, "y":10}, // 1220245200 = unix time stamp for 01 Sep 2008 + {"x":1220331600, "y":20}, + {"x":1220418000, "y":30}, + {"x":1220504400, "y":40}, + {"x":1220590800, "y":50}, + {"x":1220677200, "y":60}, + {"x":1220763600, "y":70}, + // skip a day -- {"x":1220850000, "y":80}, + {"x":1220936400, "y":70}, + {"x":1221022800, "y":60}, + {"x":1221109200, "y":50}, + {"x":1221195600, "y":40}, + {"x":1221282000, "y":30}, + {"x":1221368400, "y":20} + ] + } + ], + + "tooltip":{ + "shadow":false, + "stroke":2, + "mouse":0, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}", + "text":"title
body" + }, + + "y_axis": { + "min": 0, + "max": 100, + "stroke": 2, + "steps" : 10, + "offset": 0 + } +} diff --git a/pacotes/openflashchart/data-files/x-labels-auto-min5-3rd-visible.txt b/pacotes/openflashchart/data-files/x-labels-auto-min5-3rd-visible.txt new file mode 100644 index 0000000..2d8e90f --- /dev/null +++ b/pacotes/openflashchart/data-files/x-labels-auto-min5-3rd-visible.txt @@ -0,0 +1,42 @@ +{ + "title":{ + "text":"X Labels - Auto w/ Min = 5 - Formatted and Display Every 3rd Label", + "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + + "x_axis":{ + "min":5, + "max":49, + "steps": 3, // grid lines for every third point + "labels": { + "rotate":315, + "text":"Label $#val#.00%", // format for the label + "steps":1, // save every label text (tooltip) + "visible-steps":3 // but show every 3rd one + } + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "dot-style": { "type":"hollow", "tip":"X: #x_label#" }, + "tip": "#x_label#
#val#", + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ], + + "tooltip":{ + "shadow":false, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + }, + + "y_axis":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-labels-auto-min5.txt b/pacotes/openflashchart/data-files/x-labels-auto-min5.txt new file mode 100644 index 0000000..d9d4a97 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-labels-auto-min5.txt @@ -0,0 +1,27 @@ +{ + "title":{ + "text":"X Labels - Auto with Minimum = 5 (must specify max also)", + "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + + "x_axis":{ "min":5, "max":50 }, + + "elements":[ + { + "type": "line_hollow", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 1, + "tip": "#x_label#
#val#", + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ], + + "y_axis":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-labels-auto-rev.txt b/pacotes/openflashchart/data-files/x-labels-auto-rev.txt new file mode 100644 index 0000000..696cd3a --- /dev/null +++ b/pacotes/openflashchart/data-files/x-labels-auto-rev.txt @@ -0,0 +1,36 @@ +{ + "title":{ + "text":"X Labels - Auto with Reversed Axis", + "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + + "x_axis":{ "min":49, "max":5, "offset":true, "labels":{"visible-steps":2,"rotate":270 }}, + + "elements":[ + { + "type": "line_hollow", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 1, + "tip": "#x_label#
#val#", + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ], + + "tooltip":{ + "shadow":false, + "stroke":5, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + }, + + "y_axis":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-labels-auto.txt b/pacotes/openflashchart/data-files/x-labels-auto.txt new file mode 100644 index 0000000..f16d378 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-labels-auto.txt @@ -0,0 +1,22 @@ +{ + "title":{ + "text":"X Labels - Simple Automatic Generation" + }, + + "elements":[ + { + "type": "line_hollow", + "colour": "#736AFF", + "width": 2, + "dot-size": 4, + "halo-size": 1, + "tip": "#x_label#
#val#", + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ], + + "y_axis":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-labels-invisible-user-labels.txt b/pacotes/openflashchart/data-files/x-labels-invisible-user-labels.txt new file mode 100644 index 0000000..4160dc1 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-labels-invisible-user-labels.txt @@ -0,0 +1,40 @@ +{ + "title":{ + "text":"X Labels - Auto with Min=5 - Invisible Labels", + "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + + "x_axis":{ + "steps": 1, + "labels": { + "visible":false, + "labels":["a:[#val#]","b:[#val#]","c:[#val#]"] + } + }, + + "elements":[ + { + "type": "line_hollow", + "colour": "#736AFF", + "width": 2, + "dot-size": 4, + "halo-size": 1, + "tip": "#x_label#
#val#", + "values" : [3,4,5] + } + ], + + "tooltip":{ + "shadow":false, + "stroke":5, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + }, + + "y_axis":{ + "max": 8 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-labels-invisible.txt b/pacotes/openflashchart/data-files/x-labels-invisible.txt new file mode 100644 index 0000000..d561562 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-labels-invisible.txt @@ -0,0 +1,36 @@ +{ + "title":{ + "text":"X Labels - Auto with Min=5 - Invisible Labels", + "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + + "x_axis":{ "steps": 1, "min" : 5, "max":50, "labels": { "visible":false } }, + + "elements":[ + { + "type": "line_hollow", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 1, + "tip": "#x_label#
#val#", + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ], + + "tooltip":{ + "shadow":false, + "stroke":5, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + }, + + "y_axis":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-labels-user-labels-br.txt b/pacotes/openflashchart/data-files/x-labels-user-labels-br.txt new file mode 100644 index 0000000..e28b1f9 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-labels-user-labels-br.txt @@ -0,0 +1,48 @@ +{ + "title":{ + "text":"X Labels - User Supplied Labels", + "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + + "x_axis":{ + "labels" : { + "labels":["2:00am
line 2
line 3","","","","2:40","2:50", + "3:00am","3:10","3:20","3:30","3:40","3:50", + "4:00am","4:10","4:20","4:30","4:40","4:50", + "5:00am","5:10","5:20","5:30","5:40","5:50", + "6:00am","6:10","6:20","6:30","6:40","6:50", + "7:00am","7:10","7:20","7:30","7:40","7:50", + "8:00am","8:10","8:20","8:30","8:40","8:50", + "9:00am","9:10","9:20"] + } + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-style": { "hollow":true, "background-colour":"#a44a80", + "background-alpha": 0.4, "width":1, "tip":"#x_label#
#val#" }, + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ], + + "tooltip":{ + "shadow":false, + "stroke":5, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + }, + + "y_axis":{ + "steps": 1, + "min": 0, + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-labels-user-labels.txt b/pacotes/openflashchart/data-files/x-labels-user-labels.txt new file mode 100644 index 0000000..110e4f6 --- /dev/null +++ b/pacotes/openflashchart/data-files/x-labels-user-labels.txt @@ -0,0 +1,48 @@ +{ + "title":{ + "text":"X Labels - User Supplied Labels", + "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + + "x_axis":{ + "labels" : { "rotate":270, + "labels":["2:00am","2:10","2:20","2:30","2:40","2:50", + "3:00am","3:10","3:20","3:30","3:40","3:50", + "4:00am","4:10","4:20","4:30","4:40","4:50", + "5:00am","5:10","5:20","5:30","5:40","5:50", + "6:00am","6:10","6:20","6:30","6:40","6:50", + "7:00am","7:10","7:20","7:30","7:40","7:50", + "8:00am","8:10","8:20","8:30","8:40","8:50", + "9:00am","9:10","9:20"] + } + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-style": { "hollow":true, "background-colour":"#a44a80", + "background-alpha": 0.4, "width":1, "tip":"#x_label#
#val#" }, + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ], + + "tooltip":{ + "shadow":false, + "stroke":5, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + }, + + "y_axis":{ + "steps": 1, + "min": 0, + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/x-labels-user-x.txt b/pacotes/openflashchart/data-files/x-labels-user-x.txt new file mode 100644 index 0000000..8776ebe --- /dev/null +++ b/pacotes/openflashchart/data-files/x-labels-user-x.txt @@ -0,0 +1,54 @@ +{ + "title":{ + "text":"X Labels - Min 5 - User Specified Locations Formatted", + "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + + "x_axis":{ + "steps": 1, "min" : 5, "max":50, + "labels": { + "text":"lbl #val#", + "labels": [ + {"x":6}, + {"x":14}, + { + "x":31, + "text":"override #val#", + "grid-colour":"#FF0000", + "colour":"#d00000", + "rotate": 45, + "size":14, + "align": "center" + } + ] + } + }, + + "elements":[ + { + "type": "line_hollow", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 1, + "tip": "#x_label#
#val#", + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ], + + "tooltip":{ + "shadow":false, + "stroke":5, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + }, + + "y_axis":{ + "max": 3 + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/y-axis-auto-steps.txt b/pacotes/openflashchart/data-files/y-axis-auto-steps.txt new file mode 100644 index 0000000..515a38b --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-auto-steps.txt @@ -0,0 +1,41 @@ +{ + "title":{ + "text":"Area Chart", + "style":"{font-size: 30px;}" + }, + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "text": "Page views", + "width": 3, + "font-size": 10, + "dot-size": 7, + "values" : [0,30000,40000,50000] + } + ], + + "y_axis":{ + "stroke": 1, + "tick-length": 10, + "colour": "#202020", + "grid-colour": "#00ff00", + "grid-visible": false, + "offset": false, + "visible": true, + "labels": { + "text": "left #val#", + "colour": "#DD30DD", + "size": 12 + } + } + +} diff --git a/pacotes/openflashchart/data-files/y-axis-big.txt b/pacotes/openflashchart/data-files/y-axis-big.txt new file mode 100644 index 0000000..f308d6f --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-big.txt @@ -0,0 +1,43 @@ +{ + "title":{ + "text":"Area Chart", + "style":"{font-size: 30px;}" + }, + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "text": "Page views", + "width": 3, + "font-size": 10, + "dot-size": 7, + "values" : [0,30000,40000,50000] + } + ], + + "y_axis":{ + "stroke": 1, + "tick-length": 10, + "colour": "#202020", + "grid-colour": "#00ff00", + "grid-visible": false, + "offset": false, + "max": 100000, + "visible": true, + "steps": 2, /* <-- ERROR: this gets changed by the chart */ + "labels": { + "text": "left #val#", + "colour": "#DD30DD", + "size": 12 + } + } + +} diff --git a/pacotes/openflashchart/data-files/y-axis-fix-this-bug.txt b/pacotes/openflashchart/data-files/y-axis-fix-this-bug.txt new file mode 100644 index 0000000..edeb845 --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-fix-this-bug.txt @@ -0,0 +1,36 @@ +{ + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "text": "Page views", + "width": 3, + "font-size": 10, + "dot-size": 7, + "values" : [1000,2000,5000,10000,20000,30000,39000] + } + ], + + + "y_axis":{ + "max": 40000, + "steps": 10000, + "labels": { + "text": "£$#val#%" + } + }, + + "num_decimals": 3, + "is_fixed_num_decimals_forced": true, + "is_decimal_separator_comma": true, + "is_thousand_separator_disabled": true + +} diff --git a/pacotes/openflashchart/data-files/y-axis-format-labels.txt b/pacotes/openflashchart/data-files/y-axis-format-labels.txt new file mode 100644 index 0000000..35216ab --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-format-labels.txt @@ -0,0 +1,38 @@ +{ + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "text": "Page views", + "width": 3, + "font-size": 10, + "dot-size": 7, + "values" : [0,0.37,0.73,1.07,1.36,1.59,1.77,1.87,1.89,1.85,1.72,1.53,1.28,0.97,0.63,0.26,-0.11,-0.48,-0.84,-1.16,-1.43,-1.65,-1.80,-1.88,-1.89,-1.82,-1.67,-1.46,-1.19,-0.88] + } + ], + + + "y_axis":{ + "stroke": 1, + "tick-length": 3, + "colour": "#d09090", + "grid-colour": "#00ff00", + "max": 40000, + "visible": true, + "steps": 10000 + }, + + "num_decimals": 3, + "is_fixed_num_decimals_forced": true, + "is_decimal_separator_comma": true, + "is_thousand_separator_disabled": true + +} diff --git a/pacotes/openflashchart/data-files/y-axis-labels-step.txt b/pacotes/openflashchart/data-files/y-axis-labels-step.txt new file mode 100644 index 0000000..a6f005b --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-labels-step.txt @@ -0,0 +1,67 @@ +{ + "elements": [ + { + "type": "bar", + "values": [ 6, 10, 12.5, 6, 9 ], + "tip": "Fund 1 Value:#val#", + "colour": "#fff100", + "text": "Fund 1", + "font-size": 12 + }, + { + "type": "bar", + "values": [ 4, -6, 3, 3, 6.4 ], + "tip": "Fund 2 Value:#val#", + "colour": "#ff0000", + "text": "Fund 2", + "font-size": 12 + }, + { + "type": "line", + "values": [ 8, 9, 10, 4, 5.1 ], + "halo-size": 0, + "width": 2, + "dot-size": 5, + "colour": "#000000", + "text": "S&P 500", + "font-size": 12 + }, + { + "type": "shape", + "colour": "#ff0000", + "values": [ { "x": -0.5, "y": 0 }, { "x": 5, "y": 0 }, { "x": 5, "y": -0.1 }, { "x": -0.5, "y": -0.1 } ] + } + ], + + "title": { + "text": "Example Chart", + "style": "{font-size: 18px; color: #ff0000;font-weight: bold;padding: 10px; text-align: center;font-family: Verdana, Arial;}" + }, + + "bg_colour": "#ffffff", + + "x_axis": + { + "colour": "#ffffff", + "grid-colour": "#ffffff", + "labels": { "colour": "#ff0000" } + }, + + "y_axis": + { + "min": -8, + "max": 16, + "steps": 2, + "grid-colour": "#ffffff", + "colour": "#CCCCCC", + "labels":{ + "labels":[ "-8%", "error", "-6%", "x", "-4%", "x", "-2%", "x", "0%", "x", "2%", "x", "4%", "x", "6%", "x", "8%", "x", "10%", "x", "12%", "x", "14%", "x", "16%" ] + } + }, + + "y_legend": + { + "text": "Percentage of Gain\/Loss", + "style": "{font-size: 14px; color: #ff0000;padding: 5px;font-family: Verdana, Arial;}" + } +} diff --git a/pacotes/openflashchart/data-files/y-axis-labels-user-y.txt b/pacotes/openflashchart/data-files/y-axis-labels-user-y.txt new file mode 100644 index 0000000..8504669 --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-labels-user-y.txt @@ -0,0 +1,69 @@ +{ + "title":{ + "text":"Y Labels - User Specified Locations", + "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + + "x_axis_":{ "steps": 5 }, + + "y_axis":{ + "min" : 0, "max":3, + "rotate":"vertical", + "labels": { + "text":"left #val#", + "colour":"#DD30DD", + "size":12, + "labels": [ + {"y":0.25}, + {"y":1.685}, + {"y":2.45, "text":"override #val#", "colour":"#44AA44", "size":10, "rotate":30}, + {"y":3} + ] + } + }, + + "y_axis_right":{ + "min" : 0, "max":10, + "rotate":"vertical", + "labels": { + "text":"right #val#", + "colour":"#30AA30", + "size":10, + "labels": [ + {"y":0}, + {"y":5}, + {"y":7.5, "text":"7.5: #val#", "colour":"#4444AA", "size":12, "rotate":""}, + {"y":10} + ] + } + }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "tip": "#x_label#
#val#", + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + }, + { + "type": "line", + "colour": "#6A7300", + "width": 2, + "tip": "#x_label#
#val#", + "axis": "right", + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ], + + "tooltip":{ + "shadow":false, + "stroke":5, + "colour":"#00d000", + "background":"#d0d0ff", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/y-axis-no-grid.txt b/pacotes/openflashchart/data-files/y-axis-no-grid.txt new file mode 100644 index 0000000..d9bf22b --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-no-grid.txt @@ -0,0 +1,43 @@ +{ + "title":{ + "text":"Area Chart", + "style":"{font-size: 30px;}" + }, + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "text": "Page views", + "width": 3, + "font-size": 10, + "dot-size": 7, + "values" : [ + 0,0.37,0.73,1.07,1.36,1.59,1.77, + 1.87,1.89,1.85,1.72,1.53,1.28,0.97, + 0.63,0.26,-0.11,-0.48,-0.84,-1.16, + -1.43,-1.65,-1.80,-1.88,-1.89,-1.82, + -1.67,-1.46,-1.19,-0.88] + } + ], + + "y_axis":{ + "stroke": 4, + "tick-length": 10, + "colour": "#d09090", + "grid-colour": "#00ff00", + "grid-visible": false, + "offset": false, + "min": -4, + "max": 4, + "visible": true, + "steps": 2 + } +} diff --git a/pacotes/openflashchart/data-files/y-axis-no-title-no-offset-right.txt b/pacotes/openflashchart/data-files/y-axis-no-title-no-offset-right.txt new file mode 100644 index 0000000..1fb3e13 --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-no-title-no-offset-right.txt @@ -0,0 +1,36 @@ +{ + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "width": 3, + "dot-size": 7, + "axis": "right", + "values" : [0,0.37,0.73,1.07,1.36,1.59,1.77,1.87,1.89,1.85,1.72,1.53,1.28,0.97,0.63,0.26,-0.11,-0.48,-0.84,-1.16,-1.43,-1.65,-1.80,-1.88,-1.89,-1.82,-1.67,-1.46,-1.19,-0.88] + } + ], +"y_axis_right":{ + "stroke": 1, + "tick-length": 3, + "colour": "#d09090", + "grid-colour": "#00ff00", + "offset": false, + "min": -4, + "max": 4, + "visible": true, + "steps": 1 + }, + + "y_axis":{ + "visible": false + } + +} diff --git a/pacotes/openflashchart/data-files/y-axis-no-title-no-offset.txt b/pacotes/openflashchart/data-files/y-axis-no-title-no-offset.txt new file mode 100644 index 0000000..cf20bcf --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-no-title-no-offset.txt @@ -0,0 +1,32 @@ +{ + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "width": 3, + "dot-size": 7, + "values" : [0,0.37,0.73,1.07,1.36,1.59,1.77,1.87,1.89,1.85,1.72,1.53,1.28,0.97,0.63,0.26,-0.11,-0.48,-0.84,-1.16,-1.43,-1.65,-1.80,-1.88,-1.89,-1.82,-1.67,-1.46,-1.19,-0.88] + } + ], + "y_axis":{ + "stroke": 1, + "tick-length": 3, + "colour": "#d09090", + "grid-colour": "#00ff00", + "offset": false, + "min": -4, + "max": 4, + "visible": true, + "steps": 1 + } + + +} diff --git a/pacotes/openflashchart/data-files/y-axis-no-title-offset.txt b/pacotes/openflashchart/data-files/y-axis-no-title-offset.txt new file mode 100644 index 0000000..a1b785a --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-no-title-offset.txt @@ -0,0 +1,31 @@ +{ + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "width": 3, + "values" : [0,0.37,0.73,1.07,1.36,1.59,1.77,1.87,1.89,1.85,1.72,1.53,1.28,0.97,0.63,0.26,-0.11,-0.48,-0.84,-1.16,-1.43,-1.65,-1.80,-1.88,-1.89,-1.82,-1.67,-1.46,-1.19,-0.88] + } + ], + + "y_axis":{ + "stroke": 1, + "tick-length": 3, + "colour": "#d09090", + "grid-colour": "#00ff00", + "offset": true, + "min": -4, + "max": 4, + "visible": true, + "steps": 1 + } + +} diff --git a/pacotes/openflashchart/data-files/y-axis-offset-tiny-numbers.txt b/pacotes/openflashchart/data-files/y-axis-offset-tiny-numbers.txt new file mode 100644 index 0000000..9ad6ec4 --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-offset-tiny-numbers.txt @@ -0,0 +1,38 @@ +{ + "title":{ + "text":"Area Chart", + "style":"{font-size: 30px;}" + }, + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.8, + "text": "Page views", + "width": 3, + "font-size": 10, + "dot-size": 7, + "values" : [2.1,2.2] + } + ], + + "y_axis":{ + "stroke": 4, + "tick-length": 10, + "colour": "#000000", + "grid-colour": "#d0d0d0", + "offset": true, + "min": 2, + "max": 3, + "visible": true, + "steps": 0.1 + } + +} diff --git a/pacotes/openflashchart/data-files/y-axis-right-all-bars.txt b/pacotes/openflashchart/data-files/y-axis-right-all-bars.txt new file mode 100644 index 0000000..8634af4 --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-right-all-bars.txt @@ -0,0 +1,89 @@ +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + }, + + "elements":[ + { + "type": "bar", + "colour": "#9933CC", + "values" : [7,0,-7], + "axis": "right" + }, + { + "type": "bar_sketch", + "colour": "#9933CC", + "values" : [7,0,-7], + "axis": "right" + }, + { + "type": "bar_glass", + "colour": "#9933CC", + "values" : [7,0,-7], + "axis": "right" + }, + { + "type": "bar_3d", + "colour": "#9933CC", + "values" : [7,0,-7], + "axis": "right" + }, + { + "type": "bar_filled", + "colour": "#9933CC", + "values" : [7,0,-7], + "axis": "right" + }, + { + "type": "bar_cylinder", + "colour": "#9933CC", + "values" : [7,0,-7], + "axis": "right" + }, + { + "type": "bar_cylinder_outline", + "colour": "#3030FF", + "values" : [7,0,-7], + "axis": "right" + }, + { + "type": "bar_round_glass", + "colour": "#CC0000", + "values" : [7,0,-7], + "axis": "right" + }, + { + "type": "bar_round", + "colour": "#CC0000", + "values" : [7,0,-7], + "axis": "right" + }, + { + "type": "bar_dome", + "colour": "#CCCC00", + "values" : [7,0,-7], + "axis": "right" + } + ], + + "y_axis":{ + "tick-length": 3, + "colour": "#d000d0", + "grid-visible": false, + "offset": 0, + "min": -10, + "max": 10 + }, + + "y_axis_right":{ + "tick-length": 6, + "colour": "#d0d0d0", + "of--fset": 0, + "min": -17, + "max": 17, + "grid-visible": true, + "grid-colour": "#D0D0FF" + } +} + diff --git a/pacotes/openflashchart/data-files/y-axis-right-all-lines-10-20.txt b/pacotes/openflashchart/data-files/y-axis-right-all-lines-10-20.txt new file mode 100644 index 0000000..5887277 --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-right-all-lines-10-20.txt @@ -0,0 +1,42 @@ +{ + "title":{ + "text":"Area Chart", + "style":"{font-size: 30px;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#CC3399", + "values" : [12,12], + "axis": "right" + }, +{ + "type": "line", + "colour": "#736AFF", + "line-style": {"style":"dash","on":10,"off":5}, + "values" : [13,13], + "axis": "right" + }, + { + "type": "line", + "values" : [14,14] , + "axis": "right" + } + ], + + "y_axis":{ + "min": 10, + "max": 20, + "grid-visible": true, + "grid-colour": "#FFD0D0" + }, + + "y_axis_right":{ + "min": 10, + "max": 20, + "grid-visible": true, + "grid-colour": "#D0D0FF" + } + +} diff --git a/pacotes/openflashchart/data-files/y-axis-right-all-lines.txt b/pacotes/openflashchart/data-files/y-axis-right-all-lines.txt new file mode 100644 index 0000000..39555ed --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-right-all-lines.txt @@ -0,0 +1,40 @@ +{ + "title":{ + "text":"Area Chart", + "style":"{font-size: 30px;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#CC3399", + "values" : [2,2], + "axis": "right" + }, +{ + "type": "line", + "colour": "#736AFF", + "line-style": {"style":"dash","on":10,"off":5}, + "values" : [3,3], + "axis": "right" + }, + { + "type": "line", + "values" : [4,4] , + "axis": "right" + } + ], + + "y_axis":{ + "max": 4, + "grid-visible": true, + "grid-colour": "#FFD0D0" + }, + + "y_axis_right":{ + "max": 5, + "grid-visible": true, + "grid-colour": "#D0D0FF" + } + +} diff --git a/pacotes/openflashchart/data-files/y-axis-right.txt b/pacotes/openflashchart/data-files/y-axis-right.txt new file mode 100644 index 0000000..efbacc7 --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-right.txt @@ -0,0 +1,34 @@ +{ + "title":{ + "text":"Right Y Axis", + "style":"{font-size: 30px;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#CC3399", + "values" : [0,0.37,0.73,1.07,1.36,1.59,1.77] + }, + { + "type": "line", + "colour": "#343399", + "values" : [0,0.37,0.73,1.07,1.36,1.59,1.77], + "axis": "right" + } + ], + + "y_axis":{ + "max": 2, + "grid-visible": true, + "grid-colour": "#CC3399", + "colour": "#CC3399" + }, + + "y_axis_right":{ + "max": 3, + "grid-visible": true, + "grid-colour": "#0000FF", + "colour": "#0000FF" + } +} diff --git a/pacotes/openflashchart/data-files/y-axis-rotate-labels.txt b/pacotes/openflashchart/data-files/y-axis-rotate-labels.txt new file mode 100644 index 0000000..11d5fe0 --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-rotate-labels.txt @@ -0,0 +1,44 @@ +{ + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "text": "Page views", + "width": 3, + "font-size": 10, + "dot-size": 7, + "values" : [0,0.37,0.73,1.07,1.36,1.59,1.77,1.87,1.89,1.85,1.72,1.53,1.28,0.97,0.63,0.26,-0.11,-0.48,-0.84,-1.16,-1.43,-1.65,-1.80,-1.88,-1.89,-1.82,-1.67,-1.46,-1.19,-0.88] + } + ], + + "x_axis":{ + "max":30, + "labels":{ + "labels":["0.00","0.38","0.74","1.07","1.36","1.60","1.77","1.87","1.90","1.85","1.73","1.54", + "1.28","0.98","0.64","0.27","-0.11","-0.49","-0.84","-1.16","-1.44","-1.66","-1.81", + "-1.89","-1.89","-1.82","-1.68","-1.47","-1.20","-0.88"] + } + }, + + "y_axis":{ + "stroke": 1, + "tick-length": 3, + "colour": "#d09090", + "grid-colour": "#00ff00", + "offset": 1, + "min": -4, + "max": 4, + "visible": true, + "steps": 1, + "rotate": "vertical" + } + +} diff --git a/pacotes/openflashchart/data-files/y-axis-upside-down-offset.txt b/pacotes/openflashchart/data-files/y-axis-upside-down-offset.txt new file mode 100644 index 0000000..3e8ab3a --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-upside-down-offset.txt @@ -0,0 +1,33 @@ +{ + "elements": [ + { "type": "line", + "width": 2, + "colour": "#195215", + "values": [ + 4, 7, 6, 7, 7, 19, 23, 19, 17, 14, 15, 12, 13, 17, 17, 10 ] +}, + + { + "type": "line", + "width": 2, + "colour": "#8523171", + "values": [ 8, 5, 3, 4, 3, 10, 6, 4, 4, 5, 4, 3, 10, 9, 3, 8 ] }, + + { + "type": "line", + "width": 2, + "colour": "#8639811", + "values": [ + 9, 9, 18, 17, 17, 15, 12, 11, 8, 11, 11, 10, 8, 6, 5, 9 ] }, + { + "type": "line", + "width": 2, + "colour": "#1972900", + "values": [ null, null, 21, 14, 12, 7, 4, 3, 2, 2, 8, 18, 15, 12, 14, 10 ] } + + ], + + "title": { "text": "Three lines example" }, + "y_axis": { "min": 25, "max": 0, "steps": 5, "offset": true }, + + "bg_colour": "#FFFFFF" } \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/y-axis-upside-down.txt b/pacotes/openflashchart/data-files/y-axis-upside-down.txt new file mode 100644 index 0000000..0ca82c7 --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis-upside-down.txt @@ -0,0 +1,33 @@ +{ + "elements": [ + { "type": "line", + "width": 2, + "colour": "#195215", + "values": [ + 4, 7, 6, 7, 7, 19, 23, 19, 17, 14, 15, 12, 13, 17, 17, 10 ] +}, + + { + "type": "line", + "width": 2, + "colour": "#8523171", + "values": [ 8, 5, 3, 4, 3, 10, 6, 4, 4, 5, 4, 3, 10, 9, 3, 8 ] }, + + { + "type": "line", + "width": 2, + "colour": "#8639811", + "values": [ + 9, 9, 18, 17, 17, 15, 12, 11, 8, 11, 11, 10, 8, 6, 5, 9 ] }, + { + "type": "line_hollow", + "width": 2, + "colour": "#1972900", + "values": [ null, null, 21, 14, 12, 7, 4, 3, 2, 2, 8, 18, 15, 12, 14, 10 ] } + + ], + + "title": { "text": "Three lines example" }, + "y_axis": { "min": 25, "max": 0, "steps": 5 }, + + "bg_colour": "#FFFFFF" } \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/y-axis.txt b/pacotes/openflashchart/data-files/y-axis.txt new file mode 100644 index 0000000..dc8dc78 --- /dev/null +++ b/pacotes/openflashchart/data-files/y-axis.txt @@ -0,0 +1,38 @@ +{ + "title":{ + "text":"Area Chart", + "style":"{font-size: 30px;}" + }, + + "y_legend":{ + "text":"OFC", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "area", + "colour": "#CC3399", + "fill": "#343399", + "fill-alpha": 0.5, + "text": "Page views", + "width": 3, + "font-size": 10, + "dot-size": 7, + "values" : [0,0.37,0.73,1.07,1.36,1.59,1.77,1.87,1.89,1.85,1.72,1.53,1.28,0.97,0.63,0.26,-0.11,-0.48,-0.84,-1.16,-1.43,-1.65,-1.80,-1.88,-1.89,-1.82,-1.67,-1.46,-1.19,-0.88] + } + ], + + "y_axis":{ + "stroke": 4, + "tick-length": 10, + "colour": "#d09090", + "grid-colour": "#00ff00", + "offset": false, + "min": -4, + "max": 4, + "visible": true, + "steps": 2 + } + +} diff --git a/pacotes/openflashchart/data-files/y-labels-auto-formatted.txt b/pacotes/openflashchart/data-files/y-labels-auto-formatted.txt new file mode 100644 index 0000000..3ea1c6e --- /dev/null +++ b/pacotes/openflashchart/data-files/y-labels-auto-formatted.txt @@ -0,0 +1,42 @@ +{ + "title":{ + "text":"Y Labels - Autmatic with Formatting", + "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + + "x_axis":{ "steps": 5 }, + + "y_axis":{ + "steps": 0.5, "min" : 0, "max":3, + "rotate":"vertical", + "labels": { + "text":"left #val#", + "colour":"#DD3030", + "size":12 + } + }, + + "y_axis_right":{ + "steps": 1, "min" : 3, "max":0, + "rotate":"vertical", + "labels": { + "text":"right #val#", + "colour":"#DD30DD", + "size":10 + } + }, + + "elements":[ + { + "type": "line_hollow", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-size": 4, + "halo-size": 1, + "tip": "#x_label#
#val#", + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/y-labels-auto-labelstyle.txt b/pacotes/openflashchart/data-files/y-labels-auto-labelstyle.txt new file mode 100644 index 0000000..1878644 --- /dev/null +++ b/pacotes/openflashchart/data-files/y-labels-auto-labelstyle.txt @@ -0,0 +1,35 @@ +{ + "title":{ + "text":"Y Labels - Automatic with Label Style", + "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" + }, + + "x_axis":{ "steps": 5 }, + + "y_label__label_style":"12,#669999", + "y_axis":{ "steps": 0.5, "min" : 0, "max":3 }, + + "y_label_2__label_style":"12,#DD3030", + "y_axis_right":{ "steps": 1, "min" : 3, "max":0 }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "tip": "#x_label#
#val#", + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ], + + "tooltip":{ + "shadow":true, + "stroke":2, + "colour":"#404040", + "background":"#000000", + "title":"{font-size: 14px; color: #905050;}", + "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/data-files/y-labels-auto.txt b/pacotes/openflashchart/data-files/y-labels-auto.txt new file mode 100644 index 0000000..0f1a0a0 --- /dev/null +++ b/pacotes/openflashchart/data-files/y-labels-auto.txt @@ -0,0 +1,30 @@ +{ + "title":{ + "text":"Y Labels - Automatically Generated Labels" + }, + + "x_axis":{ "steps": 5 }, + + "y_axis":{ "steps": 0.5, "min" : 0, "max":3 }, + + "y_axis_right":{ "steps": 1, "min" : 3, "max":0 }, + + "elements":[ + { + "type": "line", + "colour": "#736AFF", + "width": 2, + "tip": "#x_label#
#val#", + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + }, + + { + "type": "line", + "axis": "right", + "colour": "#909090", + "width": 2, + "tip": "#x_label#
#val#", + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] + } + ] +} \ No newline at end of file diff --git a/pacotes/openflashchart/google-webtoolkit-OFCGWT/README.txt b/pacotes/openflashchart/google-webtoolkit-OFCGWT/README.txt new file mode 100644 index 0000000..c4e8025 --- /dev/null +++ b/pacotes/openflashchart/google-webtoolkit-OFCGWT/README.txt @@ -0,0 +1,3 @@ +Google Webtoolkit Open Flash Chart library is here: + +http://code.google.com/p/ofcgwt/ diff --git a/pacotes/openflashchart/google-webtoolkit-OFCGWT/ofcgwt - Google Code.URL b/pacotes/openflashchart/google-webtoolkit-OFCGWT/ofcgwt - Google Code.URL new file mode 100644 index 0000000..3aaa9c9 --- /dev/null +++ b/pacotes/openflashchart/google-webtoolkit-OFCGWT/ofcgwt - Google Code.URL @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=http://code.google.com/p/ofcgwt/ diff --git a/pacotes/openflashchart/js-ofc-library/ofc.js b/pacotes/openflashchart/js-ofc-library/ofc.js new file mode 100644 index 0000000..c9d7e3c --- /dev/null +++ b/pacotes/openflashchart/js-ofc-library/ofc.js @@ -0,0 +1,38 @@ +function findSWF(movieName) { + if (navigator.appName.indexOf("Microsoft")!= -1) { + return window[movieName]; + } else { + return document[movieName]; + } +} + + +/** + * @param index as integer. + * + * Returns a CLONE of the chart with one of the elements removed + */ +function chart_remove_element(chart, index) +{ + + // global_showing_old_data = !global_showing_old_data; + + // clone the chart + var modified_chart = {}; + jQuery.extend(modified_chart, chart); + + // remove the old data from the chart: + var element = modified_chart.elements[1]; + var elements = new Array(); + var c=0; + for(i=0; i + Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis + This software is released under the MIT License +*/ +var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write(" + +see flash-variable.html for an example of this. + +NOTE: + + - The path of my .swf will differ from yours. + - I am using SWFObject (this is in the .zip file in the folder js) + +================== +3. From Javascript +================== + +If the URL does not contain a varibale 'ofc' the next thing it will +try is calling the Javascript function open_flash_chart_data(), so +you may have: + +function open_flash_chart_data() +{ + alert( 'reading data' ); + return JSON.stringify(data); +} + +This function should return a valid JSON string. + +see json-test.html for an example of this. + +NOTE: + +- I am using the wonderful javascript JSON converter json2.js + this is in the .zip file in js/json/json2.js, but take a look + at www.json.org for more examples + +============================= +3. You can push JSON into OFC +============================= + +Using Javascript you can push data into OFC via an external interface. +This is really easy. When OFC has loaded and tried 1, 2 and 3 above and +failed to find any data it will try to call the Javascript function +ofc_ready(): + +function ofc_ready() +{ + alert('ofc_ready'); + tmp = findSWF("ofc"); + x = tmp.load( JSON.stringify(ofc) ); +} + +In this function you can push a JSON string into OFC using +the interface 'load()', in the above function we find the chart +then call load and pass in our JSON string. + +This is useful for AJAX pages. + +see json-test-2.html for an example of this. + +===================== + Data format: JSON +===================== + +The data must be in JSON format. The basic JSON obect is: + +{} + +a more complete example with HTML and Javascript: + +<script type="text/javascript"> + +var data = {}; + +</script> + + +Put all other objects inside this. For example the JSON object +with a title looks like this: + +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + } +} + +This is what you would save into a data file. Below is the same data, +but this time as part of the javascript in your web page: + + + +This all sounds rather complex, but it isn't really. This is what is going on +inside OFC when it reads a data file: + + json_string = load file from URL() + json_object = parse string( json_string ) + display chart( json_object ) + +The same thing happens when you pass in a JSON object from Javascript, +to create the JSON string, you call: + + JSON.stringify(ofc) + +and pass the string into OFC: + + tmp = findSWF("ofc"); + x = tmp.load( JSON.stringify(ofc) ); + +then inside OFC the same functions are called: + + external interface load( json_string ) { + json_object = parse string( json_string ) + display chart( json_object ) + } + +========== +Tutorial 1 +========== + +So, lets go. + +Copy the .swf to the root of your web site. + +Now take a copy of 'flash-variable.html' and put this into +the root of the web site. + +Copy the Javascript files to the root of your site. + +Next take the example data file 'data.txt' and also put this +into the root. + +Edit 'flash-variable.html', find the line: + + var so = new SWFObject("../open-flash-chart/open-flash-chart.swf", "ofc", "250", "200", "9", "#FFFFFF"); + +and change it to: + + var so = new SWFObject("open-flash-chart.swf", "ofc", "250", "200", "9", "#FFFFFF"); + +also change all the Javascript includes so they work. + +Now browse to: + + http://example.com/flash-variable.html + +this should fail. + + http://example.com/flash-variable.html?ofc=data.txt + +this should work. + +========== +Tutorial 2 +========== + +Try editing the data file. Take a look at the example data files. + + +================ +Title (optional) +================ +All attributes are optional. +text: string, the title +style: string, the CSS style + +{ + "title":{ + "text": "Many data lines", + "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" + } +} + +=================== +Y Legend (optional) +=================== +All attributes are optional. +text: string, the title for the Y axis +style: string, a CSS string + +{ + "y_legend":{ + "text": "Open Flash Chart", + "style": "{color: #736AFF; font-size: 12px;}" + } +} + +======== +Elements +======== +The elements attribute is an array of generic objects. +Each object is the type of chart (line, bar, scatter etc.) + +{ + "elements":[ + { + "type": "bar", + "alpha": 0.5, + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,7,6,9,7] + }, + { + "type": "bar", + "alpha": 0.5, + "colour": "#CC9933", + "text": "Page views 2", + "font-size": 10, + "values" : [9,6,7,9,5,7,6,9,7] + } + ] +} + +================= +X Axis (optional) +================= +This object is optional, if it is not present the chart will show a default +X axis. +All attributes are optional. + +stroke : number, the width of the line +tick-height : number, the height of the ticks +colour : string, the colour of the line +offset: boolean, x axis min (usually 0) is offset, used in bar charts +grid-colour: string, colour of the grid lines +3d: boolean, is it 3D +steps: show every n ticks +labels: array of strings, the labels of each X point + +Example: +{ + "x_axis":{ + "stroke":1, + "tick_height":10, + "colour":"#d000d0", + "grid_colour":"#00ff00", + "labels": ["January","February","March","April","May","June","July","August","Spetember"] + } +} + +=============== +Y Axis optional +=============== +This object is optional, if it is not present the chart will show a default +Y axis. +All attributes are optional. + +Example: +{ + "y_axis":{ + "stroke": 4, + "tick_length": 3, + "colour": "#d000d0", + "grid_colour": "#00ff00", + "offset": 0, + "max": 20 + } +} + +============ +Elements.bar +============ +A bar chart. Must be inside the elements array. + +type: string, must be 'bar' +alpha: number, between 0 (transparent) and 1 (opaque) +colour: string, CSS colour +text: string, the key +font-size: number, size of the key text +values: array of numbers, height of each bar + +Example: +{ + "elements":[ + { + "type": "bar", + "alpha": 0.5, + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [9,6,7,9,5,7,6,9,7] + } + ] +} + +============ +Elements.pie +============ +A pie chart. Must be inside the elements array. + +type: string, must be 'pie' +start-angle: number, the angle of the first pie slice +colours: array of strings, CSS colour +alpha: number, between 0 (transparent) and 1 (opaque) +stroke: number, the outline width +animate: boolean, animate the pie chart +values: array of objects, value of each pie slice. May be a number or a slice object + +Example: +{ + "elements":[ + { + "type": "pie", + "start-angle": 180, + "colours": ["#d01f3c","#356aa0","#C79810","#73880A","#D15600","#6BBA70"], + "alpha": 0.6, + "stroke": 2, + "animate": 1, + "values" : [0,2,{"value":0,"text":"zero"},2,6] + } + ] +} + +============= +Elements.hbar +============= +Horizontal Bar chart + +values: array of objects. Each value must have a "right" and an optional "left" value + + +Example: +{ + "elements":[ + { + "type": "hbar", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [{"right":10},{"right":15},{"left":13,"right":17}] + } + ] +} + +================= +Elements.line_dot +================= +Line chart + +values: Array of numbers: + +Example: +{ + "elements":[ + { + "type": "line_dot", + "colour": "#736AFF", + "text": "Avg. wave height (cm)", + "font-size": 10, + "width": 2, + "dot-size": 4, + "values" : [1.5,1.69,1.88,2.06,2.21,2.34,null,2.35,2.23,2.08] + } + ] +} + +================= +Elements.line* +================= +Just a quick note of the 3 different line types: + +Example: +{ + "title":{ + "text":"Many data lines", + "style":"{font-size: 30px;}" + }, + + "y_legend":{ + "text":"Open Flash Chart", + "style":"{font-size: 12px; color:#736AFF;}" + }, + + "elements":[ + { + "type": "line", + "colour": "#9933CC", + "text": "Page views", + "width": 2, + "font-size": 10, + "dot-size": 6, + "values" : [15,18,19,14,17,18,15,18,17] + }, + { + "type": "line_dot", + "colour": "#CC3399", + "width": 2, + "text": "Downloads", + "font-size": 10, + "dot-size": 5, + "values" : [10,12,14,9,12,13,10,13,12] + }, + { + "type": "line_hollow", + "colour": "#80a033", + "width": 2, + "text": "Bounces", + "font-size": 10, + "dot-size": 6, + "values" : [5,7,9,7,4,6,1,2,5] + } + ], + + "y_axis":{ + "max": 20 + }, + + "x_axis":{ + "steps": 2, + "labels": ["January","February","March","April","May","June","July","August","September"] + } +} + +======== +Examples +======== + +Here is a simple JSON object that contains a horizontal bar chart: + +{ + "title":{ + "text":"HBar Map X values", + "style":"{font-size: 20px; font-family: Verdana; text-align: center;}" + }, + + "elements":[ + { + "type": "hbar", + "colour": "#9933CC", + "text": "Page views", + "font-size": 10, + "values" : [{"right":10},{"right":15},{"left":13,"right":17}] + } + ], + "x_axis":{ + "min": 0, + "max": 20, + "offset": 0, + "labels": ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v"] + }, + "y_axis":{ + "stroke": 14, + "tick_length": 30, + "colour": "#d09090", + "grid_colour": "#00ff00", + "offset": 1, + "labels": ["slashdot.org","digg.com","reddit.com"] + } +} diff --git a/pacotes/openflashchart/open-flash-chart/main.as b/pacotes/openflashchart/open-flash-chart/main.as new file mode 100644 index 0000000..70df5c7 --- /dev/null +++ b/pacotes/openflashchart/open-flash-chart/main.as @@ -0,0 +1,911 @@ + +package { + import charts.series.Element; + import charts.Factory; + import charts.ObjectCollection; + import elements.menu.Menu; + import charts.series.has_tooltip; + import flash.events.Event; + import flash.events.MouseEvent; + + // for image upload: + import flash.events.ProgressEvent; + import flash.net.URLVariables; + + import flash.display.Sprite; + import flash.net.URLLoader; + import flash.net.URLRequest; + import flash.display.StageAlign; + import flash.display.StageScaleMode; + import string.Utils; + import global.Global; + import com.serialization.json.JSON; + import flash.external.ExternalInterface; + import flash.ui.ContextMenu; + import flash.ui.ContextMenuItem; + import flash.events.IOErrorEvent; + import flash.events.ContextMenuEvent; + import flash.system.System; + + import flash.display.LoaderInfo; + + // export the chart as an image + import com.adobe.images.PNGEncoder; + import com.adobe.images.JPGEncoder; + import mx.utils.Base64Encoder; + // import com.dynamicflash.util.Base64; + import flash.display.BitmapData; + import flash.utils.ByteArray; + import flash.net.URLRequestHeader; + import flash.net.URLRequestMethod; + import flash.net.URLLoaderDataFormat; + import elements.axis.XAxis; + import elements.axis.XAxisLabels; + import elements.axis.YAxisBase; + import elements.axis.YAxisLeft; + import elements.axis.YAxisRight; + import elements.axis.RadarAxis; + import elements.Background; + import elements.labels.XLegend; + import elements.labels.Title; + import elements.labels.Keys; + import elements.labels.YLegendBase; + import elements.labels.YLegendLeft; + import elements.labels.YLegendRight; + + + public class main extends Sprite { + + public var VERSION:String = "2 Lug Wyrm Charmer"; + private var title:Title = null; + //private var x_labels:XAxisLabels; + private var x_axis:XAxis; + private var radar_axis:RadarAxis; + private var x_legend:XLegend; + private var y_axis:YAxisBase; + private var y_axis_right:YAxisBase; + private var y_legend:YLegendBase; + private var y_legend_2:YLegendBase; + private var keys:Keys; + private var obs:ObjectCollection; + public var tool_tip_wrapper:String; + private var sc:ScreenCoords; + private var tooltip:Tooltip; + private var background:Background; + private var menu:Menu; + private var ok:Boolean; + private var URL:String; // ugh, vile. The IOError doesn't report the URL + private var id:String; // chart id passed inf from user + private var chart_parameters:Object; + private var json:String; + + + public function main() { + this.chart_parameters = LoaderInfo(this.loaderInfo).parameters; + if( this.chart_parameters['loading'] == null ) + this.chart_parameters['loading'] = 'Loading data...'; + + var l:Loading = new Loading(this.chart_parameters['loading']); + this.addChild( l ); + + this.build_right_click_menu(); + this.ok = false; + + if( !this.find_data() ) + { + // no data found -- debug mode? + try { + var file:String = "../../data-files/y-axis-auto-steps.txt"; + this.load_external_file( file ); + + /* + // test AJAX calls like this: + var file:String = "../data-files/bar-2.txt"; + this.load_external_file( file ); + file = "../data-files/radar-area.txt"; + this.load_external_file( file ); + */ + } + catch (e:Error) { + this.show_error( 'Loading test data\n'+file+'\n'+e.message ); + } + } + + // inform javascript that it can call our reload method + this.addCallback("reload", reload); // mf 18nov08, line 110 of original 'main.as' + + // inform javascript that it can call our load method + this.addCallback("load", load); + + // inform javascript that it can call our post_image method + this.addCallback("post_image", post_image); + + // + this.addCallback("get_img_binary", getImgBinary); + + // more interface + this.addCallback("get_version", getVersion); + + // TODO: chanf all external to use this: + + // + // tell our external interface manager to pass out the chart ID + // with every external call. + // + if ( this.chart_parameters['id'] ) + { + var ex:ExternalInterfaceManager = ExternalInterfaceManager.getInstance(); + ex.setUp(this.chart_parameters['id']); + } + + // + // TODO: move this so it is called after set_the_stage is ready. + // + // tell the web page that we are ready + if( this.chart_parameters['id'] ) + this.callExternalCallback("ofc_ready", this.chart_parameters['id']); + else + this.callExternalCallback("ofc_ready"); + // + // + // + + this.set_the_stage(); + } + + private function addCallback(functionName:String, closure:Function): void { + + // the debug player does not have an external interface + // because it is NOT embedded in a browser + if (ExternalInterface.available) + ExternalInterface.addCallback(functionName, closure); + + } + + private function callExternalCallback(functionName:String, ... optionalArgs ): * { + + // the debug player does not have an external interface + // because it is NOT embedded in a browser + if (ExternalInterface.available) + return ExternalInterface.call(functionName, optionalArgs); + + } + + public function getVersion():String {return VERSION;} + + // public function getImgBinary():String { return Base64.encodeByteArray(image_binary()); } + public function getImgBinary():String { + + tr.ace('Saving image :: image_binary()'); + + var bmp:BitmapData = new BitmapData(this.stage.stageWidth, this.stage.stageHeight); + bmp.draw(this); + + var b64:Base64Encoder = new Base64Encoder(); + + var b:ByteArray = PNGEncoder.encode(bmp); + + // var encoder:JPGEncoder = new JPGEncoder(80); + // var q:ByteArray = encoder.encode(bmp); + // b64.encodeBytes(q); + + // + // + // + b64.encodeBytes(b); + return b64.toString(); + // + // commented out by J vander? why? + // return b64.flush(); + // + // + + + /* + var b64:Base64Encoder = new Base64Encoder(); + b64.encodeBytes(image_binary()); + tr.ace( b64 as String ); + return b64 as String; + */ + } + + + /** + * Called from the context menu: + */ + public function saveImage(e:ContextMenuEvent):void { + // ExternalInterface.call("save_image", this.chart_parameters['id']);// , getImgBinary()); + // ExternalInterface.call("save_image", getImgBinary()); + + // this just calls the javascript function which will grab an image from use + // an do something with it. + this.callExternalCallback("save_image", this.chart_parameters['id']); + } + + + private function image_binary() : ByteArray { + tr.ace('Saving image :: image_binary()'); + + var pngSource:BitmapData = new BitmapData(this.width, this.height); + pngSource.draw(this); + return PNGEncoder.encode(pngSource); + } + + // + // External interface called by Javascript to + // save the flash as an image, then POST it to a URL + // + //public function post_image(url:String, post_params:Object, callback:String, debug:Boolean):void { + public function post_image(url:String, callback:String, debug:Boolean):void { + + var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream"); + + //Make sure to use the correct path to jpg_encoder_download.php + var request:URLRequest = new URLRequest(url); + + request.requestHeaders.push(header); + request.method = URLRequestMethod.POST; + // + request.data = image_binary(); + + var loader:URLLoader = new URLLoader(); + loader.dataFormat = URLLoaderDataFormat.VARIABLES; + + /* + * i can't figure out how to make these work + * + var urlVars:URLVariables = new URLVariables(); + for (var key:String in post_params) { + urlVars[key] = post_params[key]; + } + */ + // base64: + // urlVars.b64_image_data = getImgBinary(); + // RAW: + // urlVars.b64_image_data = image_binary(); + + // request.data = urlVars; + + var id:String = ''; + if ( this.chart_parameters['id'] ) + id = this.chart_parameters['id']; + + if( debug ) + { + // debug the PHP: + flash.net.navigateToURL(request, "_blank"); + } + else + { + //we have to use the PROGRESS event instead of the COMPLETE event due to a bug in flash + loader.addEventListener(ProgressEvent.PROGRESS, function (e:ProgressEvent):void { + + tr.ace("progress:" + e.bytesLoaded + ", total: " + e.bytesTotal); + if ((e.bytesLoaded == e.bytesTotal) && (callback != null)) { + tr.aces('Calling: ', callback + '(' + id + ')'); + this.call(callback, id); + } + }); + + try { + loader.load( request ); + } catch (error:Error) { + tr.ace("unable to load:" + error); + } + + /* + var loader:URLLoader = new URLLoader(); + loader.dataFormat = URLLoaderDataFormat.BINARY; + loader.addEventListener(Event.COMPLETE, function(e:Event):void { + tr.ace('Saved image to:'); + tr.ace( url ); + // + // when the upload has finished call the user + // defined javascript function/method + // + ExternalInterface.call(callback); + }); + + loader.load( jpgURLRequest ); + */ + } + } + + + private function onContextMenuHandler(event:ContextMenuEvent):void + { + } + + // + // try to find some data to load, + // check the URL for a file name, + // + // + public function find_data(): Boolean { + + // var all:String = ExternalInterface.call("window.location.href.toString"); + var vars:String = this.callExternalCallback("window.location.search.substring", 1); + + if( vars != null ) + { + var p:Array = vars.split( '&' ); + for each ( var v:String in p ) + { + if( v.indexOf( 'ofc=' ) > -1 ) + { + var tmp:Array = v.split('='); + tr.ace( 'Found external file:' + tmp[1] ); + this.load_external_file( tmp[1] ); + // + // LOOK: + // + return true; + } + } + } + + if( this.chart_parameters['data-file'] ) + { + // tr.ace( 'Found parameter:' + parameters['data-file'] ); + this.load_external_file( this.chart_parameters['data-file'] ); + // + // LOOK: + // + return true; + + } + + var get_data:String = 'open_flash_chart_data'; + if( this.chart_parameters['get-data'] ) + get_data = this.chart_parameters['get-data']; + + var json_string:*; + + if( this.chart_parameters['id'] ) + json_string = this.callExternalCallback( get_data , this.chart_parameters['id']); + else + json_string = this.callExternalCallback( get_data ); + + + if( json_string != null ) + { + if( json_string is String ) + { + this.parse_json( json_string ); + + // + // We have loaded the data, so this.ok = true + // + this.ok = true; + // + // LOOK: + // + return true; + } + } + + return false; + } + + + // + // an external interface, used by javascript to + // reload JSON from a URL :: mf 18nov08 + // + public function reload( url:String ):void { + + var l:Loading = new Loading(this.chart_parameters['loading']); + this.addChild( l ); + this.load_external_file( url ); + } + + + private function load_external_file( file:String ):void { + + this.URL = file; + // + // LOAD THE DATA + // + var loader:URLLoader = new URLLoader(); + loader.addEventListener( IOErrorEvent.IO_ERROR, this.ioError ); + loader.addEventListener( Event.COMPLETE, xmlLoaded ); + + var request:URLRequest = new URLRequest(file); + loader.load(request); + } + + private function ioError( e:IOErrorEvent ):void { + + // remove the 'loading data...' msg: + this.removeChildAt(0); + var msg:ErrorMsg = new ErrorMsg( 'Open Flash Chart\nIO ERROR\nLoading test data\n' + e.text ); + msg.add_html( 'This is the URL that I tried to open:
'+this.URL+'' ); + this.addChild( msg ); + } + + private function show_error( msg:String ):void { + + // remove the 'loading data...' msg: + this.removeChildAt(0); + + var m:ErrorMsg = new ErrorMsg( msg ); + //m.add_html( 'Click here to open your JSON file: asd' ); + this.addChild(m); + } + + public function get_x_legend() : XLegend { + return this.x_legend; + } + + private function set_the_stage():void { + + // tell flash to align top left, and not to scale + // anything (we do that in the code) + this.stage.align = StageAlign.TOP_LEFT; + // + // ----- RESIZE ---- + // + // noScale: now we can pick up resize events + this.stage.scaleMode = StageScaleMode.NO_SCALE; + this.stage.addEventListener(Event.ACTIVATE, this.activateHandler); + this.stage.addEventListener(Event.RESIZE, this.resizeHandler); + this.stage.addEventListener(Event.MOUSE_LEAVE, this.mouseOut); + this.addEventListener( MouseEvent.MOUSE_OVER, this.mouseMove ); + } + + + private function mouseMove( event:Event ):void { + // tr.ace( 'over ' + event.target ); + // tr.ace('move ' + Math.random().toString()); + // tr.ace( this.tooltip.get_tip_style() ); + + if ( !this.tooltip ) + return; // <- an error and the JSON was not loaded + + switch( this.tooltip.get_tip_style() ) { + case Tooltip.CLOSEST: + this.mouse_move_closest( event ); + break; + + case Tooltip.PROXIMITY: + this.mouse_move_proximity( event as MouseEvent ); + break; + + case Tooltip.NORMAL: + this.mouse_move_follow( event as MouseEvent ); + break; + + } + } + + private function mouse_move_follow( event:MouseEvent ):void { + + // tr.ace( event.currentTarget ); + // tr.ace( event.target ); + + if ( event.target is has_tooltip ) + this.tooltip.draw( event.target as has_tooltip ); + else + this.tooltip.hide(); + } + + private function mouse_move_proximity( event:MouseEvent ):void { + + //tr.ace( event.currentTarget ); + //tr.ace( event.target ); + + var elements:Array = this.obs.mouse_move_proximity( this.mouseX, this.mouseY ); + this.tooltip.closest( elements ); + } + + private function mouse_move_closest( event:Event ):void { + + var elements:Array = this.obs.closest_2( this.mouseX, this.mouseY ); + this.tooltip.closest( elements ); + } + + private function activateHandler(event:Event):void { + tr.aces("activateHandler:", event); + tr.aces("stage", this.stage); + } + + private function resizeHandler(event:Event):void { + // tr.ace("resizeHandler: " + event); + this.resize(); + } + + // + // pie charts are simpler to resize, they don't + // have all the extras (X,Y axis, legends etc..) + // + private function resize_pie(): ScreenCoordsBase { + + // should this be here? + this.addEventListener(MouseEvent.MOUSE_MOVE, this.mouseMove); + + this.background.resize(); + this.title.resize(); + + // this object is used in the mouseMove method + this.sc = new ScreenCoords( + this.title.get_height(), 0, this.stage.stageWidth, this.stage.stageHeight, + null, null, null, 0, 0, false ); + this.obs.resize( sc ); + + return sc; + } + + // + // + private function resize_radar(): ScreenCoordsBase { + + this.addEventListener(MouseEvent.MOUSE_MOVE, this.mouseMove); + + this.background.resize(); + this.title.resize(); + this.keys.resize( 0, this.title.get_height() ); + + var top:Number = this.title.get_height() + this.keys.get_height(); + + // this object is used in the mouseMove method + var sc:ScreenCoordsRadar = new ScreenCoordsRadar(top, 0, this.stage.stageWidth, this.stage.stageHeight); + + sc.set_range( this.radar_axis.get_range() ); + // 0-4 = 5 spokes + sc.set_angles( this.obs.get_max_x()-this.obs.get_min_x()+1 ); + + // resize the axis first because they may + // change the radius (to fit the labels on screen) + this.radar_axis.resize( sc ); + this.obs.resize( sc ); + + return sc; + } + + private function resize():void { + // + // the chart is async, so we may get this + // event before the chart has loaded, or has + // partly loaded + // + if ( !this.ok ) + return; // <-- something is wrong + + var sc:ScreenCoordsBase; + + if ( this.radar_axis != null ) + sc = this.resize_radar(); + else if ( this.obs.has_pie() ) + sc = this.resize_pie(); + else + sc = this.resize_chart(); + + if( this.menu ) + this.menu.resize(); + + // tell the web page that we have resized our content + if( this.chart_parameters['id'] ) + this.callExternalCallback("ofc_resize", sc.left, sc.width, sc.top, sc.height, this.chart_parameters['id']); + else + this.callExternalCallback("ofc_resize", sc.left, sc.width, sc.top, sc.height); + + sc = null; + } + + private function resize_chart(): ScreenCoordsBase { + // + // we want to show the tooltip closest to + // items near the mouse, so hook into the + // mouse move event: + // + this.addEventListener(MouseEvent.MOUSE_MOVE, this.mouseMove); + + // FlashConnect.trace("stageWidth: " + stage.stageWidth + " stageHeight: " + stage.stageHeight); + this.background.resize(); + this.title.resize(); + + var left:Number = this.y_legend.get_width() /*+ this.y_labels.get_width()*/ + this.y_axis.get_width(); + + this.keys.resize( left, this.title.get_height() ); + + var top:Number = this.title.get_height() + this.keys.get_height(); + + var bottom:Number = this.stage.stageHeight; + bottom -= (this.x_legend.get_height() + this.x_axis.get_height()); + + var right:Number = this.stage.stageWidth; + right -= this.y_legend_2.get_width(); + //right -= this.y_labels_right.get_width(); + right -= this.y_axis_right.get_width(); + + // this object is used in the mouseMove method + this.sc = new ScreenCoords( + top, left, right, bottom, + this.y_axis.get_range(), + this.y_axis_right.get_range(), + this.x_axis.get_range(), + this.x_axis.first_label_width(), + this.x_axis.last_label_width(), + false ); + + this.sc.set_bar_groups(this.obs.groups); + + this.x_axis.resize( sc, + // can we remove this: + this.stage.stageHeight-(this.x_legend.get_height()+this.x_axis.labels.get_height()) // <-- up from the bottom + ); + this.y_axis.resize( this.y_legend.get_width(), sc ); + this.y_axis_right.resize( 0, sc ); + this.x_legend.resize( sc ); + this.y_legend.resize(); + this.y_legend_2.resize(); + + this.obs.resize( sc ); + + + // Test code: + this.dispatchEvent(new Event("on-show")); + + + return sc; + } + + private function mouseOut(event:Event):void { + + if( this.tooltip != null ) + this.tooltip.hide(); + + if( this.obs != null ) + this.obs.mouse_out(); + } + + // + // an external interface, used by javascript to + // pass in a JSON string + // + public function load( s:String ):void { + this.parse_json( s ); + } + + // + // JSON is loaded from an external URL + // + private function xmlLoaded(event:Event):void { + var loader:URLLoader = URLLoader(event.target); + this.parse_json( loader.data ); + } + + // + // we have data! parse it and make the chart + // + private function parse_json( json_string:String ):void { + + // tr.ace(json_string); + + var ok:Boolean = false; + + try { + var json:Object = JSON.deserialize( json_string ); + ok = true; + } + catch (e:Error) { + // remove the 'loading data...' msg: + this.removeChildAt(0); + this.addChild( new JsonErrorMsg( json_string as String, e ) ); + } + + // + // don't catch these errors: + // + if( ok ) + { + // remove 'loading data...' msg: + this.removeChildAt(0); + this.build_chart( json ); + + // force this to be garbage collected + json = null; + } + + json_string = ''; + } + + private function build_chart( json:Object ):void { + + tr.ace('----'); + tr.ace(JSON.serialize(json)); + tr.ace('----'); + + if ( this.obs != null ) + this.die(); + + // init singletons: + NumberFormat.getInstance( json ); + NumberFormat.getInstanceY2( json ); + + this.tooltip = new Tooltip( json.tooltip ) + + var g:Global = Global.getInstance(); + g.set_tooltip_string( this.tooltip.tip_text ); + + // + // these are common to both X Y charts and PIE charts: + this.background = new Background( json ); + this.title = new Title( json.title ); + // + this.addChild( this.background ); + // + + if ( JsonInspector.is_radar( json ) ) { + + this.obs = Factory.MakeChart( json ); + this.radar_axis = new RadarAxis( json.radar_axis ); + this.keys = new Keys( this.obs ); + + this.addChild( this.radar_axis ); + this.addChild( this.keys ); + + } + else if ( !JsonInspector.has_pie_chart( json ) ) + { + this.build_chart_background( json ); + } + else + { + // this is a PIE chart + this.obs = Factory.MakeChart( json ); + // PIE charts default to FOLLOW tooltips + this.tooltip.set_tip_style( Tooltip.NORMAL ); + } + + // these are added in the Flash Z Axis order + this.addChild( this.title ); + for each( var set:Sprite in this.obs.sets ) + this.addChild( set ); + this.addChild( this.tooltip ); + + if (json['menu'] != null) { + this.menu = new Menu('99', json['menu']); + this.addChild(this.menu); + } + + this.ok = true; + this.resize(); + + + } + + // + // PIE charts don't have this. + // build grid, axis, legends and key + // + private function build_chart_background( json:Object ):void { + // + // This reads all the 'elements' of the chart + // e.g. bars and lines, then creates them as sprites + // + this.obs = Factory.MakeChart( json ); + // + this.x_legend = new XLegend( json.x_legend ); + this.y_legend = new YLegendLeft( json ); + this.y_legend_2 = new YLegendRight( json ); + this.x_axis = new XAxis( json, this.obs.get_min_x(), this.obs.get_max_x() ); + this.y_axis = new YAxisLeft(); + this.y_axis_right = new YAxisRight(); + + // access all our globals through this: + var g:Global = Global.getInstance(); + // this is needed by all the elements tooltip + g.x_labels = this.x_axis.labels; + g.x_legend = this.x_legend; + + // + // pick up X Axis labels for the tooltips + // + this.obs.tooltip_replace_labels( this.x_axis.labels ); + // + // + // + + this.keys = new Keys( this.obs ); + + this.addChild( this.x_legend ); + this.addChild( this.y_legend ); + this.addChild( this.y_legend_2 ); + this.addChild( this.y_axis ); + this.addChild( this.y_axis_right ); + this.addChild( this.x_axis ); + this.addChild( this.keys ); + + // now these children have access to the stage, + // tell them to init + this.y_axis.init(json); + this.y_axis_right.init(json); + } + + /** + * Remove all our referenced objects + */ + private function die():void { + this.obs.die(); + this.obs = null; + + if ( this.tooltip != null ) this.tooltip.die(); + + if ( this.x_legend != null ) this.x_legend.die(); + if ( this.y_legend != null ) this.y_legend.die(); + if ( this.y_legend_2 != null ) this.y_legend_2.die(); + if ( this.y_axis != null ) this.y_axis.die(); + if ( this.y_axis_right != null ) this.y_axis_right.die(); + if ( this.x_axis != null ) this.x_axis.die(); + if ( this.keys != null ) this.keys.die(); + if ( this.title != null ) this.title.die(); + if ( this.radar_axis != null ) this.radar_axis.die(); + if ( this.background != null ) this.background.die(); + + this.tooltip = null; + this.x_legend = null; + this.y_legend = null; + this.y_legend_2 = null; + this.y_axis = null; + this.y_axis_right = null; + this.x_axis = null; + this.keys = null; + this.title = null; + this.radar_axis = null; + this.background = null; + + while ( this.numChildren > 0 ) + this.removeChildAt(0); + + if ( this.hasEventListener(MouseEvent.MOUSE_MOVE)) + this.removeEventListener(MouseEvent.MOUSE_MOVE, this.mouseMove); + + // do not force a garbage collection, it is not supported: + // http://stackoverflow.com/questions/192373/force-garbage-collection-in-as3 + + } + + private function build_right_click_menu(): void { + + var cm:ContextMenu = new ContextMenu(); + cm.addEventListener(ContextMenuEvent.MENU_SELECT, onContextMenuHandler); + cm.hideBuiltInItems(); + + // OFC CREDITS + var fs:ContextMenuItem = new ContextMenuItem("Charts by Open Flash Chart [Version "+VERSION+"]" ); + fs.addEventListener( + ContextMenuEvent.MENU_ITEM_SELECT, + function doSomething(e:ContextMenuEvent):void { + var url:String = "http://teethgrinder.co.uk/open-flash-chart-2/"; + var request:URLRequest = new URLRequest(url); + flash.net.navigateToURL(request, '_blank'); + }); + cm.customItems.push( fs ); + + var save_image_message:String = ( this.chart_parameters['save_image_message'] ) ? this.chart_parameters['save_image_message'] : 'Save Image Locally'; + + var dl:ContextMenuItem = new ContextMenuItem(save_image_message); + dl.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, this.saveImage); + cm.customItems.push( dl ); + + this.contextMenu = cm; + } + + public function format_y_axis_label( val:Number ): String { +// if( this._y_format != undefined ) +// { +// var tmp:String = _root._y_format.replace('#val#',_root.format(val)); +// tmp = tmp.replace('#val:time#',_root.formatTime(val)); +// tmp = tmp.replace('#val:none#',String(val)); +// tmp = tmp.replace('#val:number#', NumberUtils.formatNumber (Number(val))); +// return tmp; +// } +// else + return NumberUtils.format(val,2,true,true,false); + } + + + } + +} diff --git a/pacotes/openflashchart/open-flash-chart/obj/open-flash-chartConfig.xml b/pacotes/openflashchart/open-flash-chart/obj/open-flash-chartConfig.xml new file mode 100644 index 0000000..94c819b --- /dev/null +++ b/pacotes/openflashchart/open-flash-chart/obj/open-flash-chartConfig.xml @@ -0,0 +1,23 @@ + + + + + + + + + C:\Users\John\Documents\flex\svn\version-2\open-flash-chart\trunk + C:\Users\John\AppData\Local\FlashDevelop\Library\AS3\classes + + + + C:\Users\John\Documents\flex\svn\version-2\open-flash-chart\trunk\main.as + + #FFFFFF + 60 + + 600 + 400 + + + \ No newline at end of file diff --git a/pacotes/openflashchart/open-flash-chart/object_helper.as b/pacotes/openflashchart/open-flash-chart/object_helper.as new file mode 100644 index 0000000..e70d4f2 --- /dev/null +++ b/pacotes/openflashchart/open-flash-chart/object_helper.as @@ -0,0 +1,28 @@ +package { + + public class object_helper { + + // + // merge two objects, one from the user + // and is JSON, the other is the default + // values this object should have + // + public static function merge( o:Object, defaults:Object ):Object { + + for (var prop:String in defaults ) { + if( o[prop] == undefined ) + o[prop] = defaults[prop]; + } + return o; + } + + public static function merge_2( json:Object, defaults:Object ):void { + + for (var prop:String in json ) { + + // tr.ace( prop +' = ' + json[prop]); + defaults[prop] = json[prop]; + } + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/open-flash-chart/open-flash-chart.as3proj b/pacotes/openflashchart/open-flash-chart/open-flash-chart.as3proj new file mode 100644 index 0000000..de36700 --- /dev/null +++ b/pacotes/openflashchart/open-flash-chart/open-flash-chart.as3proj @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pacotes/openflashchart/open-flash-chart/string/Css.as b/pacotes/openflashchart/open-flash-chart/string/Css.as new file mode 100644 index 0000000..0ae670a --- /dev/null +++ b/pacotes/openflashchart/open-flash-chart/string/Css.as @@ -0,0 +1,265 @@ +package string { + + public class Css { + public var text_align:String; + public var font_size:Number; + private var text_decoration:String; + private var margin:String; + public var margin_top:Number; + public var margin_bottom:Number; + public var margin_left:Number; + public var margin_right:Number; + + private var padding:String; + public var padding_top:Number=0; + public var padding_bottom:Number=0; + public var padding_left:Number=0; + public var padding_right:Number=0; + + public var font_weight:String; + public var font_style:String; + public var font_family:String; + public var color:Number; + private var stop_process:Number; // Flag for disable checking + public var background_colour:Number; + public var background_colour_set:Boolean; + + private var display:String; + + public function Css( txt:String ) { + // To lower case + txt.toLowerCase(); + + // monk.e.boy: remove the { and } + txt = txt.replace( '{', '' ); + txt = txt.replace( '}', '' ); + + // monk.e.boy: setup some default values. + // does this confilct with 'clear()'? + this.margin_top = 0; + this.margin_bottom = 0; + this.margin_left = 0; + this.margin_right = 0; + + this.padding_top = 0; + this.padding_bottom = 0; + this.padding_left = 0; + this.padding_right = 0; + + this.color = 0; + this.background_colour_set = false; + this.font_size = 9; + + // Splitting by the ; + var arr:Array = txt.split(";"); + + // Checking all the types of css params we accept and writing to internal variables of the object class + for( var i:Number = 0; i < arr.length; i++) + { + getAttribute(arr[i]); + } + } + + private function trim( txt:String ):String { + var l:Number = 0; + var r:Number = txt.length - 1; + while(txt.charAt(l) == ' ' || txt.charAt(l) == "\t" ) l++; + while(txt.charAt(r) == ' ' || txt.charAt(r) == "\t" ) r--; + return txt.substring( l, r+1 ); + } + + private function removeDoubleSpaces( txt:String ):String { + var aux:String; + var auxPrev:String; + aux = txt; + do { + auxPrev = aux; + aux.replace(' ',' '); + } while ( auxPrev.length != aux.length ); + return aux; + } + + private function ToNumber(cad:String):Number { + + cad = cad.replace( 'px', '' ); + + if ( isNaN( Number(cad) ) ) { + return 0; + } else { + return Number(cad); + } + } + + private function getAttribute( txt:String ):void { + var arr:Array = txt.split(":"); + if( arr.length==2 ) + { + this.stop_process = 1; + this.set( arr[0], trim(arr[1]) ); + } + } + /* + public function get( cad:String ):Number { + switch (cad) { + case "text-align" : return this.text_align; + case "font-size" : return ToNumber(this.font_size); + case "text-decoration" : return this.text_decoration; + case "margin-top" : return this.margin_top; + case "margin-bottom" : return this.margin_bottom; + case "margin-left" : return this.margin_left; + case "margin-right" : return this.margin_right; + case "padding-top" : return this.padding_top; + case "padding-bottom" : return this.padding_bottom; + case "padding-left" : return this.padding_left; + case "padding-right" : return this.padding_right; + case "font-weight" : return ToNumber(this.font_weight); + case "font-style" : return this.font_style; + case "font-family" : return this.font_family; + case "color" : return this.color; + case "background-color" : return this.bg_colour; + case "display" : return this.display; + default : return 0; + } + } + */ + // FUCKING!! Flash without By reference String parameters on functions + public function set( cad:String, val:String ):void { + cad = trim( cad ); + + switch( cad ) + { + case "text-align" : this.text_align = val; break; + case "font-size" : this.set_font_size(val); break; + case "text-decoration" : this.text_decoration = val; break; + + case "margin" : this.setMargin(val); break; + case "margin-top" : this.margin_top = ToNumber(val); break; + case "margin-bottom" : this.margin_bottom = ToNumber(val); break; + case "margin-left" : this.margin_left = ToNumber(val); break; + case "margin-right" : this.margin_right = ToNumber(val); break; + + case 'padding' : this.setPadding(val); break; + case "padding-top" : this.padding_top = ToNumber(val); break; + case "padding-bottom" : this.padding_bottom = ToNumber(val); break; + case "padding-left" : this.padding_left = ToNumber(val); break; + case "padding-right" : this.padding_right = ToNumber(val); break; + + case "font-weight" : this.font_weight = val; break; + case "font-style" : this.font_style = val; break; + case "font-family" : this.font_family = val; break; + case "color" : this.set_color(val); break; + case "background-color": + this.background_colour = Utils.get_colour(val); + this.background_colour_set = true; + break; + case "display" : this.display = val; break; + } + } + + public function set_color( val:String ):void { + this.color = Utils.get_colour( val ); + } + + public function set_font_size( val:String ):void { + this.font_size = ToNumber(val); + } + + + private function setPadding( val:String ):void { + + val = trim( val ); + var arr:Array = val.split(' '); + + switch( arr.length ) + { + + // margin: 30px; + case 1: + this.padding_top = ToNumber(arr[0]); + this.padding_right = ToNumber(arr[0]); + this.padding_bottom = ToNumber(arr[0]); + this.padding_left = ToNumber(arr[0]); + break; + + // margin: 15px 5px; + case 2: + this.padding_top = ToNumber(arr[0]); + this.padding_right = ToNumber(arr[1]); + this.padding_bottom = ToNumber(arr[0]); + this.padding_left = ToNumber(arr[1]); + break; + + // margin: 15px 5px 10px; + case 3: + this.padding_top = ToNumber(arr[0]); + this.padding_right = ToNumber(arr[1]); + this.padding_bottom = ToNumber(arr[2]); + this.padding_left = ToNumber(arr[1]); + break; + + // margin: 1px 2px 3px 4px; + default: + this.padding_top = ToNumber(arr[0]); + this.padding_right = ToNumber(arr[1]); + this.padding_bottom = ToNumber(arr[2]); + this.padding_left = ToNumber(arr[3]); + } + } + + private function setMargin( val:String ):void { + + val = trim( val ); + var arr:Array = val.split(' '); + + switch( arr.length ) + { + + // margin: 30px; + case 1: + this.margin_top = ToNumber(arr[0]); + this.margin_right = ToNumber(arr[0]); + this.margin_bottom = ToNumber(arr[0]); + this.margin_left = ToNumber(arr[0]); + break; + + // margin: 15px 5px; + case 2: + this.margin_top = ToNumber(arr[0]); + this.margin_right = ToNumber(arr[1]); + this.margin_bottom = ToNumber(arr[0]); + this.margin_left = ToNumber(arr[1]); + break; + + // margin: 15px 5px 10px; + case 3: + this.margin_top = ToNumber(arr[0]); + this.margin_right = ToNumber(arr[1]); + this.margin_bottom = ToNumber(arr[2]); + this.margin_left = ToNumber(arr[1]); + break; + + // margin: 1px 2px 3px 4px; + default: + this.margin_top = ToNumber(arr[0]); + this.margin_right = ToNumber(arr[1]); + this.margin_bottom = ToNumber(arr[2]); + this.margin_left = ToNumber(arr[3]); + } + } + + public function clear():void { + this.text_align = undefined; + this.font_size = undefined; + this.text_decoration = undefined; + this.margin_top = undefined; + this.margin_bottom = undefined; + this.margin_left = undefined; + this.margin_right = undefined; + this.font_weight = undefined; + this.font_style = undefined; + this.font_family = undefined; + this.color = undefined; + this.display = undefined; + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/open-flash-chart/string/DateUtils.as b/pacotes/openflashchart/open-flash-chart/string/DateUtils.as new file mode 100644 index 0000000..27df359 --- /dev/null +++ b/pacotes/openflashchart/open-flash-chart/string/DateUtils.as @@ -0,0 +1,273 @@ +package string +{ + public class DateUtils + { + + protected static var dateConsts:Object = { + shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + longMonths: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], + shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + longDays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] + } + + public static function replace_magic_values( tip:String, xVal:Number):String { + // convert from a unix timestamp to an AS3 date + var as3Date:Date = new Date(xVal * 1000); + tip = tip.replace('#date#', DateUtils.formatDate(as3Date, "Y-m-d")); + // check for user formatted dates + var begPtr:int = tip.indexOf("#date:"); + while (begPtr >= 0) + { + var endPtr:int = tip.indexOf("#", begPtr + 1) + 1; + var replaceStr:String = tip.substr(begPtr, endPtr-begPtr); + var timeFmt:String = replaceStr.substr(6, replaceStr.length - 7); + var dateStr:String = DateUtils.formatDate(as3Date, timeFmt); + tip = tip.replace(replaceStr, dateStr); + begPtr = tip.indexOf("#date:"); + } + + begPtr = tip.indexOf("#gmdate:"); + while (begPtr >= 0) + { + endPtr = tip.indexOf("#", begPtr + 1) + 1; + replaceStr = tip.substr(begPtr, endPtr-begPtr); + timeFmt = replaceStr.substr(8, replaceStr.length - 9); + dateStr= DateUtils.formatUTCDate(as3Date, timeFmt); + tip = tip.replace(replaceStr, dateStr); + begPtr = tip.indexOf("#gmdate:"); + } + + return tip; + } + + // Simulates PHP's date function + public static function formatDate( aDate:Date, fmt:String ): String + { + var returnStr:String = ''; + for (var i:int = 0; i < fmt.length; i++) { + var curChar:String = fmt.charAt(i); + switch (curChar) + { + // day + case 'd': + returnStr += (aDate.getDate() < 10 ? '0' : '') + aDate.getDate(); + break; + case 'D': + returnStr += DateUtils.dateConsts.shortDays[aDate.getDate()]; + break; + case 'j': + returnStr += aDate.getDate(); + break; + case 'l': + returnStr += DateUtils.dateConsts.longDays[aDate.getDay()]; + break; + case 'N': + returnStr += aDate.getDay() + 1; + break; + case 'S': + returnStr += (aDate.getDate() % 10 == 1 && aDate.getDate() != 11 ? 'st' : (aDate.getDate() % 10 == 2 && aDate.getDate() != 12 ? 'nd' : (aDate.getDate() % 10 == 3 && aDate.getDate() != 13 ? 'rd' : 'th'))); + break; + case 'w': + returnStr += aDate.getDay(); + break; + //z: function() { return "Not Yet Supported"; }, + + // Week + //W: function() { return "Not Yet Supported"; }, + + // Month + case 'F': + returnStr += DateUtils.dateConsts.longMonths[aDate.getMonth()]; + break; + case 'm': + returnStr += (aDate.getMonth() < 9 ? '0' : '') + (aDate.getMonth() + 1); + break; + case 'M': + returnStr += DateUtils.dateConsts.shortMonths[aDate.getMonth()]; + break; + case 'n': + returnStr += aDate.getMonth() + 1; + break; + //t: function() { return "Not Yet Supported"; }, + + // Year + //L: function() { return "Not Yet Supported"; }, + //o: function() { return "Not Supported"; }, + case 'Y': + returnStr += aDate.getFullYear(); + break; + case 'y': + returnStr += ('' + aDate.getFullYear()).substr(2); + break; + + // Time + case 'a': + returnStr += aDate.getHours() < 12 ? 'am' : 'pm'; + break; + case 'A': + returnStr += aDate.getHours() < 12 ? 'AM' : 'PM'; + break; + //B: function() { return "Not Yet Supported"; }, + case 'g': + returnStr += aDate.getHours() == 0 ? 12 : (aDate.getHours() > 12 ? aDate.getHours() - 12 : aDate.getHours()); + break; + case 'G': + returnStr += aDate.getHours(); + break; + case 'h': + returnStr += (aDate.getHours() < 10 || (12 < aDate.getHours() < 22) ? '0' : '') + (aDate.getHours() < 10 ? aDate.getHours() + 1 : aDate.getHours() - 12); + break; + case 'H': + returnStr += (aDate.getHours() < 10 ? '0' : '') + aDate.getHours(); + break; + case 'i': + returnStr += (aDate.getMinutes() < 10 ? '0' : '') + aDate.getMinutes(); + break; + case 's': + returnStr += (aDate.getSeconds() < 10 ? '0' : '') + aDate.getSeconds(); + break; + + // Timezone + //e: function() { return "Not Yet Supported"; }, + //I: function() { return "Not Supported"; }, + case 'O': + returnStr += (aDate.getTimezoneOffset() < 0 ? '-' : '+') + (aDate.getTimezoneOffset() / 60 < 10 ? '0' : '') + (aDate.getTimezoneOffset() / 60) + '00'; + break; + //T: function() { return "Not Yet Supported"; }, + case 'Z': + returnStr += aDate.getTimezoneOffset() * 60; + break; + + // Full Date/Time + //c: function() { return "Not Yet Supported"; }, + case 'r': + returnStr += aDate.toString(); + break; + case 'U': + returnStr += aDate.getTime() / 1000; + break; + + default: + returnStr += curChar; + } + } + return returnStr; + }; + + // Simulates PHP's date function + public static function formatUTCDate( aDate:Date, fmt:String ): String + { + var returnStr:String = ''; + for (var i:int = 0; i < fmt.length; i++) { + var curChar:String = fmt.charAt(i); + switch (curChar) + { + // day + case 'd': + returnStr += (aDate.getUTCDate() < 10 ? '0' : '') + aDate.getUTCDate(); + break; + case 'D': + returnStr += DateUtils.dateConsts.shortDays[aDate.getUTCDate()]; + break; + case 'j': + returnStr += aDate.getUTCDate(); + break; + case 'l': + returnStr += DateUtils.dateConsts.longDays[aDate.getUTCDay()]; + break; + case 'N': + returnStr += aDate.getUTCDay() + 1; + break; + case 'S': + returnStr += (aDate.getUTCDate() % 10 == 1 && aDate.getUTCDate() != 11 ? 'st' : (aDate.getUTCDate() % 10 == 2 && aDate.getUTCDate() != 12 ? 'nd' : (aDate.getUTCDate() % 10 == 3 && aDate.getUTCDate() != 13 ? 'rd' : 'th'))); + break; + case 'w': + returnStr += aDate.getUTCDay(); + break; + //z: function() { return "Not Yet Supported"; }, + + // Week + //W: function() { return "Not Yet Supported"; }, + + // Month + case 'F': + returnStr += DateUtils.dateConsts.longMonths[aDate.getUTCMonth()]; + break; + case 'm': + returnStr += (aDate.getUTCMonth() < 9 ? '0' : '') + (aDate.getUTCMonth() + 1); + break; + case 'M': + returnStr += DateUtils.dateConsts.shortMonths[aDate.getUTCMonth()]; + break; + case 'n': + returnStr += aDate.getUTCMonth() + 1; + break; + //t: function() { return "Not Yet Supported"; }, + + // Year + //L: function() { return "Not Yet Supported"; }, + //o: function() { return "Not Supported"; }, + case 'Y': + returnStr += aDate.getUTCFullYear(); + break; + case 'y': + returnStr += ('' + aDate.getUTCFullYear()).substr(2); + break; + + // Time + case 'a': + returnStr += aDate.getUTCHours() < 12 ? 'am' : 'pm'; + break; + case 'A': + returnStr += aDate.getUTCHours() < 12 ? 'AM' : 'PM'; + break; + //B: function() { return "Not Yet Supported"; }, + case 'g': + returnStr += aDate.getUTCHours() == 0 ? 12 : (aDate.getUTCHours() > 12 ? aDate.getUTCHours() - 12 : aDate.getHours()); + break; + case 'G': + returnStr += aDate.getUTCHours(); + break; + case 'h': + returnStr += (aDate.getUTCHours() < 10 || (12 < aDate.getUTCHours() < 22) ? '0' : '') + (aDate.getUTCHours() < 10 ? aDate.getUTCHours() + 1 : aDate.getUTCHours() - 12); + break; + case 'H': + returnStr += (aDate.getUTCHours() < 10 ? '0' : '') + aDate.getUTCHours(); + break; + case 'i': + returnStr += (aDate.getUTCMinutes() < 10 ? '0' : '') + aDate.getUTCMinutes(); + break; + case 's': + returnStr += (aDate.getUTCSeconds() < 10 ? '0' : '') + aDate.getUTCSeconds(); + break; + + // Timezone + //e: function() { return "Not Yet Supported"; }, + //I: function() { return "Not Supported"; }, + case 'O': + returnStr += '+0000'; + break; + //T: function() { return "Not Yet Supported"; }, + case 'Z': + returnStr += 0; + break; + + // Full Date/Time + //c: function() { return "Not Yet Supported"; }, + case 'r': + returnStr += aDate.toUTCString(); + break; + case 'U': + returnStr += aDate.getTime() / 1000; + break; + + default: + returnStr += curChar; + } + } + return returnStr; + }; + + + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/open-flash-chart/string/Utils.as b/pacotes/openflashchart/open-flash-chart/string/Utils.as new file mode 100644 index 0000000..f2b4827 --- /dev/null +++ b/pacotes/openflashchart/open-flash-chart/string/Utils.as @@ -0,0 +1,33 @@ +/** +* ... +* @author Default +* @version 0.1 +*/ + +package string { + + public class Utils { + + public function Utils() { + + } + + static public function get_colour( col:String ) : Number + { + if( col.substr(0,2) == '0x' ) + return Number(col); + + if( col.substr(0,1) == '#' ) + return Number( '0x'+col.substr(1,col.length) ); + + if( col.length==6 ) + return Number( '0x'+col ); + + // not recognised as a valid colour, so? + return Number( col ); + + } + + } + +} diff --git a/pacotes/openflashchart/open-flash-chart/tr.as b/pacotes/openflashchart/open-flash-chart/tr.as new file mode 100644 index 0000000..25f8beb --- /dev/null +++ b/pacotes/openflashchart/open-flash-chart/tr.as @@ -0,0 +1,130 @@ +package { + import org.flashdevelop.utils.FlashConnect; + import com.serialization.json.JSON; + + public class tr { + + public static function ace( o:Object ):void { + if ( o == null ) + FlashConnect.trace( 'null' ); + else + FlashConnect.trace( o.toString() ); + + // var tempError:Error = new Error(); + // var stackTrace:String = tempError.getStackTrace(); + // FlashConnect.trace( 'stackTrace:' + stackTrace ); + + if ( false ) + tr.trace_full(); + } + + // + // e.g: tr.aces( 'my val', val ); + // + public static function aces( ... optionalArgs ):void { + + var tmp:Array = []; + for each( var o:Object in optionalArgs ) + { + // FlashConnect.trace( o.toString() ); + if ( o == null ) + tmp.push( 'null' ); + else + tmp.push( o.toString() ); + } + + FlashConnect.trace( tmp.join(', ') ); + } + + // this doesn't work cos I don't know how to set 'permit debugging' yet + /** + * Found this at: + * http://www.ultrashock.com/forums/actionscript/can-you-trace-a-line-95261.html + */ + static public function ace_full(snum:uint=3):void + { + // FROM: + // http://snippets.dzone.com/posts/show/3703 + //---------------------------------------------------------------------------------------------------------------- + // With debugging turned on, this is what we get: + // + // Error + // at com.flickaway::Trace$/log_full()[D:\web\flickaway_branch\flash\lib\com\flickaway\Trace.as:83] + // at com.flickaway::Trace$/print_r_full()[D:\web\flickaway_branch\flash\lib\com\flickaway\Trace.as:114] + // at com.flickaway::Trace$/print_r()[D:\web\flickaway_branch\flash\lib\com\flickaway\Trace.as:46] + // at com.flickaway::Params()[D:\web\flickaway_branch\flash\lib\com\flickaway\Params.as:36] <==== this line we want + // at com.flickaway::Params$/get_instance()[D:\web\flickaway_branch\flash\lib\com\flickaway\Params.as:27] + // at HomeDefault()[D:\web\flickaway_branch\flash\homepage\HomeDefault.as:57] + // at com.flickaway::Params()[D:\web\flickaway_branch\flash\lib\com\flickaway\Params.as:36]) + // + // with debugging turned off: + // + // Error + // at com.flickaway::Trace$/log_full() + // at com.flickaway::Trace$/print_r_full() + // at com.flickaway::Trace$/print_r() + // at com.flickaway::Params() + // at com.flickaway::Params$/get_instance() + // at HomeDefault() + //---------------------------------------------------------------------------------------------------------------- + var e:Error = new Error(); + var str:String = e.getStackTrace(); // get the full text str + + if (str == null) // means we aren't on the Debug player + { + FlashConnect.trace( "(!debug) " ); + } + else + { + var stacks:Array = str.split("\n"); // split into each line + var caller:String = tr.gimme_caller(stacks[snum]); // get the caller for just one specific line in the stack trace + FlashConnect.trace( caller ); + } + } + + /** + * Returns a string like "[HomeDefault():51]" - line number present only if "permit debugging" is turned on. + */ + static private function gimme_caller(line:String):String + { + //------------------------------------------------------------------------------------------------- + // the line can look like any of these (so we must be able to clean up all of them): + // + // at com.flickaway::Params() + // at com.flickaway::Params()[D:\web\flickaway_branch\flash\lib\com\flickaway\Params.as:36] + // at HomeDefault() + // at HomeDefault()[D:\web\flickaway_branch\flash\homepage\HomeDefault.as:57] + //------------------------------------------------------------------------------------------------- + var dom_pos:int = line.indexOf("::"); // find the '::' part + var caller:String; + + if (dom_pos == -1) + { + caller = line.substr(4); // just remove 'at ' beginning part (4 characters) + } + else + { + caller = line.substr(dom_pos+2); // remove 'at com.flickaway::' beginning part + } + var lb_pos:int = caller.indexOf("["); // get position of the left bracket (lb) + + if (lb_pos == -1) // if the lb doesn't exist (then we don't have "permit debugging" turned on) + { + return "[" + caller + "]"; + } + else + { + var line_num:String = caller.substr(caller.lastIndexOf(":")); // find the line number + caller = caller.substr(0, lb_pos); // cut it out - it'll look like ":51]" + return "[" + caller + line_num; // line_num already has the trailing right bracket + } + } + + + + + public static function ace_json( json:Object ):void { + tr.ace(JSON.serialize(json)); + } + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/JSON.php b/pacotes/openflashchart/php-ofc-library/JSON.php new file mode 100644 index 0000000..7260001 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/JSON.php @@ -0,0 +1,806 @@ + + * @author Matt Knapp + * @author Brett Stimmerman + * @copyright 2005 Michal Migurski + * @version CVS: $Id: JSON.php,v 1.31 2006/06/28 05:54:17 migurski Exp $ + * @license http://www.opensource.org/licenses/bsd-license.php + * @link http://pear.php.net/pepr/pepr-proposal-show.php?id=198 + */ + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_SLICE', 1); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_STR', 2); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_ARR', 3); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_OBJ', 4); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_CMT', 5); + +/** + * Behavior switch for Services_JSON::decode() + */ +define('SERVICES_JSON_LOOSE_TYPE', 16); + +/** + * Behavior switch for Services_JSON::decode() + */ +define('SERVICES_JSON_SUPPRESS_ERRORS', 32); + +/** + * Converts to and from JSON format. + * + * Brief example of use: + * + * + * // create a new instance of Services_JSON + * $json = new Services_JSON(); + * + * // convert a complexe value to JSON notation, and send it to the browser + * $value = array('foo', 'bar', array(1, 2, 'baz'), array(3, array(4))); + * $output = $json->encode($value); + * + * print($output); + * // prints: ["foo","bar",[1,2,"baz"],[3,[4]]] + * + * // accept incoming POST data, assumed to be in JSON notation + * $input = file_get_contents('php://input', 1000000); + * $value = $json->decode($input); + * + */ +class Services_JSON +{ + /** + * constructs a new JSON instance + * + * @param int $use object behavior flags; combine with boolean-OR + * + * possible values: + * - SERVICES_JSON_LOOSE_TYPE: loose typing. + * "{...}" syntax creates associative arrays + * instead of objects in decode(). + * - SERVICES_JSON_SUPPRESS_ERRORS: error suppression. + * Values which can't be encoded (e.g. resources) + * appear as NULL instead of throwing errors. + * By default, a deeply-nested resource will + * bubble up with an error, so all return values + * from encode() should be checked with isError() + */ + function Services_JSON($use = 0) + { + $this->use = $use; + } + + /** + * convert a string from one UTF-16 char to one UTF-8 char + * + * Normally should be handled by mb_convert_encoding, but + * provides a slower PHP-only method for installations + * that lack the multibye string extension. + * + * @param string $utf16 UTF-16 character + * @return string UTF-8 character + * @access private + */ + function utf162utf8($utf16) + { + // oh please oh please oh please oh please oh please + if(function_exists('mb_convert_encoding')) { + return mb_convert_encoding($utf16, 'UTF-8', 'UTF-16'); + } + + $bytes = (ord($utf16{0}) << 8) | ord($utf16{1}); + + switch(true) { + case ((0x7F & $bytes) == $bytes): + // this case should never be reached, because we are in ASCII range + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0x7F & $bytes); + + case (0x07FF & $bytes) == $bytes: + // return a 2-byte UTF-8 character + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0xC0 | (($bytes >> 6) & 0x1F)) + . chr(0x80 | ($bytes & 0x3F)); + + case (0xFFFF & $bytes) == $bytes: + // return a 3-byte UTF-8 character + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0xE0 | (($bytes >> 12) & 0x0F)) + . chr(0x80 | (($bytes >> 6) & 0x3F)) + . chr(0x80 | ($bytes & 0x3F)); + } + + // ignoring UTF-32 for now, sorry + return ''; + } + + /** + * convert a string from one UTF-8 char to one UTF-16 char + * + * Normally should be handled by mb_convert_encoding, but + * provides a slower PHP-only method for installations + * that lack the multibye string extension. + * + * @param string $utf8 UTF-8 character + * @return string UTF-16 character + * @access private + */ + function utf82utf16($utf8) + { + // oh please oh please oh please oh please oh please + if(function_exists('mb_convert_encoding')) { + return mb_convert_encoding($utf8, 'UTF-16', 'UTF-8'); + } + + switch(strlen($utf8)) { + case 1: + // this case should never be reached, because we are in ASCII range + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return $utf8; + + case 2: + // return a UTF-16 character from a 2-byte UTF-8 char + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0x07 & (ord($utf8{0}) >> 2)) + . chr((0xC0 & (ord($utf8{0}) << 6)) + | (0x3F & ord($utf8{1}))); + + case 3: + // return a UTF-16 character from a 3-byte UTF-8 char + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr((0xF0 & (ord($utf8{0}) << 4)) + | (0x0F & (ord($utf8{1}) >> 2))) + . chr((0xC0 & (ord($utf8{1}) << 6)) + | (0x7F & ord($utf8{2}))); + } + + // ignoring UTF-32 for now, sorry + return ''; + } + + /** + * encodes an arbitrary variable into JSON format + * + * @param mixed $var any number, boolean, string, array, or object to be encoded. + * see argument 1 to Services_JSON() above for array-parsing behavior. + * if var is a strng, note that encode() always expects it + * to be in ASCII or UTF-8 format! + * + * @return mixed JSON string representation of input var or an error if a problem occurs + * @access public + */ + function encode($var) + { + switch (gettype($var)) { + case 'boolean': + return $var ? 'true' : 'false'; + + case 'NULL': + return 'null'; + + case 'integer': + return (int) $var; + + case 'double': + case 'float': + return (float) $var; + + case 'string': + // STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT + $ascii = ''; + $strlen_var = strlen($var); + + /* + * Iterate over every character in the string, + * escaping with a slash or encoding to UTF-8 where necessary + */ + for ($c = 0; $c < $strlen_var; ++$c) { + + $ord_var_c = ord($var{$c}); + + switch (true) { + case $ord_var_c == 0x08: + $ascii .= '\b'; + break; + case $ord_var_c == 0x09: + $ascii .= '\t'; + break; + case $ord_var_c == 0x0A: + $ascii .= '\n'; + break; + case $ord_var_c == 0x0C: + $ascii .= '\f'; + break; + case $ord_var_c == 0x0D: + $ascii .= '\r'; + break; + + case $ord_var_c == 0x22: + case $ord_var_c == 0x2F: + case $ord_var_c == 0x5C: + // double quote, slash, slosh + $ascii .= '\\'.$var{$c}; + break; + + case (($ord_var_c >= 0x20) && ($ord_var_c <= 0x7F)): + // characters U-00000000 - U-0000007F (same as ASCII) + $ascii .= $var{$c}; + break; + + case (($ord_var_c & 0xE0) == 0xC0): + // characters U-00000080 - U-000007FF, mask 110XXXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, ord($var{$c + 1})); + $c += 1; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xF0) == 0xE0): + // characters U-00000800 - U-0000FFFF, mask 1110XXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2})); + $c += 2; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xF8) == 0xF0): + // characters U-00010000 - U-001FFFFF, mask 11110XXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2}), + ord($var{$c + 3})); + $c += 3; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xFC) == 0xF8): + // characters U-00200000 - U-03FFFFFF, mask 111110XX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2}), + ord($var{$c + 3}), + ord($var{$c + 4})); + $c += 4; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xFE) == 0xFC): + // characters U-04000000 - U-7FFFFFFF, mask 1111110X + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2}), + ord($var{$c + 3}), + ord($var{$c + 4}), + ord($var{$c + 5})); + $c += 5; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + } + } + + return '"'.$ascii.'"'; + + case 'array': + /* + * As per JSON spec if any array key is not an integer + * we must treat the the whole array as an object. We + * also try to catch a sparsely populated associative + * array with numeric keys here because some JS engines + * will create an array with empty indexes up to + * max_index which can cause memory issues and because + * the keys, which may be relevant, will be remapped + * otherwise. + * + * As per the ECMA and JSON specification an object may + * have any string as a property. Unfortunately due to + * a hole in the ECMA specification if the key is a + * ECMA reserved word or starts with a digit the + * parameter is only accessible using ECMAScript's + * bracket notation. + */ + + // treat as a JSON object + if (is_array($var) && count($var) && (array_keys($var) !== range(0, sizeof($var) - 1))) { + $properties = array_map(array($this, 'name_value'), + array_keys($var), + array_values($var)); + + foreach($properties as $property) { + if(Services_JSON::isError($property)) { + return $property; + } + } + + return '{' . join(',', $properties) . '}'; + } + + // treat it like a regular array + $elements = array_map(array($this, 'encode'), $var); + + foreach($elements as $element) { + if(Services_JSON::isError($element)) { + return $element; + } + } + + return '[' . join(',', $elements) . ']'; + + case 'object': + $vars = get_object_vars($var); + + $properties = array_map(array($this, 'name_value'), + array_keys($vars), + array_values($vars)); + + foreach($properties as $property) { + if(Services_JSON::isError($property)) { + return $property; + } + } + + return '{' . join(',', $properties) . '}'; + + default: + return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS) + ? 'null' + : new Services_JSON_Error(gettype($var)." can not be encoded as JSON string"); + } + } + + /** + * array-walking function for use in generating JSON-formatted name-value pairs + * + * @param string $name name of key to use + * @param mixed $value reference to an array element to be encoded + * + * @return string JSON-formatted name-value pair, like '"name":value' + * @access private + */ + function name_value($name, $value) + { + $encoded_value = $this->encode($value); + + if(Services_JSON::isError($encoded_value)) { + return $encoded_value; + } + + return $this->encode(strval($name)) . ':' . $encoded_value; + } + + /** + * reduce a string by removing leading and trailing comments and whitespace + * + * @param $str string string value to strip of comments and whitespace + * + * @return string string value stripped of comments and whitespace + * @access private + */ + function reduce_string($str) + { + $str = preg_replace(array( + + // eliminate single line comments in '// ...' form + '#^\s*//(.+)$#m', + + // eliminate multi-line comments in '/* ... */' form, at start of string + '#^\s*/\*(.+)\*/#Us', + + // eliminate multi-line comments in '/* ... */' form, at end of string + '#/\*(.+)\*/\s*$#Us' + + ), '', $str); + + // eliminate extraneous space + return trim($str); + } + + /** + * decodes a JSON string into appropriate variable + * + * @param string $str JSON-formatted string + * + * @return mixed number, boolean, string, array, or object + * corresponding to given JSON input string. + * See argument 1 to Services_JSON() above for object-output behavior. + * Note that decode() always returns strings + * in ASCII or UTF-8 format! + * @access public + */ + function decode($str) + { + $str = $this->reduce_string($str); + + switch (strtolower($str)) { + case 'true': + return true; + + case 'false': + return false; + + case 'null': + return null; + + default: + $m = array(); + + if (is_numeric($str)) { + // Lookie-loo, it's a number + + // This would work on its own, but I'm trying to be + // good about returning integers where appropriate: + // return (float)$str; + + // Return float or int, as appropriate + return ((float)$str == (integer)$str) + ? (integer)$str + : (float)$str; + + } elseif (preg_match('/^("|\').*(\1)$/s', $str, $m) && $m[1] == $m[2]) { + // STRINGS RETURNED IN UTF-8 FORMAT + $delim = substr($str, 0, 1); + $chrs = substr($str, 1, -1); + $utf8 = ''; + $strlen_chrs = strlen($chrs); + + for ($c = 0; $c < $strlen_chrs; ++$c) { + + $substr_chrs_c_2 = substr($chrs, $c, 2); + $ord_chrs_c = ord($chrs{$c}); + + switch (true) { + case $substr_chrs_c_2 == '\b': + $utf8 .= chr(0x08); + ++$c; + break; + case $substr_chrs_c_2 == '\t': + $utf8 .= chr(0x09); + ++$c; + break; + case $substr_chrs_c_2 == '\n': + $utf8 .= chr(0x0A); + ++$c; + break; + case $substr_chrs_c_2 == '\f': + $utf8 .= chr(0x0C); + ++$c; + break; + case $substr_chrs_c_2 == '\r': + $utf8 .= chr(0x0D); + ++$c; + break; + + case $substr_chrs_c_2 == '\\"': + case $substr_chrs_c_2 == '\\\'': + case $substr_chrs_c_2 == '\\\\': + case $substr_chrs_c_2 == '\\/': + if (($delim == '"' && $substr_chrs_c_2 != '\\\'') || + ($delim == "'" && $substr_chrs_c_2 != '\\"')) { + $utf8 .= $chrs{++$c}; + } + break; + + case preg_match('/\\\u[0-9A-F]{4}/i', substr($chrs, $c, 6)): + // single, escaped unicode character + $utf16 = chr(hexdec(substr($chrs, ($c + 2), 2))) + . chr(hexdec(substr($chrs, ($c + 4), 2))); + $utf8 .= $this->utf162utf8($utf16); + $c += 5; + break; + + case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F): + $utf8 .= $chrs{$c}; + break; + + case ($ord_chrs_c & 0xE0) == 0xC0: + // characters U-00000080 - U-000007FF, mask 110XXXXX + //see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 2); + ++$c; + break; + + case ($ord_chrs_c & 0xF0) == 0xE0: + // characters U-00000800 - U-0000FFFF, mask 1110XXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 3); + $c += 2; + break; + + case ($ord_chrs_c & 0xF8) == 0xF0: + // characters U-00010000 - U-001FFFFF, mask 11110XXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 4); + $c += 3; + break; + + case ($ord_chrs_c & 0xFC) == 0xF8: + // characters U-00200000 - U-03FFFFFF, mask 111110XX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 5); + $c += 4; + break; + + case ($ord_chrs_c & 0xFE) == 0xFC: + // characters U-04000000 - U-7FFFFFFF, mask 1111110X + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 6); + $c += 5; + break; + + } + + } + + return $utf8; + + } elseif (preg_match('/^\[.*\]$/s', $str) || preg_match('/^\{.*\}$/s', $str)) { + // array, or object notation + + if ($str{0} == '[') { + $stk = array(SERVICES_JSON_IN_ARR); + $arr = array(); + } else { + if ($this->use & SERVICES_JSON_LOOSE_TYPE) { + $stk = array(SERVICES_JSON_IN_OBJ); + $obj = array(); + } else { + $stk = array(SERVICES_JSON_IN_OBJ); + $obj = new stdClass(); + } + } + + array_push($stk, array('what' => SERVICES_JSON_SLICE, + 'where' => 0, + 'delim' => false)); + + $chrs = substr($str, 1, -1); + $chrs = $this->reduce_string($chrs); + + if ($chrs == '') { + if (reset($stk) == SERVICES_JSON_IN_ARR) { + return $arr; + + } else { + return $obj; + + } + } + + //print("\nparsing {$chrs}\n"); + + $strlen_chrs = strlen($chrs); + + for ($c = 0; $c <= $strlen_chrs; ++$c) { + + $top = end($stk); + $substr_chrs_c_2 = substr($chrs, $c, 2); + + if (($c == $strlen_chrs) || (($chrs{$c} == ',') && ($top['what'] == SERVICES_JSON_SLICE))) { + // found a comma that is not inside a string, array, etc., + // OR we've reached the end of the character list + $slice = substr($chrs, $top['where'], ($c - $top['where'])); + array_push($stk, array('what' => SERVICES_JSON_SLICE, 'where' => ($c + 1), 'delim' => false)); + //print("Found split at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + if (reset($stk) == SERVICES_JSON_IN_ARR) { + // we are in an array, so just push an element onto the stack + array_push($arr, $this->decode($slice)); + + } elseif (reset($stk) == SERVICES_JSON_IN_OBJ) { + // we are in an object, so figure + // out the property name and set an + // element in an associative array, + // for now + $parts = array(); + + if (preg_match('/^\s*(["\'].*[^\\\]["\'])\s*:\s*(\S.*),?$/Uis', $slice, $parts)) { + // "name":value pair + $key = $this->decode($parts[1]); + $val = $this->decode($parts[2]); + + if ($this->use & SERVICES_JSON_LOOSE_TYPE) { + $obj[$key] = $val; + } else { + $obj->$key = $val; + } + } elseif (preg_match('/^\s*(\w+)\s*:\s*(\S.*),?$/Uis', $slice, $parts)) { + // name:value pair, where name is unquoted + $key = $parts[1]; + $val = $this->decode($parts[2]); + + if ($this->use & SERVICES_JSON_LOOSE_TYPE) { + $obj[$key] = $val; + } else { + $obj->$key = $val; + } + } + + } + + } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) { + // found a quote, and we are not inside a string + array_push($stk, array('what' => SERVICES_JSON_IN_STR, 'where' => $c, 'delim' => $chrs{$c})); + //print("Found start of string at {$c}\n"); + + } elseif (($chrs{$c} == $top['delim']) && + ($top['what'] == SERVICES_JSON_IN_STR) && + ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) { + // found a quote, we're in a string, and it's not escaped + // we know that it's not escaped becase there is _not_ an + // odd number of backslashes at the end of the string so far + array_pop($stk); + //print("Found end of string at {$c}: ".substr($chrs, $top['where'], (1 + 1 + $c - $top['where']))."\n"); + + } elseif (($chrs{$c} == '[') && + in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) { + // found a left-bracket, and we are in an array, object, or slice + array_push($stk, array('what' => SERVICES_JSON_IN_ARR, 'where' => $c, 'delim' => false)); + //print("Found start of array at {$c}\n"); + + } elseif (($chrs{$c} == ']') && ($top['what'] == SERVICES_JSON_IN_ARR)) { + // found a right-bracket, and we're in an array + array_pop($stk); + //print("Found end of array at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + } elseif (($chrs{$c} == '{') && + in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) { + // found a left-brace, and we are in an array, object, or slice + array_push($stk, array('what' => SERVICES_JSON_IN_OBJ, 'where' => $c, 'delim' => false)); + //print("Found start of object at {$c}\n"); + + } elseif (($chrs{$c} == '}') && ($top['what'] == SERVICES_JSON_IN_OBJ)) { + // found a right-brace, and we're in an object + array_pop($stk); + //print("Found end of object at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + } elseif (($substr_chrs_c_2 == '/*') && + in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) { + // found a comment start, and we are in an array, object, or slice + array_push($stk, array('what' => SERVICES_JSON_IN_CMT, 'where' => $c, 'delim' => false)); + $c++; + //print("Found start of comment at {$c}\n"); + + } elseif (($substr_chrs_c_2 == '*/') && ($top['what'] == SERVICES_JSON_IN_CMT)) { + // found a comment end, and we're in one now + array_pop($stk); + $c++; + + for ($i = $top['where']; $i <= $c; ++$i) + $chrs = substr_replace($chrs, ' ', $i, 1); + + //print("Found end of comment at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + } + + } + + if (reset($stk) == SERVICES_JSON_IN_ARR) { + return $arr; + + } elseif (reset($stk) == SERVICES_JSON_IN_OBJ) { + return $obj; + + } + + } + } + } + + /** + * @todo Ultimately, this should just call PEAR::isError() + */ + function isError($data, $code = null) + { + if (class_exists('pear')) { + return PEAR::isError($data, $code); + } elseif (is_object($data) && (get_class($data) == 'services_json_error' || + is_subclass_of($data, 'services_json_error'))) { + return true; + } + + return false; + } +} + +if (class_exists('PEAR_Error')) { + + class Services_JSON_Error extends PEAR_Error + { + function Services_JSON_Error($message = 'unknown error', $code = null, + $mode = null, $options = null, $userinfo = null) + { + parent::PEAR_Error($message, $code, $mode, $options, $userinfo); + } + } + +} else { + + /** + * @todo Ultimately, this class shall be descended from PEAR_Error + */ + class Services_JSON_Error + { + function Services_JSON_Error($message = 'unknown error', $code = null, + $mode = null, $options = null, $userinfo = null) + { + + } + } + +} + +?> diff --git a/pacotes/openflashchart/php-ofc-library/README.txt b/pacotes/openflashchart/php-ofc-library/README.txt new file mode 100644 index 0000000..2d8b629 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/README.txt @@ -0,0 +1,16 @@ +Open Flash Chart - PHP libraries. These help create data files for Open Flash Chart. +Copyright (C) 2007 + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/dot_base.php b/pacotes/openflashchart/php-ofc-library/dot_base.php new file mode 100644 index 0000000..843db7d --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/dot_base.php @@ -0,0 +1,231 @@ +type = $type; + if( isset( $value ) ) + $this->value( $value ); + } + + /** + * For line charts that only require a Y position + * for each point. + * @param $value as integer, the Y position + */ + function value( $value ) + { + $this->value = $value; + } + + /** + * For scatter charts that require an X and Y position for + * each point. + * + * @param $x as integer + * @param $y as integer + */ + function position( $x, $y ) + { + $this->x = $x; + $this->y = $y; + } + + /** + * @param $colour is a string, HEX colour, e.g. '#FF0000' red + */ + function colour($colour) + { + $this->colour = $colour; + return $this; + } + + /** + * The tooltip for this dot. + */ + function tooltip( $tip ) + { + $this->tip = $tip; + return $this; + } + + /** + * @param $size is an integer. Size of the dot. + */ + function size($size) + { + $tmp = 'dot-size'; + $this->$tmp = $size; + return $this; + } + + /** + * a private method + */ + function type( $type ) + { + $this->type = $type; + return $this; + } + + /** + * @param $size is an integer. The size of the hollow 'halo' around the dot that masks the line. + */ + function halo_size( $size ) + { + $tmp = 'halo-size'; + $this->$tmp = $size; + return $this; + } + + /** + * @param $do as string. One of three options (examples): + * - "http://example.com" - browse to this URL + * - "https://example.com" - browse to this URL + * - "trace:message" - print this message in the FlashDevelop debug pane + * - all other strings will be called as Javascript functions, so a string "hello_world" + * will call the JS function "hello_world(index)". It passes in the index of the + * point. + */ + function on_click( $do ) + { + $tmp = 'on-click'; + $this->$tmp = $do; + } +} + +/** + * Draw a hollow dot + */ +class hollow_dot extends dot_base +{ + function hollow_dot($value=null) + { + parent::dot_base( 'hollow-dot', $value ); + } +} + +/** + * Draw a star + */ +class star extends dot_base +{ + /** + * The constructor, takes an optional $value + */ + function star($value=null) + { + parent::dot_base( 'star', $value ); + } + + /** + * @param $angle is an integer. + */ + function rotation($angle) + { + $this->rotation = $angle; + return $this; + } + + /** + * @param $is_hollow is a boolean. + */ + function hollow($is_hollow) + { + $this->hollow = $is_hollow; + } +} + +/** + * Draw a 'bow tie' shape. + */ +class bow extends dot_base +{ + /** + * The constructor, takes an optional $value + */ + function bow($value=null) + { + parent::dot_base( 'bow', $value ); + } + + /** + * Rotate the anchor object. + * @param $angle is an integer. + */ + function rotation($angle) + { + $this->rotation = $angle; + return $this; + } +} + +/** + * An n sided shape. + */ +class anchor extends dot_base +{ + /** + * The constructor, takes an optional $value + */ + function anchor($value=null) + { + parent::dot_base( 'anchor', $value ); + } + + /** + * Rotate the anchor object. + * @param $angle is an integer. + */ + function rotation($angle) + { + $this->rotation = $angle; + return $this; + } + + /** + * @param $sides is an integer. Number of sides this shape has. + */ + function sides($sides) + { + $this->sides = $sides; + return $this; + } +} + +/** + * A simple dot + */ +class dot extends dot_base +{ + /** + * The constructor, takes an optional $value + */ + function dot($value=null) + { + parent::dot_base( 'dot', $value ); + } +} + +/** + * A simple dot + */ +class solid_dot extends dot_base +{ + /** + * The constructor, takes an optional $value + */ + function solid_dot($value=null) + { + parent::dot_base( 'solid-dot', $value ); + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/json_format.php b/pacotes/openflashchart/php-ofc-library/json_format.php new file mode 100644 index 0000000..61a842e --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/json_format.php @@ -0,0 +1,86 @@ + 0 && $json[$c-1] != '\\') + { + $in_string = !$in_string; + } + default: + $new_json .= $char; + break; + } + } + + return $new_json; +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_area_base.php b/pacotes/openflashchart/php-ofc-library/ofc_area_base.php new file mode 100644 index 0000000..2254935 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_area_base.php @@ -0,0 +1,40 @@ +type = "area"; + } + + /** + * the fill colour + */ + function set_fill_colour( $colour ) + { + $this->fill = $colour; + } + + /** + * sugar: see set_fill_colour + */ + function fill_colour( $colour ) + { + $this->set_fill_colour( $colour ); + return $this; + } + + function set_fill_alpha( $alpha ) + { + $tmp = "fill-alpha"; + $this->$tmp = $alpha; + } + + function set_loop() + { + $this->loop = true; + } +} diff --git a/pacotes/openflashchart/php-ofc-library/ofc_area_hollow.php b/pacotes/openflashchart/php-ofc-library/ofc_area_hollow.php new file mode 100644 index 0000000..ba6c204 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_area_hollow.php @@ -0,0 +1,10 @@ +type = "area_hollow"; + parent::area_base(); + } +} diff --git a/pacotes/openflashchart/php-ofc-library/ofc_area_line.php b/pacotes/openflashchart/php-ofc-library/ofc_area_line.php new file mode 100644 index 0000000..c4b2b16 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_area_line.php @@ -0,0 +1,10 @@ +type = "area_line"; + parent::area_base(); + } +} diff --git a/pacotes/openflashchart/php-ofc-library/ofc_arrow.php b/pacotes/openflashchart/php-ofc-library/ofc_arrow.php new file mode 100644 index 0000000..77671c8 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_arrow.php @@ -0,0 +1,27 @@ +type = "arrow"; + $this->start = array("x"=>$x, "y"=>$y); + $this->end = array("x"=>$a, "y"=>$b); + $this->colour($colour); + $this->{"barb-length"} = $barb_length; + } + + function colour( $colour ) + { + $this->colour = $colour; + return $this; + } +} diff --git a/pacotes/openflashchart/php-ofc-library/ofc_bar.php b/pacotes/openflashchart/php-ofc-library/ofc_bar.php new file mode 100644 index 0000000..0666939 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_bar.php @@ -0,0 +1,34 @@ +top = $top; + + if( isset( $bottom ) ) + $this->bottom = $bottom; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class bar extends bar_base +{ + function bar() + { + $this->type = "bar"; + parent::bar_base(); + } +} + diff --git a/pacotes/openflashchart/php-ofc-library/ofc_bar_3d.php b/pacotes/openflashchart/php-ofc-library/ofc_bar_3d.php new file mode 100644 index 0000000..b3c902b --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_bar_3d.php @@ -0,0 +1,22 @@ +top = $top; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + diff --git a/pacotes/openflashchart/php-ofc-library/ofc_bar_base.php b/pacotes/openflashchart/php-ofc-library/ofc_bar_base.php new file mode 100644 index 0000000..ee46106 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_bar_base.php @@ -0,0 +1,97 @@ +text = $text; + $tmp = 'font-size'; + $this->$tmp = $size; + } + + /** + * syntatical sugar. + */ + function key( $text, $size ) + { + $this->set_key( $text, $size ); + } + + /** + * @param $v as an array, a mix of: + * - a bar_value class. You can use this to customise the paramters of each bar. + * - integer. This is the Y position of the top of the bar. + */ + function set_values( $v ) + { + $this->values = $v; + } + + /** + * see set_values + */ + function append_value( $v ) + { + $this->values[] = $v; + } + + /** + * @param $colour as string, a HEX colour, e.g. '#ff0000' red + */ + function set_colour( $colour ) + { + $this->colour = $colour; + } + + /** + *syntatical sugar + */ + function colour( $colour ) + { + $this->set_colour( $colour ); + } + + /** + * @param $alpha as real number (range 0 to 1), e.g. 0.5 is half transparent + */ + function set_alpha( $alpha ) + { + $this->alpha = $alpha; + } + + /** + * @param $tip as string, the tip to show. May contain various magic variables. + */ + function set_tooltip( $tip ) + { + $this->tip = $tip; + } + + /** + *@param $on_show as line_on_show object + */ + function set_on_show($on_show) + { + $this->{'on-show'} = $on_show; + } + + function set_on_click( $text ) + { + $tmp = 'on-click'; + $this->$tmp = $text; + } + + function attach_to_right_y_axis() + { + $this->axis = 'right'; + } +} + diff --git a/pacotes/openflashchart/php-ofc-library/ofc_bar_filled.php b/pacotes/openflashchart/php-ofc-library/ofc_bar_filled.php new file mode 100644 index 0000000..2008703 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_bar_filled.php @@ -0,0 +1,39 @@ +$tmp = $outline_colour; + } +} + +class bar_filled extends bar_base +{ + function bar_filled( $colour=null, $outline_colour=null ) + { + $this->type = "bar_filled"; + parent::bar_base(); + + if( isset( $colour ) ) + $this->set_colour( $colour ); + + if( isset( $outline_colour ) ) + $this->set_outline_colour( $outline_colour ); + } + + function set_outline_colour( $outline_colour ) + { + $tmp = 'outline-colour'; + $this->$tmp = $outline_colour; + } +} + diff --git a/pacotes/openflashchart/php-ofc-library/ofc_bar_glass.php b/pacotes/openflashchart/php-ofc-library/ofc_bar_glass.php new file mode 100644 index 0000000..2fd445f --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_bar_glass.php @@ -0,0 +1,131 @@ +type = $type; + $this->cascade = (float)$cascade; + $this->delay = (float)$delay; + } +} + +class bar_value +{ + /** + * @param $top as integer. The Y value of the top of the bar + * @param OPTIONAL $bottom as integer. The Y value of the bottom of the bar, defaults to Y min. + */ + function bar_value( $top, $bottom=null ) + { + $this->top = $top; + + if( isset( $bottom ) ) + $this->bottom = $bottom; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class bar extends bar_base +{ + function bar() + { + $this->type = "bar"; + parent::bar_base(); + } +} + +class bar_glass extends bar_base +{ + function bar_glass() + { + $this->type = "bar_glass"; + parent::bar_base(); + } +} + +class bar_cylinder extends bar_base +{ + function bar_cylinder() + { + $this->type = "bar_cylinder"; + parent::bar_base(); + } +} + +class bar_cylinder_outline extends bar_base +{ + function bar_cylinder_outline() + { + $this->type = "bar_cylinder_outline"; + parent::bar_base(); + } +} + +class bar_rounded_glass extends bar_base +{ + function bar_rounded_glass() + { + $this->type = "bar_round_glass"; + parent::bar_base(); + } +} + +class bar_round extends bar_base +{ + function bar_round() + { + $this->type = "bar_round"; + parent::bar_base(); + } +} + +class bar_dome extends bar_base +{ + function bar_dome() + { + $this->type = "bar_dome"; + parent::bar_base(); + } +} + +class bar_round3d extends bar_base +{ + function bar_round3d() + { + $this->type = "bar_round3d"; + parent::bar_base(); + } +} + +class bar_3d extends bar_base +{ + function bar_3d() + { + $this->type = "bar_3d"; + parent::bar_base(); + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_bar_sketch.php b/pacotes/openflashchart/php-ofc-library/ofc_bar_sketch.php new file mode 100644 index 0000000..944d568 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_bar_sketch.php @@ -0,0 +1,29 @@ +type = "bar_sketch"; + parent::bar_base(); + + $this->set_colour( $colour ); + $this->set_outline_colour( $outline_colour ); + $this->offset = $fun_factor; + } + + function set_outline_colour( $outline_colour ) + { + $tmp = 'outline-colour'; + $this->$tmp = $outline_colour; + } +} + diff --git a/pacotes/openflashchart/php-ofc-library/ofc_bar_stack.php b/pacotes/openflashchart/php-ofc-library/ofc_bar_stack.php new file mode 100644 index 0000000..efba09d --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_bar_stack.php @@ -0,0 +1,55 @@ +type = "bar_stack"; + parent::bar_base(); + } + + function append_stack( $v ) + { + $this->append_value( $v ); + } + + // an array of HEX colours strings + // e.g. array( '#ff0000', '#00ff00' ); + function set_colours( $colours ) + { + $this->colours = $colours; + } + + // an array of bar_stack_value + function set_keys( $keys ) + { + $this->keys = $keys; + } +} + +class bar_stack_value +{ + function bar_stack_value( $val, $colour ) + { + $this->val = $val; + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class bar_stack_key +{ + function bar_stack_key( $colour, $text, $font_size ) + { + $this->colour = $colour; + $this->text = $text; + $tmp = 'font-size'; + $this->$tmp = $font_size; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_candle.php b/pacotes/openflashchart/php-ofc-library/ofc_candle.php new file mode 100644 index 0000000..5507efa --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_candle.php @@ -0,0 +1,41 @@ +high = $high; + $this->top = $open; + $this->bottom = $close; + $this->low = $low; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class candle extends bar_base +{ + function candle($colour, $negative_colour=null) + { + $this->type = "candle"; + parent::bar_base(); + + $this->set_colour( $colour ); + if(!is_null($negative_colour)) + $this->{'negative-colour'} = $negative_colour; + } +} + diff --git a/pacotes/openflashchart/php-ofc-library/ofc_hbar.php b/pacotes/openflashchart/php-ofc-library/ofc_hbar.php new file mode 100644 index 0000000..a0fffbb --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_hbar.php @@ -0,0 +1,64 @@ +left = $left; + $this->right = $right; + } + else + $this->right = $left; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class hbar +{ + function hbar( $colour ) + { + $this->type = "hbar"; + $this->values = array(); + $this->set_colour( $colour ); + } + + function append_value( $v ) + { + $this->values[] = $v; + } + + function set_values( $v ) + { + foreach( $v as $val ) + $this->append_value( new hbar_value( $val ) ); + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_key( $text, $size ) + { + $this->text = $text; + $tmp = 'font-size'; + $this->$tmp = $size; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + diff --git a/pacotes/openflashchart/php-ofc-library/ofc_line.php b/pacotes/openflashchart/php-ofc-library/ofc_line.php new file mode 100644 index 0000000..d25c3fe --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_line.php @@ -0,0 +1,157 @@ +type = $type; + $this->cascade = (float)$cascade; + $this->delay = (float)$delay; + } +} + +class line +{ + function line() + { + $this->type = "line"; + $this->values = array(); + } + + /** + * Set the default dot that all the real + * dots inherit their properties from. If you set the + * default dot to be red, all values in your chart that + * do not specify a colour will be red. Same for all the + * other attributes such as tooltip, on-click, size etc... + * + * @param $style as any class that inherits base_dot + */ + function set_default_dot_style( $style ) + { + $tmp = 'dot-style'; + $this->$tmp = $style; + } + + /** + * @param $v as array, can contain any combination of: + * - integer, Y position of the point + * - any class that inherits from dot_base + * - null + */ + function set_values( $v ) + { + $this->values = $v; + } + + /** + * Append a value to the line. + * + * @param mixed $v + */ + function append_value($v) + { + $this->values[] = $v; + } + + function set_width( $width ) + { + $this->width = $width; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + /** + * sytnatical sugar for set_colour + */ + function colour( $colour ) + { + $this->set_colour( $colour ); + return $this; + } + + function set_halo_size( $size ) + { + $tmp = 'halo-size'; + $this->$tmp = $size; + } + + function set_key( $text, $font_size ) + { + $this->text = $text; + $tmp = 'font-size'; + $this->$tmp = $font_size; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } + + /** + * @param $text as string. A javascript function name as a string. The chart will + * try to call this function, it will pass the chart id as the only parameter into + * this function. E.g: + * + */ + function set_on_click( $text ) + { + $tmp = 'on-click'; + $this->$tmp = $text; + } + + function loop() + { + $this->loop = true; + } + + function line_style( $s ) + { + $tmp = "line-style"; + $this->$tmp = $s; + } + + /** + * Sets the text for the line. + * + * @param string $text + */ + function set_text($text) + { + $this->text = $text; + } + + function attach_to_right_y_axis() + { + $this->axis = 'right'; + } + + /** + *@param $on_show as line_on_show object + */ + function set_on_show($on_show) + { + $this->{'on-show'} = $on_show; + } + + function on_show($on_show) + { + $this->set_on_show($on_show); + return $this; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_line_base.php b/pacotes/openflashchart/php-ofc-library/ofc_line_base.php new file mode 100644 index 0000000..da58abe --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_line_base.php @@ -0,0 +1,92 @@ +type = "line"; + $this->text = "Page views"; + $tmp = 'font-size'; + $this->$tmp = 10; + + $this->values = array(); + } + + function set_values( $v ) + { + $this->values = $v; + } + + /** + * Append a value to the line. + * + * @param mixed $v + */ + function append_value($v) + { + $this->values[] = $v; + } + + function set_width( $width ) + { + $this->width = $width; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_dot_size( $size ) + { + $tmp = 'dot-size'; + $this->$tmp = $size; + } + + function set_halo_size( $size ) + { + $tmp = 'halo-size'; + $this->$tmp = $size; + } + + function set_key( $text, $font_size ) + { + $this->text = $text; + $tmp = 'font-size'; + $this->$tmp = $font_size; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } + + function set_on_click( $text ) + { + $tmp = 'on-click'; + $this->$tmp = $text; + } + + function loop() + { + $this->loop = true; + } + + function line_style( $s ) + { + $tmp = "line-style"; + $this->$tmp = $s; + } + + /** + * Sets the text for the line. + * + * @param string $text + */ + function set_text($text) + { + $this->text = $text; + } + + +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_line_dot.php b/pacotes/openflashchart/php-ofc-library/ofc_line_dot.php new file mode 100644 index 0000000..52f2ad0 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_line_dot.php @@ -0,0 +1,33 @@ +value = $value; + $this->colour = $colour; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_size( $size ) + { + $this->size = $size; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class line_dot extends line_base +{ + function line_dot() + { + $this->type = "line_dot"; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_line_hollow.php b/pacotes/openflashchart/php-ofc-library/ofc_line_hollow.php new file mode 100644 index 0000000..783fdf7 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_line_hollow.php @@ -0,0 +1,9 @@ +type = "line_hollow"; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_line_style.php b/pacotes/openflashchart/php-ofc-library/ofc_line_style.php new file mode 100644 index 0000000..4ba5ff8 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_line_style.php @@ -0,0 +1,11 @@ +style = "dash"; + $this->on = $on; + $this->off = $off; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_menu.php b/pacotes/openflashchart/php-ofc-library/ofc_menu.php new file mode 100644 index 0000000..c44dd17 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_menu.php @@ -0,0 +1,56 @@ +type = "text"; + $this->text = $text; + $tmp = 'javascript-function'; + $this->$tmp = $javascript_function_name; + } +} + +class ofc_menu_item_camera +{ + /** + * @param $text as string. The menu item text. + * @param $javascript_function_name as string. The javascript function name, the + * js function takes one parameter, the chart ID. So for example, our js function + * could look like this: + * + * function save_image( chart_id ) + * { + * alert( chart_id ); + * } + * + * to make a menu item call this: ofc_menu_item_camera('Save chart', 'save_image'); + */ + function ofc_menu_item_camera($text, $javascript_function_name) + { + $this->type = "camera-icon"; + $this->text = $text; + $tmp = 'javascript-function'; + $this->$tmp = $javascript_function_name; + } +} + +class ofc_menu +{ + function ofc_menu($colour, $outline_colour) + { + $this->colour = $colour; + $this->outline_colour = $outline_colour; + } + + function values($values) + { + $this->values = $values; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_pie.php b/pacotes/openflashchart/php-ofc-library/ofc_pie.php new file mode 100644 index 0000000..f3b9d3e --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_pie.php @@ -0,0 +1,257 @@ +value = $value; + $this->label = $label; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_label( $label, $label_colour, $font_size ) + { + $this->label = $label; + + $tmp = 'label-colour'; + $this->$tmp = $label_colour; + + $tmp = 'font-size'; + $this->$tmp = $font_size; + + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } + + function on_click( $event ) + { + $tmp = 'on-click'; + $this->$tmp = $event; + } + + + /** + * An object that inherits from base_pie_animation + */ + function add_animation( $animation ) + { + if( !isset( $this->animate ) ) + $this->animate = array(); + + $this->animate[] = $animation; + + return $this; + } +} + +class base_pie_animation{} + +/** + * fade the pie slice from $alpha (pie set_alpha) to 100% opaque. + */ +class pie_fade extends base_pie_animation +{ + function pie_fade() + { + $this->type="fade"; + } +} + +/** + * Bounce the pie slice out a little + */ +class pie_bounce extends base_pie_animation +{ + /** + * @param $distance as integer, distance to bounce in pixels + */ + function pie_bounce( $distance ) + { + $this->type="bounce"; + $this->distance = $distance; + } +} + +/** + * Make a pie chart and fill it with pie slices + */ +class pie +{ + function pie() + { + $this->type = 'pie'; + } + + function set_colours( $colours ) + { + $this->colours = $colours; + } + + /** + * Sugar wrapped around set_colours + */ + function colours( $colours ) + { + $this->set_colours( $colours ); + return $this; + } + + /** + * @param $alpha as float (0-1) 0.75 = 3/4 visible + */ + function set_alpha( $alpha ) + { + $this->alpha = $alpha; + } + + /** + *sugar wrapped set_alpha + **/ + function alpha( $alpha ) + { + $this->set_alpha( $alpha ); + return $this; + } + + /** + * @param $v as array containing one of + * - null + * - real or integer number + * - a pie_value object + */ + function set_values( $v ) + { + $this->values = $v; + } + + /** + * sugar for set_values + */ + function values( $v ) + { + $this->set_values( $v ); + return $this; + } + + /** + * HACK to keep old code working. + */ + function set_animate( $bool ) + { + if( $bool ) + $this->add_animation( new pie_fade() ); + + } + + /** + * An object that inherits from base_pie_animation + */ + function add_animation( $animation ) + { + if( !isset( $this->animate ) ) + $this->animate = array(); + + $this->animate[] = $animation; + + return $this; + } + + /** + * @param $angle as real number + */ + function set_start_angle( $angle ) + { + $tmp = 'start-angle'; + $this->$tmp = $angle; + } + + /** + * sugar for set_start_angle + */ + function start_angle($angle) + { + $this->set_start_angle( $angle ); + return $this; + } + + /** + * @param $tip as string. The tooltip text. May contain magic varibles + */ + function set_tooltip( $tip ) + { + $this->tip = $tip; + } + + /** + * sugar for set_tooltip + */ + function tooltip( $tip ) + { + $this->set_tooltip( $tip ); + return $this; + } + + function set_gradient_fill() + { + $tmp = 'gradient-fill'; + $this->$tmp = true; + } + + function gradient_fill() + { + $this->set_gradient_fill(); + return $this; + } + + /** + * By default each label is the same colour as the slice, + * but you can ovveride that behaviour using this method. + * + * @param $label_colour as string HEX colour; + */ + function set_label_colour( $label_colour ) + { + $tmp = 'label-colour'; + $this->$tmp = $label_colour; + } + + function label_colour( $label_colour ) + { + $this->set_label_colour( $label_colour ); + return $this; + } + + /** + * Turn off the labels + */ + function set_no_labels() + { + $tmp = 'no-labels'; + $this->$tmp = true; + } + + function on_click( $event ) + { + $tmp = 'on-click'; + $this->$tmp = $event; + } + + /** + * Fix the radius of the pie chart. Take a look at the magic variable #radius# + * for helping figure out what radius to set it to. + * + * @param $radius as number + */ + function radius( $radius ) + { + $this->radius = $radius; + return $this; + } +} diff --git a/pacotes/openflashchart/php-ofc-library/ofc_radar_axis.php b/pacotes/openflashchart/php-ofc-library/ofc_radar_axis.php new file mode 100644 index 0000000..9c8d788 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_radar_axis.php @@ -0,0 +1,47 @@ +set_max( $max ); + } + + function set_max( $max ) + { + $this->max = $max; + } + + function set_steps( $steps ) + { + $this->steps = $steps; + } + + function set_stroke( $s ) + { + $this->stroke = $s; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_grid_colour( $colour ) + { + $tmp = 'grid-colour'; + $this->$tmp = $colour; + } + + function set_labels( $labels ) + { + $this->labels = $labels; + } + + function set_spoke_labels( $labels ) + { + $tmp = 'spoke-labels'; + $this->$tmp = $labels; + } +} + diff --git a/pacotes/openflashchart/php-ofc-library/ofc_radar_axis_labels.php b/pacotes/openflashchart/php-ofc-library/ofc_radar_axis_labels.php new file mode 100644 index 0000000..1c4321c --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_radar_axis_labels.php @@ -0,0 +1,15 @@ +labels = $labels; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_radar_spoke_labels.php b/pacotes/openflashchart/php-ofc-library/ofc_radar_spoke_labels.php new file mode 100644 index 0000000..11b6682 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_radar_spoke_labels.php @@ -0,0 +1,15 @@ +labels = $labels; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_scatter.php b/pacotes/openflashchart/php-ofc-library/ofc_scatter.php new file mode 100644 index 0000000..ab5f3ba --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_scatter.php @@ -0,0 +1,47 @@ +x = $x; + $this->y = $y; + + if( $dot_size > 0 ) + { + $tmp = 'dot-size'; + $this->$tmp = $dot_size; + } + } +} + +class scatter +{ + function scatter( $colour ) + { + $this->type = "scatter"; + $this->set_colour( $colour ); + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_default_dot_style( $style ) + { + $tmp = 'dot-style'; + $this->$tmp = $style; + } + + /** + * @param $v as array, can contain any combination of: + * - integer, Y position of the point + * - any class that inherits from scatter_value + * - null + */ + function set_values( $values ) + { + $this->values = $values; + } +} diff --git a/pacotes/openflashchart/php-ofc-library/ofc_scatter_line.php b/pacotes/openflashchart/php-ofc-library/ofc_scatter_line.php new file mode 100644 index 0000000..c254018 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_scatter_line.php @@ -0,0 +1,49 @@ +type = "scatter_line"; + $this->set_colour( $colour ); + $this->set_width( $width ); + } + + function set_default_dot_style( $style ) + { + $tmp = 'dot-style'; + $this->$tmp = $style; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_width( $width ) + { + $this->width = $width; + } + + function set_values( $values ) + { + $this->values = $values; + } + + function set_step_horizontal() + { + $this->stepgraph = 'horizontal'; + } + + function set_step_vertical() + { + $this->stepgraph = 'vertical'; + } + + function set_key( $text, $font_size ) + { + $this->text = $text; + $tmp = 'font-size'; + $this->$tmp = $font_size; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_shape.php b/pacotes/openflashchart/php-ofc-library/ofc_shape.php new file mode 100644 index 0000000..3bab907 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_shape.php @@ -0,0 +1,25 @@ +x = $x; + $this->y = $y; + } +} + +class shape +{ + function shape( $colour ) + { + $this->type = "shape"; + $this->colour = $colour; + $this->values = array(); + } + + function append_value( $p ) + { + $this->values[] = $p; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_sugar.php b/pacotes/openflashchart/php-ofc-library/ofc_sugar.php new file mode 100644 index 0000000..242182a --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_sugar.php @@ -0,0 +1,43 @@ +colour($colour)->size($size); + } +} + +class s_box extends anchor +{ + /** + * I use this wrapper for default dot types, + * it just makes the code easier to read. + */ + function s_box($colour, $size) + { + parent::anchor(); + $this->colour($colour)->size($size)->rotation(45)->sides(4); + } +} + +class s_hollow_dot extends hollow_dot +{ + /** + * I use this wrapper for default dot types, + * it just makes the code easier to read. + */ + function s_hollow_dot($colour, $size) + { + parent::hollow_dot(); + $this->colour($colour)->size($size); + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_tags.php b/pacotes/openflashchart/php-ofc-library/ofc_tags.php new file mode 100644 index 0000000..e31f7d6 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_tags.php @@ -0,0 +1,133 @@ +type = "tags"; + $this->values = array(); + } + + function colour( $colour ) + { + $this->colour = $colour; + return $this; + } + + /** + *@param $font as string. e.g. "Verdana" + *@param $size as integer. Size in px + */ + function font($font, $size) + { + $this->font = $font; + $this->{'font-size'} = $size; + return $this; + } + + /** + *@param $x as integer. Size of x padding in px + *@param $y as integer. Size of y padding in px + */ + function padding($x, $y) + { + $this->{"pad-x"} = $x; + $this->{"pad-y"} = $y; + return $this; + } + + function rotate($angle) + { + $this->rotate($angle); + return $this; + } + + function align_x_center() + { + $this->{"align-x"} = "center"; + return $this; + } + + function align_x_left() + { + $this->{"align-x"} = "left"; + return $this; + } + + function align_x_right() + { + $this->{"align-x"} = "right"; + return $this; + } + + function align_y_above() + { + $this->{"align-y"} = "above"; + return $this; + } + + function align_y_below() + { + $this->{"align-y"} = "below"; + return $this; + } + + function align_y_center() + { + $this->{"align-y"} = "center"; + return $this; + } + + /** + * This can contain some HTML, e.g: + * - "More info" + * - "ofc" + */ + function text($text) + { + $this->text = $text; + return $this; + } + + /** + * This works, but to get the mouse pointer to change + * to a little hand you need to use "stuff"-- see text() + */ + function on_click($on_click) + { + $this->{'on-click'} = $on_click; + return $this; + } + + /** + *@param $bold boolean. + *@param $underline boolean. + *@param $border boolean. + *@prarm $alpha real (0 to 1.0) + */ + function style($bold, $underline, $border, $alpha ) + { + $this->bold = $bold; + $this->border = $underline; + $this->underline = $border; + $this->alpha = $alpha; + return $this; + } + + /** + *@param $tag as ofc_tag + */ + function append_tag($tag) + { + $this->values[] = $tag; + } +} + +class ofc_tag extends ofc_tags +{ + function ofc_tag($x, $y) + { + $this->x = $x; + $this->y = $y; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_title.php b/pacotes/openflashchart/php-ofc-library/ofc_title.php new file mode 100644 index 0000000..58d817a --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_title.php @@ -0,0 +1,39 @@ +text = $text; + } + + /** + * A css string. Can optionally contain: + * - font-size + * - font-family + * - font-weight + * - color + * - background-color + * - text-align + * - margin + * - margin-left + * - margin-right + * - margin-top + * - margin-bottom + * - padding + * - padding-left + * - padding-right + * - padding-top + * - padding-bottom + * just like the css we use all the time :-) + */ + function set_style( $css ) + { + $this->style = $css; + //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_tooltip.php b/pacotes/openflashchart/php-ofc-library/ofc_tooltip.php new file mode 100644 index 0000000..53ebb26 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_tooltip.php @@ -0,0 +1,67 @@ +shadow = $shadow; + } + + /** + * @param $stroke as integer, border width in pixels (e.g. 5 ) + */ + function set_stroke( $stroke ) + { + $this->stroke = $stroke; + } + + /** + * @param $colour as string, HEX colour e.g. '#0000ff' + */ + function set_colour( $colour ) + { + $this->colour = $colour; + } + + /** + * @param $bg as string, HEX colour e.g. '#0000ff' + */ + function set_background_colour( $bg ) + { + $this->background = $bg; + } + + /** + * @param $style as string. A css style. + */ + function set_title_style( $style ) + { + $this->title = $style; + } + + /** + * @param $style as string. A css style. + */ + function set_body_style( $style ) + { + $this->body = $style; + } + + function set_proximity() + { + $this->mouse = 1; + } + + function set_hover() + { + $this->mouse = 2; + } +} + diff --git a/pacotes/openflashchart/php-ofc-library/ofc_upload_image.php b/pacotes/openflashchart/php-ofc-library/ofc_upload_image.php new file mode 100644 index 0000000..7c54831 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_upload_image.php @@ -0,0 +1,70 @@ + save_image debug mode, you +// will see the 'echo' text in a new window. +// + +/* + +print_r( $_GET ); +print_r( $_POST ); +print_r( $_FILES ); + +print_r( $GLOBALS ); +print_r( $GLOBALS["HTTP_RAW_POST_DATA"] ); + +*/ + + +// default path for the image to be stored // +$default_path = '../tmp-upload-images/'; + +if (!file_exists($default_path)) mkdir($default_path, 0777, true); + +// full path to the saved image including filename // +$destination = $default_path . basename( $_GET[ 'name' ] ); + +echo 'Saving your image to: '. $destination; +// print_r( $_POST ); +// print_r( $_SERVER ); +// echo $HTTP_RAW_POST_DATA; + +// +// POST data is usually string data, but we are passing a RAW .png +// so PHP is a bit confused and $_POST is empty. But it has saved +// the raw bits into $HTTP_RAW_POST_DATA +// + +$jfh = fopen($destination, 'w') or die("can't open file"); +fwrite($jfh, $HTTP_RAW_POST_DATA); +fclose($jfh); + +// +// LOOK: +// +exit(); + + +// +// PHP5: +// + + +// default path for the image to be stored // +$default_path = 'tmp-upload-images/'; + +if (!file_exists($default_path)) mkdir($default_path, 0777, true); + +// full path to the saved image including filename // +$destination = $default_path . basename( $_FILES[ 'Filedata' ][ 'name' ] ); + +// move the image into the specified directory // +if (move_uploaded_file($_FILES[ 'Filedata' ][ 'tmp_name' ], $destination)) { + echo "The file " . basename( $_FILES[ 'Filedata' ][ 'name' ] ) . " has been uploaded;"; +} else { + echo "FILE UPLOAD FAILED"; +} + + +?> diff --git a/pacotes/openflashchart/php-ofc-library/ofc_x_axis.php b/pacotes/openflashchart/php-ofc-library/ofc_x_axis.php new file mode 100644 index 0000000..3bbaa67 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_x_axis.php @@ -0,0 +1,140 @@ +stroke = $stroke; + } + + function stroke( $stroke ) + { + $this->set_stroke( $stroke ); + return $this; + } + + /** + *@param $colour as string HEX colour + *@param $grid_colour as string HEX colour + */ + function set_colours( $colour, $grid_colour ) + { + $this->set_colour( $colour ); + $this->set_grid_colour( $grid_colour ); + } + + /** + *@param $colour as string HEX colour + */ + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function colour( $colour ) + { + $this->set_colour($colour); + return $this; + } + + function set_tick_height( $height ) + { + $tmp = 'tick-height'; + $this->$tmp = $height; + } + + function tick_height( $height ) + { + $this->set_tick_height($height); + return $this; + } + + function set_grid_colour( $colour ) + { + $tmp = 'grid-colour'; + $this->$tmp = $colour; + } + + function grid_colour( $colour ) + { + $this->set_grid_colour($colour); + return $this; + } + + /** + * @param $o is a boolean. If true, the X axis start half a step in + * This defaults to True + */ + function set_offset( $o ) + { + $this->offset = $o?true:false; + } + + function offset( $o ) + { + $this->set_offset($o); + return $this; + } + + /** + * @param $steps as integer. Which grid lines and ticks are visible. + */ + function set_steps( $steps ) + { + $this->steps = $steps; + } + + function steps( $steps ) + { + $this->set_steps($steps); + return $this; + } + + /** + * @param $val as an integer, the height in pixels of the 3D bar. Mostly + * used for the 3D bar chart. + */ + function set_3d( $val ) + { + $tmp = '3d'; + $this->$tmp = $val; + } + + /** + * @param $x_axis_labels as an x_axis_labels object + * Use this to customize the labels (colour, font, etc...) + */ + function set_labels( $x_axis_labels ) + { + //$this->labels = $v; + $this->labels = $x_axis_labels; + } + + /** + * Sugar syntax: helper function to make the examples simpler. + * @param $a is an array of labels + */ + function set_labels_from_array( $a ) + { + $x_axis_labels = new x_axis_labels(); + $x_axis_labels->set_labels( $a ); + $this->labels = $x_axis_labels; + + if( isset( $this->steps ) ) + $x_axis_labels->set_steps( $this->steps ); + } + + /** + * min and max. + */ + function set_range( $min, $max ) + { + $this->min = $min; + $this->max = $max; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_x_axis_label.php b/pacotes/openflashchart/php-ofc-library/ofc_x_axis_label.php new file mode 100644 index 0000000..2dc1492 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_x_axis_label.php @@ -0,0 +1,45 @@ +set_text( $text ); + $this->set_colour( $colour ); + $this->set_size( $size ); + $this->set_rotate( $rotate ); + } + + function set_text( $text ) + { + $this->text = $text; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_size( $size ) + { + $this->size = $size; + } + + function set_rotate( $rotate ) + { + $this->rotate = $rotate; + } + + function set_vertical() + { + $this->rotate = "vertical"; + } + + function set_visible() + { + $this->visible = true; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_x_axis_labels.php b/pacotes/openflashchart/php-ofc-library/ofc_x_axis_labels.php new file mode 100644 index 0000000..fb8e7d7 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_x_axis_labels.php @@ -0,0 +1,69 @@ +steps = $steps; + } + + /** + * @param $steps as integer which labels are visible + */ + function visible_steps( $steps ) + { + $this->{"visible-steps"} = $steps; + return $this; + } + + /** + * + * @param $labels as an array of [x_axis_label or string] + */ + function set_labels( $labels ) + { + $this->labels = $labels; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + /** + * font size in pixels + */ + function set_size( $size ) + { + $this->size = $size; + } + + /** + * rotate labels + */ + function set_vertical() + { + $this->rotate = 270; + } + + /** + * @param @angle as real. The angle of the text. + */ + function rotate( $angle ) + { + $this->rotate = $angle; + } + + /** + * @param $text as string. Replace and magic variables with actual x axis position. + */ + function text( $text ) + { + $this->text = $text; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_x_legend.php b/pacotes/openflashchart/php-ofc-library/ofc_x_legend.php new file mode 100644 index 0000000..f36c017 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_x_legend.php @@ -0,0 +1,15 @@ +text = $text; + } + + function set_style( $css ) + { + $this->style = $css; + //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_y_axis.php b/pacotes/openflashchart/php-ofc-library/ofc_y_axis.php new file mode 100644 index 0000000..449bc29 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_y_axis.php @@ -0,0 +1,17 @@ +$tmp = $colour; + } + +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_y_axis_base.php b/pacotes/openflashchart/php-ofc-library/ofc_y_axis_base.php new file mode 100644 index 0000000..b99519e --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_y_axis_base.php @@ -0,0 +1,116 @@ +stroke = $s; + } + + /** + * @param $val as integer. The length of the ticks in pixels + */ + function set_tick_length( $val ) + { + $tmp = 'tick-length'; + $this->$tmp = $val; + } + + function set_colours( $colour, $grid_colour ) + { + $this->set_colour( $colour ); + $this->set_grid_colour( $grid_colour ); + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_grid_colour( $colour ) + { + $tmp = 'grid-colour'; + $this->$tmp = $colour; + } + + /** + * Set min and max values, also (optionally) set the steps value. + * You can reverse the chart by setting min larger than max, e.g. min = 10 + * and max = 0. + * + * @param $min as integer + * @param $max as integer + * @param $steps as integer. + */ + function set_range( $min, $max, $steps=1 ) + { + $this->min = $min; + $this->max = $max; + $this->set_steps( $steps ); + } + + /** + * Sugar for set_range + */ + function range( $min, $max, $steps=1 ) + { + $this->set_range( $min, $max, $steps ); + return $this; + } + + /** + * @param $off as Boolean. If true the Y axis is nudged up half a step. + */ + function set_offset( $off ) + { + $this->offset = $off?1:0; + } + + /** + * @param $y_axis_labels as an y_axis_labels object + * Use this to customize the labels (colour, font, etc...) + */ + function set_labels( $y_axis_labels ) + { + $this->labels = $y_axis_labels; + } + + /** + * Pass in some text for each label. This can contain magic variables "#val#" which + * will get replaced with the value for that Y axis label. Useful for: + * - "£#val#" + * - "#val#%" + * - "#val# million" + * + * @param $text as string. + */ + function set_label_text( $text ) + { + $tmp = new y_axis_labels(); + $tmp->set_text( $text ); + $this->labels = $tmp; + } + + /** + * @param $steps as integer. + * + * Only show every $steps label, e.g. every 10th + */ + function set_steps( $steps ) + { + $this->steps = $steps; + } + + /** + * Make the labels show vertical + */ + function set_vertical() + { + $this->rotate = "vertical"; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_y_axis_label.php b/pacotes/openflashchart/php-ofc-library/ofc_y_axis_label.php new file mode 100644 index 0000000..bded9b8 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_y_axis_label.php @@ -0,0 +1,38 @@ +y = $y; + $this->set_text( $text ); + } + + function set_text( $text ) + { + $this->text = $text; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_size( $size ) + { + $this->size = $size; + } + + function set_rotate( $rotate ) + { + $this->rotate = $rotate; + } + + function set_vertical() + { + $this->rotate = "vertical"; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_y_axis_labels.php b/pacotes/openflashchart/php-ofc-library/ofc_y_axis_labels.php new file mode 100644 index 0000000..75f777e --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_y_axis_labels.php @@ -0,0 +1,57 @@ +steps = $steps; + } + + /** + * + * @param $labels as an array of [y_axis_label or string] + */ + function set_labels( $labels ) + { + $this->labels = $labels; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + /** + * font size in pixels + */ + function set_size( $size ) + { + $this->size = $size; + } + + /** + * rotate labels + */ + function set_vertical() + { + $this->rotate = 270; + } + + function rotate( $angle ) + { + $this->rotate = $angle; + } + + /** + * @param $text default text that all labels inherit + */ + function set_text( $text ) + { + $this->text = $text; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/ofc_y_axis_right.php b/pacotes/openflashchart/php-ofc-library/ofc_y_axis_right.php new file mode 100644 index 0000000..1e09111 --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/ofc_y_axis_right.php @@ -0,0 +1,6 @@ +text = $text; + } + + function set_style( $css ) + { + $this->style = $css; + //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"; + } +} \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/open-flash-chart-object.php b/pacotes/openflashchart/php-ofc-library/open-flash-chart-object.php new file mode 100644 index 0000000..d3b64aa --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/open-flash-chart-object.php @@ -0,0 +1,109 @@ +'; + + if( !isset( $open_flash_chart_seqno ) ) + { + $open_flash_chart_seqno = 1; + $out[] = ''; + } + else + { + $open_flash_chart_seqno++; + $obj_id .= '_'. $open_flash_chart_seqno; + $div_name .= '_'. $open_flash_chart_seqno; + } + + if( $use_swfobject ) + { + // Using library for auto-enabling Flash object on IE, disabled-Javascript proof + $out[] = '
'; + $out[] = ''; + $out[] = ''; + } + + return implode("\n",$out); +} +?> \ No newline at end of file diff --git a/pacotes/openflashchart/php-ofc-library/open-flash-chart.php b/pacotes/openflashchart/php-ofc-library/open-flash-chart.php new file mode 100644 index 0000000..2a90eaf --- /dev/null +++ b/pacotes/openflashchart/php-ofc-library/open-flash-chart.php @@ -0,0 +1,178 @@ +title = new title( "Many data lines" ); + $this->elements = array(); + } + + function set_title( $t ) + { + $this->title = $t; + } + + function set_x_axis( $x ) + { + $this->x_axis = $x; + } + + function set_y_axis( $y ) + { + $this->y_axis = $y; + } + + function add_y_axis( $y ) + { + $this->y_axis = $y; + } + + function set_y_axis_right( $y ) + { + $this->y_axis_right = $y; + } + + function add_element( $e ) + { + $this->elements[] = $e; + } + + function set_x_legend( $x ) + { + $this->x_legend = $x; + } + + function set_y_legend( $y ) + { + $this->y_legend = $y; + } + + function set_bg_colour( $colour ) + { + $this->bg_colour = $colour; + } + + function set_radar_axis( $radar ) + { + $this->radar_axis = $radar; + } + + function set_tooltip( $tooltip ) + { + $this->tooltip = $tooltip; + } + + /** + * This is a bit funky :( + * + * @param $num_decimals as integer. Truncate the decimals to $num_decimals, e.g. set it + * to 5 and 3.333333333 will display as 3.33333. 2.0 will display as 2 (or 2.00000 - see below) + * @param $is_fixed_num_decimals_forced as boolean. If true it will pad the decimals. + * @param $is_decimal_separator_comma as boolean + * @param $is_thousand_separator_disabled as boolean + * + * This needs a bit of love and attention + */ + function set_number_format($num_decimals, $is_fixed_num_decimals_forced, $is_decimal_separator_comma, $is_thousand_separator_disabled ) + { + $this->num_decimals = $num_decimals; + $this->is_fixed_num_decimals_forced = $is_fixed_num_decimals_forced; + $this->is_decimal_separator_comma = $is_decimal_separator_comma; + $this->is_thousand_separator_disabled = $is_thousand_separator_disabled; + } + + /** + * This is experimental and will change as we make it work + * + * @param $m as ofc_menu + */ + function set_menu($m) + { + $this->menu = $m; + } + + function toString() + { + if (function_exists('json_encode')) + { + return json_encode($this); + } + else + { + $json = new Services_JSON(); + return $json->encode( $this ); + } + } + + function toPrettyString() + { + return json_format( $this->toString() ); + } +} + + + +// +// there is no PHP end tag so we don't mess the headers up! +// \ No newline at end of file diff --git a/pacotes/openflashchart/php5-ofc-library/README.txt b/pacotes/openflashchart/php5-ofc-library/README.txt new file mode 100644 index 0000000..47f0520 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/README.txt @@ -0,0 +1,16 @@ +Open Flash Chart - PHP5 libraries. These help create data files for Open Flash Chart. +Copyright (C) 2007 + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA diff --git a/pacotes/openflashchart/php5-ofc-library/build_package.php b/pacotes/openflashchart/php5-ofc-library/build_package.php new file mode 100644 index 0000000..09bc6b4 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/build_package.php @@ -0,0 +1,138 @@ + role + 'simpletest'=> 'test', + 'examples'=> 'data', +); + +$exceptions = array( + // filename=> role + 'build_package.php'=> 'data', +); + +$ignore = array( + // file|dir/ + 'tmp/', +); + +$roles = array( + // fileext=> role + 'php'=> 'php', +); + +$category = 'Libraries'; + +$license = 'PHP'; +$notes = 'Helper library for working with Open Flash Charts'; + +$version = '2.0.0'; +$apiVersion = '2.0.0'; + +$simpleoutput = true; +$state = 'beta'; +$summary = 'Open Flash Charts interface library'; + + +/** + * Package metadata + */ + +$releaseStability = 'beta'; +$apiStability = 'stable'; + +$maintainers = array( + // role, username on PEAR.net,full name, email + array('lead', 'open-flash-chart', 'John Glazebrook', 'open-flash-chart@teethgrinder.co.uk'), +); + + + + +$packageSourceDirectory = dirname(__FILE__); + +$options = array( + 'baseinstalldir' => $baseInstallDir, + 'dir_roles' => $dirRoles, + 'exceptions' => $exceptions, + 'filelistgenerator' => 'File', + 'ignore' => $ignore, + 'packagedirectory' => $packageSourceDirectory, + 'pathtopackagefile' => dirname(__FILE__), + 'roles' => $roles, + 'simpleoutput' => $simpleoutput, + 'state' => $state, + 'version' => $version, +); + +$pkg = new PEAR_PackageFileManager2(); + +handleError($pkg->setOptions($options)); + +// Set misc package information +$pkg->setPackage($package); +$pkg->setSummary($summary); +$pkg->setDescription($description); +$pkg->setChannel($channel); + +$pkg->setReleaseStability($releaseStability); +$pkg->setAPIStability($apiStability); +$pkg->setReleaseVersion($version); +$pkg->setAPIVersion($apiVersion); + +$pkg->setLicense($license); +$pkg->setNotes($notes); + + + +$pkg->setPackageType('php'); +$pkg->setPhpDep('5.0.0'); +$pkg->setPearinstallerDep('1.4.9'); + +// Require custom file role for our web installation +// $pkg->addPackageDepWithChannel('required', 'Role_Web', 'pearified.com'); + +// Define that we will use our custom file role in this script +// $pkg->addUsesRole('web', 'Webfiles'); + +// Create the current release and add it to the package definition +$pkg->addRelease(); + +handleError($pkg->generateContents()); + +// Package release needs a maintainer +foreach($maintainers as $m) { + handleError($pkg->addMaintainer($m[0], $m[1], $m[2], $m[3])); +} + +if($argv[1] === 'write') { + handleError($pkg->writePackageFile()); + exit(1); +} + +handleError($pkg->debugPackageFile()); + + +/** + * Simple error handler + * + * @param Exception $e + */ +function handleError($e) { + if(PEAR::isError($e)) { + die($e->getMessage()); + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/examples/3d-bar-chart.php b/pacotes/openflashchart/php5-ofc-library/examples/3d-bar-chart.php new file mode 100644 index 0000000..d21cf2b --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/3d-bar-chart.php @@ -0,0 +1,29 @@ +set_values( $data ); +$bar->colour = '#D54C78'; + +$x_axis = new OFC_Elements_Axis_X(); +$x_axis->set_3d( 5 ); +$x_axis->colour = '#909090'; +$x_axis->set_labels( array(1,2,3,4,5,6,7,8,9,10) ); + +$chart = new OFC_Chart(); +$chart->set_title( $title ); +$chart->add_element( $bar ); +$chart->set_x_axis( $x_axis ); + +echo $chart->toPrettyString(); + diff --git a/pacotes/openflashchart/php5-ofc-library/examples/area-hollow.php b/pacotes/openflashchart/php5-ofc-library/examples/area-hollow.php new file mode 100644 index 0000000..6dcf6d7 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/area-hollow.php @@ -0,0 +1,48 @@ +set_title( new OFC_Elements_Title( 'Area Chart' ) ); + +// +// Make our area chart: +// +$area = new OFC_Charts_Area_Hollow(); +// set the circle line width: +$area->set_width( 1 ); +$area->set_values( $data ); +// add the area object to the chart: +$chart->add_element( $area ); + +$y_axis = new OFC_Elements_Axis_Y(); +$y_axis->set_range( -2, 2, 2 ); +$y_axis->labels = null; +$y_axis->set_offset( false ); + +$x_axis = new OFC_Elements_Axis_X(); +$x_axis->labels = $data; +$x_axis->set_steps( 2 ); + +$x_labels = new OFC_Elements_Axis_X_Label_Set(); +$x_labels->set_steps( 4 ); +$x_labels->set_vertical(); +// Add the X Axis Labels to the X Axis +$x_axis->set_labels( $x_labels ); + + + +$chart->add_y_axis( $y_axis ); +$chart->x_axis = $x_axis; + +echo $chart->toPrettyString(); + diff --git a/pacotes/openflashchart/php5-ofc-library/examples/bar-chart.php b/pacotes/openflashchart/php5-ofc-library/examples/bar-chart.php new file mode 100644 index 0000000..3d7ed7f --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/bar-chart.php @@ -0,0 +1,32 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/OFC_Chart.php'); + +$title = new OFC_Elements_Title( date("D M d Y") ); + +$bar = new OFC_Charts_Bar(); +$bar->set_values( array(9,8,7,6,5,4,3,2,1) ); + +$chart = new OFC_Chart(); +$chart->set_title( $title ); +$chart->add_element( $bar ); + +echo $chart->toPrettyString(); diff --git a/pacotes/openflashchart/php5-ofc-library/examples/data-lines-2.php b/pacotes/openflashchart/php5-ofc-library/examples/data-lines-2.php new file mode 100644 index 0000000..8e2b5db --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/data-lines-2.php @@ -0,0 +1,68 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/OFC_Chart.php'); + +// generate some random data +srand((double)microtime()*1000000); + +$data_1 = array(); +$data_2 = array(); +$data_3 = array(); +for( $i=0; $i<9; $i++ ) +{ + $data_1[] = rand(1,6); + $data_2[] = rand(7,13); + $data_3[] = rand(14,19); +} + + +$line_dot = new OFC_Charts_Line_Dot(); +$line_dot->set_width( 4 ); +$line_dot->set_colour( '#DFC329' ); +$line_dot->set_dot_size( 5 ); +$line_dot->set_values( $data_1 ); + +$line_hollow = new OFC_Charts_Line_Hollow(); +$line_hollow->set_width( 1 ); +$line_hollow->set_colour( '#6363AC' ); +$line_hollow->set_dot_size( 5 ); +$line_hollow->set_values( $data_2 ); + +$line = new OFC_Charts_Line(); +$line->set_width( 1 ); +$line->set_colour( '#5E4725' ); +$line->set_dot_size( 5 ); +$line->set_values( $data_3 ); + +$y = new OFC_Elements_Axis_Y(); +$y->set_range( 0, 20, 5 ); + +$chart = new OFC_Chart(); +$chart->set_title( new OFC_Elements_Title( 'Three lines example' ) ); +$chart->set_y_axis( $y ); +// +// here we add our data sets to the chart: +// +$chart->add_element( $line_dot ); +$chart->add_element( $line_hollow ); +$chart->add_element( $line ); + +echo $chart->toPrettyString(); diff --git a/pacotes/openflashchart/php5-ofc-library/examples/data-lines.php b/pacotes/openflashchart/php5-ofc-library/examples/data-lines.php new file mode 100644 index 0000000..48ef2bd --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/data-lines.php @@ -0,0 +1,33 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/OFC_Chart.php'); + +$title = new OFC_Elements_Title( date("D M d Y") ); + +$line_dot = new OFC_Charts_Line(); +$line_dot->set_values( array(9,8,7,6,5,4,3,2,1) ); + +$chart = new OFC_Chart(); +$chart->set_title( $title ); +$chart->add_element( $line_dot ); + +echo $chart->toPrettyString(); + diff --git a/pacotes/openflashchart/php5-ofc-library/examples/glass-bar-chart.php b/pacotes/openflashchart/php5-ofc-library/examples/glass-bar-chart.php new file mode 100644 index 0000000..646c486 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/glass-bar-chart.php @@ -0,0 +1,32 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/OFC_Chart.php'); + +$title = new OFC_Elements_Title( date("D M d Y") ); + +$bar = new OFC_Charts_Bar_Glass(); +$bar->set_values( array(9,8,7,6,5,4,3,2,1) ); + +$chart = new OFC_Chart(); +$chart->set_title( $title ); +$chart->add_element( $bar ); + +echo $chart->toString(); diff --git a/pacotes/openflashchart/php5-ofc-library/examples/horizontal-bar-chart.php b/pacotes/openflashchart/php5-ofc-library/examples/horizontal-bar-chart.php new file mode 100644 index 0000000..8f8c6ed --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/horizontal-bar-chart.php @@ -0,0 +1,45 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/OFC_Chart.php'); + +$title = new OFC_Elements_Title( "Our New House Schedule" ); + +$hbar = new OFC_Charts_Bar_Horizontal(); +$hbar->append_value( new OFC_Charts_Bar_Horizontal_Value(0,4) ); +$hbar->append_value( new OFC_Charts_Bar_Horizontal_Value(4,8) ); +$hbar->append_value( new OFC_Charts_Bar_Horizontal_Value(8,11) ); + +$chart = new OFC_Chart(); +$chart->set_title( $title ); +$chart->add_element( $hbar ); +$chart->add_y_axis( new OFC_Elements_Axis_Y() ); + +$x = new OFC_Elements_Axis_X(); +$x->set_offset( false ); +$x->set_labels_from_array( array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec') ); +$chart->set_x_axis( $x ); + +$y = new OFC_Elements_Axis_Y(); +$y->set_offset( true ); +$y->set_labels( array( "Make garden look sexy","Paint house","Move into house" ) ); +$chart->add_y_axis( $y ); + +echo $chart->toPrettyString(); diff --git a/pacotes/openflashchart/php5-ofc-library/examples/line-dot.php b/pacotes/openflashchart/php5-ofc-library/examples/line-dot.php new file mode 100644 index 0000000..70aacae --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/line-dot.php @@ -0,0 +1,69 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/OFC_Chart.php'); + +$data_1 = array(); +$data_2 = array(); +$data_3 = array(); + +for( $i=0; $i<6.2; $i+=0.2 ) +{ + $data_1[] = (sin($i) * 1.9) + 7; + $data_2[] = (sin($i) * 1.9) + 10; + $data_3[] = (sin($i) * 1.9) + 4; + + // just show to two decimal places + // in our labels: + //$labels[] = number_format($tmp,2); +} + +$title = new OFC_Elements_Title( date("D M d Y") ); + +$line_1 = new OFC_Charts_Line_Dot(); +$line_1->set_values( $data_1 ); +$line_1->set_halo_size( 0 ); +$line_1->set_width( 2 ); +$line_1->set_dot_size( 4 ); + +$line_2 = new OFC_Charts_Line_Dot(); +$line_2->set_values( $data_2 ); +$line_2->set_halo_size( 1 ); +$line_2->set_width( 1 ); +$line_2->set_dot_size( 4 ); + +$line_3 = new OFC_Charts_Line_Dot(); +$line_3->set_values( $data_3 ); +$line_3->set_halo_size( 1 ); +$line_3->set_width( 6 ); +$line_3->set_dot_size( 4 ); + +$y = new OFC_Elements_Axis_Y(); +$y->set_range( 0, 15, 5 ); + + +$chart = new OFC_Chart(); +$chart->set_title( $title ); +$chart->add_element( $line_1 ); +$chart->add_element( $line_2 ); +$chart->add_element( $line_3 ); +$chart->set_y_axis( $y ); + +echo $chart->toPrettyString(); diff --git a/pacotes/openflashchart/php5-ofc-library/examples/line-hollow.php b/pacotes/openflashchart/php5-ofc-library/examples/line-hollow.php new file mode 100644 index 0000000..f0174d3 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/line-hollow.php @@ -0,0 +1,69 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/OFC_Chart.php'); + +$data_1 = array(); +$data_2 = array(); +$data_3 = array(); + +for( $i=0; $i<6.2; $i+=0.2 ) +{ + $data_1[] = (sin($i) * 1.9) + 7; + $data_2[] = (sin($i) * 1.9) + 10; + $data_3[] = (sin($i) * 1.9) + 4; + + // just show to two decimal places + // in our labels: + //$labels[] = number_format($tmp,2); +} + +$title = new OFC_Elements_Title( date("D M d Y") ); + +$line_1 = new OFC_Charts_Line_Hollow(); +$line_1->set_values( $data_1 ); +$line_1->set_halo_size( 0 ); +$line_1->set_width( 2 ); +$line_1->set_dot_size( 5 ); + +$line_2 = new OFC_Charts_Line_Hollow(); +$line_2->set_values( $data_2 ); +$line_2->set_halo_size( 1 ); +$line_2->set_width( 1 ); +$line_2->set_dot_size( 4 ); + +$line_3 = new OFC_Charts_Line_Hollow(); +$line_3->set_values( $data_3 ); +$line_3->set_halo_size( 1 ); +$line_3->set_width( 6 ); +$line_3->set_dot_size( 4 ); + +$y = new OFC_Elements_Axis_Y(); +$y->set_range( 0, 15, 5 ); + + +$chart = new OFC_Chart(); +$chart->set_title( $title ); +$chart->add_element( $line_1 ); +$chart->add_element( $line_2 ); +$chart->add_element( $line_3 ); +$chart->set_y_axis( $y ); + +echo $chart->toPrettyString(); diff --git a/pacotes/openflashchart/php5-ofc-library/examples/pie-chart.php b/pacotes/openflashchart/php5-ofc-library/examples/pie-chart.php new file mode 100644 index 0000000..9bd2dc1 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/pie-chart.php @@ -0,0 +1,37 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/OFC_Chart.php'); + +$title = new OFC_Elements_Title( 'Area Chart' ); + +$pie = new OFC_Charts_Pie(); +$pie->set_start_angle( 35 ); +$pie->set_animate( true ); + +$chart = new OFC_Chart(); +$chart->set_title( $title ); +$chart->add_element( $pie ); + + +$chart->x_axis = null; + +echo $chart->toPrettyString(); + diff --git a/pacotes/openflashchart/php5-ofc-library/examples/scatter-chart.php b/pacotes/openflashchart/php5-ofc-library/examples/scatter-chart.php new file mode 100644 index 0000000..42364e2 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/scatter-chart.php @@ -0,0 +1,63 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/OFC_Chart.php'); + +$chart = new OFC_Chart(); + +$title = new OFC_Elements_Title( date("D M d Y") ); +$chart->set_title( $title ); + +$scatter = new OFC_Charts_Scatter( '#FFD600', 10 ); +$scatter->set_values( + array( + new OFC_Charts_Scatter_Value( 0, 0 ) + ) + ); + +$chart->add_element( $scatter ); + + +// +// plot a circle +// +$s2 = new OFC_Charts_Scatter( '#D600FF', 3 ); +$v = array(); + +for( $i=0; $i<360; $i+=5 ) +{ + $v[] = new OFC_Charts_Scatter_Value( + number_format(sin(deg2rad($i)), 2, '.', ''), + number_format(cos(deg2rad($i)), 2, '.', '') ); +} +$s2->set_values( $v ); +$chart->add_element( $s2 ); + +$x = new OFC_Elements_Axis_X(); +$x->set_range( -2, 2 ); +$chart->set_x_axis( $x ); + +$y = new OFC_Elements_Axis_Y(); +$y->set_range( -2, 2 ); +$chart->add_y_axis( $y ); + + +echo $chart->toPrettyString(); + diff --git a/pacotes/openflashchart/php5-ofc-library/examples/sketch-bar-chart.php b/pacotes/openflashchart/php5-ofc-library/examples/sketch-bar-chart.php new file mode 100644 index 0000000..4521bcd --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/sketch-bar-chart.php @@ -0,0 +1,33 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/OFC_Chart.php'); + +$title = new OFC_Elements_Title( date("D M d Y") ); +$title->set_style( '{color: #567300; font-size: 14px}' ); + +$bar = new OFC_Charts_Bar_Sketch( '#81AC00', '#567300', 5 ); +$bar->set_values( array(9,8,7,6,5,4,3,2,1) ); + +$chart = new OFC_Chart(); +$chart->set_title( $title ); +$chart->add_element( $bar ); + +echo $chart->toPrettyString(); diff --git a/pacotes/openflashchart/php5-ofc-library/examples/stacked-bar-chart.php b/pacotes/openflashchart/php5-ofc-library/examples/stacked-bar-chart.php new file mode 100644 index 0000000..4ed4077 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/examples/stacked-bar-chart.php @@ -0,0 +1,25 @@ +append_stack( array( 2.5, 5 ) ); +$bar_stack->append_stack( array( 7.5 ) ); +$bar_stack->append_stack( array( 5, new OFC_Charts_Bar_Stack_Value(5, '#ff0000') ) ); +$bar_stack->append_stack( array( 2, 2, 2, 2, new OFC_Charts_Bar_Stack_Value(2, '#ff00ff') ) ); + +$y = new OFC_Elements_Axis_Y(); +$y->set_range( 0, 14, 7 ); + +$x = new OFC_Elements_Axis_X(); +$x->set_labels( array( 'a', 'b', 'c', 'd' ) ); + +$chart = new OFC_Chart(); +$chart->set_title( $title ); +$chart->add_element( $bar_stack ); +$chart->set_x_axis( $x ); +$chart->add_y_axis( $y ); + +echo $chart->toPrettyString(); diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Area/OFC_Charts_Area_Hollow.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Area/OFC_Charts_Area_Hollow.php new file mode 100644 index 0000000..324c61c --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Area/OFC_Charts_Area_Hollow.php @@ -0,0 +1,61 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Area.php'); + +class OFC_Charts_Area_Hollow extends OFC_Charts_Area +{ + function OFC_Charts_Area_Hollow() + { + parent::OFC_Charts_Area(); + + $this->type = 'area_hollow'; + + $this->{'fill-alpha'} = 0.35; + + $this->values = array(); + } + + function set_width( $w ) + { + $this->width = $w; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_values( $v ) { + $this->values = $v; + } + + function set_dot_size( $size ) + { + $this->{'dot-size'} = $size; + } + + function set_key( $text, $font_size ) + { + $this->text = $text; + $this->{'font-size'} = $font_size; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_3d.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_3d.php new file mode 100644 index 0000000..a4cb29a --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_3d.php @@ -0,0 +1,51 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Bar.php'); + +class bar_3d_value +{ + function bar_3d_value( $top ) + { + $this->top = $top; +// $this->bottom = $bottom; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class OFC_Charts_Bar_3d extends OFC_Charts_Bar +{ + function OFC_Charts_Bar_3d() + { + parent::OFC_Charts_Bar(); + + $this->type = 'bar_3d'; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Filled.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Filled.php new file mode 100644 index 0000000..fe1e990 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Filled.php @@ -0,0 +1,60 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Bar.php'); + +class OFC_Charts_Bar_Filled_Value extends OFC_Charts_Bar_Value +{ + function OFC_Charts_Bar_Filled_Value( $val, $colour ) + { + parent::OFC_Charts_Bar_Value( $val, $colour ); + } + + function set_outline_colour( $outline_colour ) + { + $this->{'outline-colour'} = $outline_colour; + } +} + +class OFC_Charts_Bar_Filled extends OFC_Charts_Bar +{ + function OFC_Charts_Bar_Filled( $colour=null, $outline_colour=null ) + { + parent::OFC_Charts_Bar(); + + $this->type = 'bar_filled'; + + if( isset( $colour ) ) + { + $this->set_colour( $colour ); + } + + if( isset( $outline_colour ) ) + { + $this->set_outline_colour( $outline_colour ); + } + } + + function set_outline_colour( $outline_colour ) + { + $this->{'outline-colour'} = $outline_colour; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Glass.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Glass.php new file mode 100644 index 0000000..7dc2553 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Glass.php @@ -0,0 +1,52 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Bar.php'); + +class bar_glass_value +{ + function bar_glass_value( $top ) + { + $this->top = $top; +// $this->bottom = $bottom; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class OFC_Charts_Bar_Glass extends OFC_Charts_Bar +{ + + function OFC_Charts_Bar_Glass() + { + parent::OFC_Charts_Bar(); + + $this->type = 'bar_glass'; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Horizontal.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Horizontal.php new file mode 100644 index 0000000..f6dab74 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Horizontal.php @@ -0,0 +1,49 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Bar.php'); + +class OFC_Charts_Bar_Horizontal_Value +{ + function OFC_Charts_Bar_Horizontal_Value( $left, $right ) + { + $this->left = $left; + $this->right = $right; + } +} + +class OFC_Charts_Bar_Horizontal +{ + + function OFC_Charts_Bar_Horizontal() + { + $this->type = "hbar"; + $this->colour = "#9933CC"; + $this->text = "Page views";; + $this->{'font-size'} = 10; + $this->values = array(); + } + + function append_value( $v ) + { + $this->values[] = $v; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Sketch.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Sketch.php new file mode 100644 index 0000000..cdc2e4b --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Sketch.php @@ -0,0 +1,41 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Bar.php'); + +class OFC_Charts_Bar_Sketch extends OFC_Charts_Bar +{ + function OFC_Charts_Bar_Sketch( $colour, $outline_colour, $fun_factor ) + { + parent::OFC_Charts_Bar(); + + $this->type = 'bar_sketch'; + + $this->set_colour( $colour ); + $this->set_outline_colour( $outline_colour ); + $this->offset = $fun_factor; + } + + function set_outline_colour( $outline_colour ) + { + $this->{'outline-colour'} = $outline_colour; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Stack.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Stack.php new file mode 100644 index 0000000..ad28752 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Stack.php @@ -0,0 +1,46 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Bar.php'); + +class OFC_Charts_Bar_Stack_Value +{ + function OFC_Charts_Bar_Stack_Value( $val, $colour ) + { + $this->val = $val; + $this->colour = $colour; + } +} + +class OFC_Charts_Bar_Stack extends OFC_Charts_Bar +{ + function OFC_Charts_Bar_Stack() + { + parent::OFC_Charts_Bar(); + + $this->type = 'bar_stack'; + } + + function append_stack( $v ) + { + $this->append_value( $v ); + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Value.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Value.php new file mode 100644 index 0000000..27fe49c --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Bar/OFC_Charts_Bar_Value.php @@ -0,0 +1,45 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Bar.php'); + +class OFC_Charts_Bar_Value +{ + function OFC_Charts_Bar_Value( $top, $bottom=null ) + { + $this->top = $top; + + if( isset( $bottom ) ) + { + $this->bottom = $bottom; + } + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Line/OFC_Charts_Line_Dot.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Line/OFC_Charts_Line_Dot.php new file mode 100644 index 0000000..2e3363f --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Line/OFC_Charts_Line_Dot.php @@ -0,0 +1,32 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Line.php'); + +class OFC_Charts_Line_Dot extends OFC_Charts_Line +{ + function OFC_Charts_Line_Dot() + { + parent::OFC_Charts_Line(); + + $this->type = 'line_dot'; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Line/OFC_Charts_Line_Hollow.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Line/OFC_Charts_Line_Hollow.php new file mode 100644 index 0000000..40afd85 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Line/OFC_Charts_Line_Hollow.php @@ -0,0 +1,32 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Line.php'); + +class OFC_Charts_Line_Hollow extends OFC_Charts_Line +{ + function OFC_Charts_Line_Hollow() + { + parent::OFC_Charts_Line(); + + $this->type = 'line_hollow'; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Area.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Area.php new file mode 100644 index 0000000..91c4ad5 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Area.php @@ -0,0 +1,33 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Base.php'); + +class OFC_Charts_Area extends OFC_Charts_Base +{ + + function OFC_Charts_Area() + { + parent::OFC_Charts_Base(); + + $this->type = 'area'; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Bar.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Bar.php new file mode 100644 index 0000000..983536f --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Bar.php @@ -0,0 +1,86 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Base.php'); + +class OFC_Charts_Bar_Value +{ + function OFC_Charts_Bar_Value( $top, $bottom=null ) + { + $this->top = $top; + + if( isset( $bottom ) ) + { + $this->bottom = $bottom; + } + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class OFC_Charts_Bar extends OFC_Charts_Base +{ + function OFC_Charts_Bar() + { + parent::OFC_Charts_Base(); + + $this->type = 'bar'; + } + + function set_key( $text, $size ) + { + $this->text = $text; + $this->{'font-size'} = $size; + } + + function set_values( $v ) + { + $this->values = $v; + } + + function append_value( $v ) + { + $this->values[] = $v; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_alpha( $alpha ) + { + $this->alpha = $alpha; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Base.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Base.php new file mode 100644 index 0000000..6559b14 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Base.php @@ -0,0 +1,27 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +class OFC_Charts_Base +{ + function OFC_Charts_Base() + { + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Line.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Line.php new file mode 100644 index 0000000..4e6fba1 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Line.php @@ -0,0 +1,63 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Base.php'); + +class OFC_Charts_Line extends OFC_Charts_Base +{ + function OFC_Charts_Line() + { + parent::OFC_Charts_Base(); + + $this->type = 'line'; + } + + function set_values( $v ) + { + $this->values = $v; + } + + function set_width( $width ) + { + $this->width = $width; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_dot_size( $size ) + { + $this->{'dot-size'} = $size; + } + + function set_halo_size( $size ) + { + $this->{'halo-size'} = $size; + } + + function set_key( $text, $font_size ) + { + $this->text = $text; + $this->{'font-size'} = $font_size; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Pie.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Pie.php new file mode 100644 index 0000000..5567414 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Pie.php @@ -0,0 +1,57 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Base.php'); + +class OFC_Charts_Pie_Value +{ + function OFC_Charts_Pie_Value( $value, $text ) + { + $this->value = $value; + $this->text = $text; + } +} + +class OFC_Charts_Pie extends OFC_Charts_Base +{ + function OFC_Charts_Pie() + { + parent::OFC_Charts_Base(); + + $this->type = 'pie'; + $this->colours = array("#d01f3c","#356aa0","#C79810"); + $this->alpha = 0.6; + $this->border = 2; + $this->values = array(2,3,new OFC_Charts_Pie_Value(6.5, 'hello (6.5)')); + } + + // boolean + function set_animate( $v ) + { + $this->animate = $v; + } + + // real + function set_start_angle( $angle ) + { + $this->{'start-angle'} = $angle; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Scatter.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Scatter.php new file mode 100644 index 0000000..b68d150 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/OFC_Charts_Scatter.php @@ -0,0 +1,63 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Charts/OFC_Charts_Base.php'); + +class OFC_Charts_Scatter_Value +{ + function OFC_Charts_Scatter_Value( $x, $y, $dot_size=-1 ) + { + $this->x = $x; + $this->y = $y; + + if( $dot_size > 0 ) + { + $this->{'dot-size'} = $dot_size; + } + } +} + +class OFC_Charts_Scatter extends OFC_Charts_Base +{ + function OFC_Charts_Scatter( $colour, $dot_size ) + { + parent::OFC_Charts_Base(); + + $this->type = 'scatter'; + $this->set_colour( $colour ); + $this->set_dot_size( $dot_size ); + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_dot_size( $dot_size ) + { + $this->{'dot-size'} = $dot_size; + } + + function set_values( $values ) + { + $this->values = $values; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Scatter/OFC_Scatter_Line.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Scatter/OFC_Scatter_Line.php new file mode 100644 index 0000000..48ebae9 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Charts/Scatter/OFC_Scatter_Line.php @@ -0,0 +1,31 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + + require_once('OFC/Charts/OFC_Charts_Scatter.php'); + + class OFC_Charts_Scatter_Line extends OFC_Charts_Scatter + { + function OFC_Charts_Scatter_Line( $colour, $dot_size ) + { + parent::OFC_Charts_Scatter( $colour, $dot_size ); + + $this->type = 'scatter_line'; + } + } \ No newline at end of file diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X.php new file mode 100644 index 0000000..00839a2 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X.php @@ -0,0 +1,81 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Elements/OFC_Elements_Axis.php'); +require_once('OFC/Elements/Axis/OFC_Elements_Axis_X_Label_Set.php'); + +class OFC_Elements_Axis_X extends OFC_Elements_Axis +{ + function OFC_Elements_Axis_X() + { + parent::OFC_Elements_Axis(); + } + + function set_stroke( $stroke ) + { + $this->stroke = $stroke; + } + + function set_tick_height( $height ) + { + $this->{'tick-height'} = $height; + } + + // $o is a boolean + function set_offset( $o ) + { + $this->offset = ($o) ? true : false; + } + + function set_3d( $val ) + { + $this->{'3d'} = $val; + } + + function set_labels( $x_axis_labels ) + { + $this->labels = $x_axis_labels; + } + + function set_range( $min, $max, $steps=1 ) + { + $this->min = $min; + $this->max = $max; + $this->set_steps( $steps ); + } + + /** + * helper function to make the examples + * simpler. + */ + function set_labels_from_array( $a ) + { + $x_axis_labels = new OFC_Elements_Axis_X_Label_Set(); + $x_axis_labels->set_labels( $a ); + + $this->labels = $x_axis_labels; + + if( isset( $this->steps ) ) + { + $x_axis_labels->set_steps( $this->steps ); + } + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X_Label.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X_Label.php new file mode 100644 index 0000000..2ee291e --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X_Label.php @@ -0,0 +1,63 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +class OFC_Elements_Axis_X_Label extends OFC_Elements_Base +{ + function OFC_Elements_Axis_X_Label( $text, $colour, $size, $rotate ) + { + parent::OFC_Elements_Base(); + + $this->set_text( $text ); + $this->set_colour( $colour ); + $this->set_size( $size ); + $this->set_rotate( $rotate ); + } + + function set_text( $text ) + { + $this->text = $text; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_size( $size ) + { + $this->size = $size; + } + + function set_rotate( $rotate ) + { + $this->rotate = $rotate; + } + + function set_vertical() + { + $this->rotate = 'vertical'; + } + + function set_visible() + { + $this->visible = true; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X_Label_Set.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X_Label_Set.php new file mode 100644 index 0000000..8086775 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_X_Label_Set.php @@ -0,0 +1,55 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +class OFC_Elements_Axis_X_Label_Set +{ + function OFC_Elements_Axis_X_Label_Set() + { + } + + function set_steps( $steps ) + { + $this->steps = $steps; + } + + /** + * An array of [x_axis_label or string] + */ + function set_labels( $labels ) + { + $this->labels = $labels; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_size( $size ) + { + $this->size = $size; + } + + function set_vertical() + { + $this->rotate = 'vertical'; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_Y.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_Y.php new file mode 100644 index 0000000..8976c9d --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_Y.php @@ -0,0 +1,62 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Elements/OFC_Elements_Axis.php'); + +class OFC_Elements_Axis_Y extends OFC_Elements_Axis +{ + function OFC_Elements_Axis_Y() + { + parent::OFC_Elements_Axis(); + } + + function set_grid_colour( $colour ) + { + $this->{'grid-colour'} = $colour; + } + + function set_stroke( $s ) + { + $this->stroke = $s; + } + + function set_tick_length( $val ) + { + $this->{'tick-length'} = $val; + } + + function set_range( $min, $max, $steps=1 ) + { + $this->min = $min; + $this->max = $max; + $this->set_steps( $steps ); + } + + function set_offset( $off ) + { + $this->offset = ($off) ? 1 : 0; + } + + function set_labels( $labels ) + { + $this->labels = $labels; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_Y_Right.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_Y_Right.php new file mode 100644 index 0000000..c93cc94 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Axis/OFC_Elements_Axis_Y_Right.php @@ -0,0 +1,36 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +class OFC_Elements_Axis_Y_Right extends OFC_Elements_Axis_Y +{ + function OFC_Elements_Axis_Y_Right() + { + parent::OFC_Elements_Axis_Y(); + } + + /** + * y axis right does NOT control + * grid colour, the left axis does + */ + function set_grid_colour( $colour ) + { + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Legend/OFC_Elements_Legend_X.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Legend/OFC_Elements_Legend_X.php new file mode 100644 index 0000000..4b6634a --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Legend/OFC_Elements_Legend_X.php @@ -0,0 +1,32 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Elements/OFC_Elements_Base.php'); + +class OFC_Elements_Legend_X extends OFC_Elements_Base +{ + function OFC_Elements_Legend_X( $text='' ) + { + parent::OFC_Elements_Base(); + + $this->text = $text; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Legend/OFC_Elements_Legend_Y.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Legend/OFC_Elements_Legend_Y.php new file mode 100644 index 0000000..4a6371b --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/Legend/OFC_Elements_Legend_Y.php @@ -0,0 +1,32 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Elements/OFC_Elements_Base.php'); + +class OFC_Elements_Legend_Y extends OFC_Elements_Base +{ + function OFC_Elements_Legend_Y( $text='' ) + { + parent::OFC_Elements_Base(); + + $this->text = $text; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Axis.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Axis.php new file mode 100644 index 0000000..2cd0e6e --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Axis.php @@ -0,0 +1,51 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Elements/OFC_Elements_Base.php'); + +class OFC_Elements_Axis extends OFC_Elements_Base +{ + function OFC_Elements_Axis() + { + parent::OFC_Elements_Base(); + } + + function set_colours( $colour, $grid_colour ) + { + $this->set_colour( $colour ); + $this->set_grid_colour( $grid_colour ); + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_grid_colour( $colour ) + { + $this->{'grid-colour'} = $colour; + } + + function set_steps( $steps=1 ) + { + $this->steps = $steps; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Base.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Base.php new file mode 100644 index 0000000..dee2eff --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Base.php @@ -0,0 +1,30 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +class OFC_Elements_Base { + + function OFC_Elements_Base() { + } + + function set_style($css) { + $this->style = $css; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Title.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Title.php new file mode 100644 index 0000000..9a30045 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Title.php @@ -0,0 +1,32 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Elements/OFC_Elements_Base.php'); + +class OFC_Elements_Title extends OFC_Elements_Base +{ + function OFC_Elements_Title( $text='' ) + { + parent::OFC_Elements_Base(); + + $this->text = $text; + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/JSON.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/JSON.php new file mode 100644 index 0000000..daac9df --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/JSON.php @@ -0,0 +1,805 @@ + + * @author Matt Knapp + * @author Brett Stimmerman + * @copyright 2005 Michal Migurski + * @version CVS: $Id: JSON.php,v 1.31 2006/06/28 05:54:17 migurski Exp $ + * @license http://www.opensource.org/licenses/bsd-license.php + * @link http://pear.php.net/pepr/pepr-proposal-show.php?id=198 + */ + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_SLICE', 1); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_STR', 2); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_ARR', 3); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_OBJ', 4); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_CMT', 5); + +/** + * Behavior switch for Services_JSON::decode() + */ +define('SERVICES_JSON_LOOSE_TYPE', 16); + +/** + * Behavior switch for Services_JSON::decode() + */ +define('SERVICES_JSON_SUPPRESS_ERRORS', 32); + +/** + * Converts to and from JSON format. + * + * Brief example of use: + * + * + * // create a new instance of Services_JSON + * $json = new Services_JSON(); + * + * // convert a complexe value to JSON notation, and send it to the browser + * $value = array('foo', 'bar', array(1, 2, 'baz'), array(3, array(4))); + * $output = $json->encode($value); + * + * print($output); + * // prints: ["foo","bar",[1,2,"baz"],[3,[4]]] + * + * // accept incoming POST data, assumed to be in JSON notation + * $input = file_get_contents('php://input', 1000000); + * $value = $json->decode($input); + * + */ +class Services_JSON +{ + /** + * constructs a new JSON instance + * + * @param int $use object behavior flags; combine with boolean-OR + * + * possible values: + * - SERVICES_JSON_LOOSE_TYPE: loose typing. + * "{...}" syntax creates associative arrays + * instead of objects in decode(). + * - SERVICES_JSON_SUPPRESS_ERRORS: error suppression. + * Values which can't be encoded (e.g. resources) + * appear as NULL instead of throwing errors. + * By default, a deeply-nested resource will + * bubble up with an error, so all return values + * from encode() should be checked with isError() + */ + function Services_JSON($use = 0) + { + $this->use = $use; + } + + /** + * convert a string from one UTF-16 char to one UTF-8 char + * + * Normally should be handled by mb_convert_encoding, but + * provides a slower PHP-only method for installations + * that lack the multibye string extension. + * + * @param string $utf16 UTF-16 character + * @return string UTF-8 character + * @access private + */ + function utf162utf8($utf16) + { + // oh please oh please oh please oh please oh please + if(function_exists('mb_convert_encoding')) { + return mb_convert_encoding($utf16, 'UTF-8', 'UTF-16'); + } + + $bytes = (ord($utf16{0}) << 8) | ord($utf16{1}); + + switch(true) { + case ((0x7F & $bytes) == $bytes): + // this case should never be reached, because we are in ASCII range + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0x7F & $bytes); + + case (0x07FF & $bytes) == $bytes: + // return a 2-byte UTF-8 character + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0xC0 | (($bytes >> 6) & 0x1F)) + . chr(0x80 | ($bytes & 0x3F)); + + case (0xFFFF & $bytes) == $bytes: + // return a 3-byte UTF-8 character + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0xE0 | (($bytes >> 12) & 0x0F)) + . chr(0x80 | (($bytes >> 6) & 0x3F)) + . chr(0x80 | ($bytes & 0x3F)); + } + + // ignoring UTF-32 for now, sorry + return ''; + } + + /** + * convert a string from one UTF-8 char to one UTF-16 char + * + * Normally should be handled by mb_convert_encoding, but + * provides a slower PHP-only method for installations + * that lack the multibye string extension. + * + * @param string $utf8 UTF-8 character + * @return string UTF-16 character + * @access private + */ + function utf82utf16($utf8) + { + // oh please oh please oh please oh please oh please + if(function_exists('mb_convert_encoding')) { + return mb_convert_encoding($utf8, 'UTF-16', 'UTF-8'); + } + + switch(strlen($utf8)) { + case 1: + // this case should never be reached, because we are in ASCII range + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return $utf8; + + case 2: + // return a UTF-16 character from a 2-byte UTF-8 char + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0x07 & (ord($utf8{0}) >> 2)) + . chr((0xC0 & (ord($utf8{0}) << 6)) + | (0x3F & ord($utf8{1}))); + + case 3: + // return a UTF-16 character from a 3-byte UTF-8 char + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr((0xF0 & (ord($utf8{0}) << 4)) + | (0x0F & (ord($utf8{1}) >> 2))) + . chr((0xC0 & (ord($utf8{1}) << 6)) + | (0x7F & ord($utf8{2}))); + } + + // ignoring UTF-32 for now, sorry + return ''; + } + + /** + * encodes an arbitrary variable into JSON format + * + * @param mixed $var any number, boolean, string, array, or object to be encoded. + * see argument 1 to Services_JSON() above for array-parsing behavior. + * if var is a strng, note that encode() always expects it + * to be in ASCII or UTF-8 format! + * + * @return mixed JSON string representation of input var or an error if a problem occurs + * @access public + */ + function encode($var) + { + switch (gettype($var)) { + case 'boolean': + return $var ? 'true' : 'false'; + + case 'NULL': + return 'null'; + + case 'integer': + return (int) $var; + + case 'double': + case 'float': + return (float) $var; + + case 'string': + // STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT + $ascii = ''; + $strlen_var = strlen($var); + + /* + * Iterate over every character in the string, + * escaping with a slash or encoding to UTF-8 where necessary + */ + for ($c = 0; $c < $strlen_var; ++$c) { + + $ord_var_c = ord($var{$c}); + + switch (true) { + case $ord_var_c == 0x08: + $ascii .= '\b'; + break; + case $ord_var_c == 0x09: + $ascii .= '\t'; + break; + case $ord_var_c == 0x0A: + $ascii .= '\n'; + break; + case $ord_var_c == 0x0C: + $ascii .= '\f'; + break; + case $ord_var_c == 0x0D: + $ascii .= '\r'; + break; + + case $ord_var_c == 0x22: + case $ord_var_c == 0x2F: + case $ord_var_c == 0x5C: + // double quote, slash, slosh + $ascii .= '\\'.$var{$c}; + break; + + case (($ord_var_c >= 0x20) && ($ord_var_c <= 0x7F)): + // characters U-00000000 - U-0000007F (same as ASCII) + $ascii .= $var{$c}; + break; + + case (($ord_var_c & 0xE0) == 0xC0): + // characters U-00000080 - U-000007FF, mask 110XXXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, ord($var{$c + 1})); + $c += 1; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xF0) == 0xE0): + // characters U-00000800 - U-0000FFFF, mask 1110XXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2})); + $c += 2; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xF8) == 0xF0): + // characters U-00010000 - U-001FFFFF, mask 11110XXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2}), + ord($var{$c + 3})); + $c += 3; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xFC) == 0xF8): + // characters U-00200000 - U-03FFFFFF, mask 111110XX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2}), + ord($var{$c + 3}), + ord($var{$c + 4})); + $c += 4; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xFE) == 0xFC): + // characters U-04000000 - U-7FFFFFFF, mask 1111110X + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2}), + ord($var{$c + 3}), + ord($var{$c + 4}), + ord($var{$c + 5})); + $c += 5; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + } + } + + return '"'.$ascii.'"'; + + case 'array': + /* + * As per JSON spec if any array key is not an integer + * we must treat the the whole array as an object. We + * also try to catch a sparsely populated associative + * array with numeric keys here because some JS engines + * will create an array with empty indexes up to + * max_index which can cause memory issues and because + * the keys, which may be relevant, will be remapped + * otherwise. + * + * As per the ECMA and JSON specification an object may + * have any string as a property. Unfortunately due to + * a hole in the ECMA specification if the key is a + * ECMA reserved word or starts with a digit the + * parameter is only accessible using ECMAScript's + * bracket notation. + */ + + // treat as a JSON object + if (is_array($var) && count($var) && (array_keys($var) !== range(0, sizeof($var) - 1))) { + $properties = array_map(array($this, 'name_value'), + array_keys($var), + array_values($var)); + + foreach($properties as $property) { + if(Services_JSON::isError($property)) { + return $property; + } + } + + return '{' . join(',', $properties) . '}'; + } + + // treat it like a regular array + $elements = array_map(array($this, 'encode'), $var); + + foreach($elements as $element) { + if(Services_JSON::isError($element)) { + return $element; + } + } + + return '[' . join(',', $elements) . ']'; + + case 'object': + $vars = get_object_vars($var); + + $properties = array_map(array($this, 'name_value'), + array_keys($vars), + array_values($vars)); + + foreach($properties as $property) { + if(Services_JSON::isError($property)) { + return $property; + } + } + + return '{' . join(',', $properties) . '}'; + + default: + return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS) + ? 'null' + : new Services_JSON_Error(gettype($var)." can not be encoded as JSON string"); + } + } + + /** + * array-walking function for use in generating JSON-formatted name-value pairs + * + * @param string $name name of key to use + * @param mixed $value reference to an array element to be encoded + * + * @return string JSON-formatted name-value pair, like '"name":value' + * @access private + */ + function name_value($name, $value) + { + $encoded_value = $this->encode($value); + + if(Services_JSON::isError($encoded_value)) { + return $encoded_value; + } + + return $this->encode(strval($name)) . ':' . $encoded_value; + } + + /** + * reduce a string by removing leading and trailing comments and whitespace + * + * @param $str string string value to strip of comments and whitespace + * + * @return string string value stripped of comments and whitespace + * @access private + */ + function reduce_string($str) + { + $str = preg_replace(array( + + // eliminate single line comments in '// ...' form + '#^\s*//(.+)$#m', + + // eliminate multi-line comments in '/* ... */' form, at start of string + '#^\s*/\*(.+)\*/#Us', + + // eliminate multi-line comments in '/* ... */' form, at end of string + '#/\*(.+)\*/\s*$#Us' + + ), '', $str); + + // eliminate extraneous space + return trim($str); + } + + /** + * decodes a JSON string into appropriate variable + * + * @param string $str JSON-formatted string + * + * @return mixed number, boolean, string, array, or object + * corresponding to given JSON input string. + * See argument 1 to Services_JSON() above for object-output behavior. + * Note that decode() always returns strings + * in ASCII or UTF-8 format! + * @access public + */ + function decode($str) + { + $str = $this->reduce_string($str); + + switch (strtolower($str)) { + case 'true': + return true; + + case 'false': + return false; + + case 'null': + return null; + + default: + $m = array(); + + if (is_numeric($str)) { + // Lookie-loo, it's a number + + // This would work on its own, but I'm trying to be + // good about returning integers where appropriate: + // return (float)$str; + + // Return float or int, as appropriate + return ((float)$str == (integer)$str) + ? (integer)$str + : (float)$str; + + } elseif (preg_match('/^("|\').*(\1)$/s', $str, $m) && $m[1] == $m[2]) { + // STRINGS RETURNED IN UTF-8 FORMAT + $delim = substr($str, 0, 1); + $chrs = substr($str, 1, -1); + $utf8 = ''; + $strlen_chrs = strlen($chrs); + + for ($c = 0; $c < $strlen_chrs; ++$c) { + + $substr_chrs_c_2 = substr($chrs, $c, 2); + $ord_chrs_c = ord($chrs{$c}); + + switch (true) { + case $substr_chrs_c_2 == '\b': + $utf8 .= chr(0x08); + ++$c; + break; + case $substr_chrs_c_2 == '\t': + $utf8 .= chr(0x09); + ++$c; + break; + case $substr_chrs_c_2 == '\n': + $utf8 .= chr(0x0A); + ++$c; + break; + case $substr_chrs_c_2 == '\f': + $utf8 .= chr(0x0C); + ++$c; + break; + case $substr_chrs_c_2 == '\r': + $utf8 .= chr(0x0D); + ++$c; + break; + + case $substr_chrs_c_2 == '\\"': + case $substr_chrs_c_2 == '\\\'': + case $substr_chrs_c_2 == '\\\\': + case $substr_chrs_c_2 == '\\/': + if (($delim == '"' && $substr_chrs_c_2 != '\\\'') || + ($delim == "'" && $substr_chrs_c_2 != '\\"')) { + $utf8 .= $chrs{++$c}; + } + break; + + case preg_match('/\\\u[0-9A-F]{4}/i', substr($chrs, $c, 6)): + // single, escaped unicode character + $utf16 = chr(hexdec(substr($chrs, ($c + 2), 2))) + . chr(hexdec(substr($chrs, ($c + 4), 2))); + $utf8 .= $this->utf162utf8($utf16); + $c += 5; + break; + + case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F): + $utf8 .= $chrs{$c}; + break; + + case ($ord_chrs_c & 0xE0) == 0xC0: + // characters U-00000080 - U-000007FF, mask 110XXXXX + //see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 2); + ++$c; + break; + + case ($ord_chrs_c & 0xF0) == 0xE0: + // characters U-00000800 - U-0000FFFF, mask 1110XXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 3); + $c += 2; + break; + + case ($ord_chrs_c & 0xF8) == 0xF0: + // characters U-00010000 - U-001FFFFF, mask 11110XXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 4); + $c += 3; + break; + + case ($ord_chrs_c & 0xFC) == 0xF8: + // characters U-00200000 - U-03FFFFFF, mask 111110XX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 5); + $c += 4; + break; + + case ($ord_chrs_c & 0xFE) == 0xFC: + // characters U-04000000 - U-7FFFFFFF, mask 1111110X + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 6); + $c += 5; + break; + + } + + } + + return $utf8; + + } elseif (preg_match('/^\[.*\]$/s', $str) || preg_match('/^\{.*\}$/s', $str)) { + // array, or object notation + + if ($str{0} == '[') { + $stk = array(SERVICES_JSON_IN_ARR); + $arr = array(); + } else { + if ($this->use & SERVICES_JSON_LOOSE_TYPE) { + $stk = array(SERVICES_JSON_IN_OBJ); + $obj = array(); + } else { + $stk = array(SERVICES_JSON_IN_OBJ); + $obj = new stdClass(); + } + } + + array_push($stk, array('what' => SERVICES_JSON_SLICE, + 'where' => 0, + 'delim' => false)); + + $chrs = substr($str, 1, -1); + $chrs = $this->reduce_string($chrs); + + if ($chrs == '') { + if (reset($stk) == SERVICES_JSON_IN_ARR) { + return $arr; + + } else { + return $obj; + + } + } + + //print("\nparsing {$chrs}\n"); + + $strlen_chrs = strlen($chrs); + + for ($c = 0; $c <= $strlen_chrs; ++$c) { + + $top = end($stk); + $substr_chrs_c_2 = substr($chrs, $c, 2); + + if (($c == $strlen_chrs) || (($chrs{$c} == ',') && ($top['what'] == SERVICES_JSON_SLICE))) { + // found a comma that is not inside a string, array, etc., + // OR we've reached the end of the character list + $slice = substr($chrs, $top['where'], ($c - $top['where'])); + array_push($stk, array('what' => SERVICES_JSON_SLICE, 'where' => ($c + 1), 'delim' => false)); + //print("Found split at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + if (reset($stk) == SERVICES_JSON_IN_ARR) { + // we are in an array, so just push an element onto the stack + array_push($arr, $this->decode($slice)); + + } elseif (reset($stk) == SERVICES_JSON_IN_OBJ) { + // we are in an object, so figure + // out the property name and set an + // element in an associative array, + // for now + $parts = array(); + + if (preg_match('/^\s*(["\'].*[^\\\]["\'])\s*:\s*(\S.*),?$/Uis', $slice, $parts)) { + // "name":value pair + $key = $this->decode($parts[1]); + $val = $this->decode($parts[2]); + + if ($this->use & SERVICES_JSON_LOOSE_TYPE) { + $obj[$key] = $val; + } else { + $obj->$key = $val; + } + } elseif (preg_match('/^\s*(\w+)\s*:\s*(\S.*),?$/Uis', $slice, $parts)) { + // name:value pair, where name is unquoted + $key = $parts[1]; + $val = $this->decode($parts[2]); + + if ($this->use & SERVICES_JSON_LOOSE_TYPE) { + $obj[$key] = $val; + } else { + $obj->$key = $val; + } + } + + } + + } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) { + // found a quote, and we are not inside a string + array_push($stk, array('what' => SERVICES_JSON_IN_STR, 'where' => $c, 'delim' => $chrs{$c})); + //print("Found start of string at {$c}\n"); + + } elseif (($chrs{$c} == $top['delim']) && + ($top['what'] == SERVICES_JSON_IN_STR) && + ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) { + // found a quote, we're in a string, and it's not escaped + // we know that it's not escaped becase there is _not_ an + // odd number of backslashes at the end of the string so far + array_pop($stk); + //print("Found end of string at {$c}: ".substr($chrs, $top['where'], (1 + 1 + $c - $top['where']))."\n"); + + } elseif (($chrs{$c} == '[') && + in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) { + // found a left-bracket, and we are in an array, object, or slice + array_push($stk, array('what' => SERVICES_JSON_IN_ARR, 'where' => $c, 'delim' => false)); + //print("Found start of array at {$c}\n"); + + } elseif (($chrs{$c} == ']') && ($top['what'] == SERVICES_JSON_IN_ARR)) { + // found a right-bracket, and we're in an array + array_pop($stk); + //print("Found end of array at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + } elseif (($chrs{$c} == '{') && + in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) { + // found a left-brace, and we are in an array, object, or slice + array_push($stk, array('what' => SERVICES_JSON_IN_OBJ, 'where' => $c, 'delim' => false)); + //print("Found start of object at {$c}\n"); + + } elseif (($chrs{$c} == '}') && ($top['what'] == SERVICES_JSON_IN_OBJ)) { + // found a right-brace, and we're in an object + array_pop($stk); + //print("Found end of object at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + } elseif (($substr_chrs_c_2 == '/*') && + in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) { + // found a comment start, and we are in an array, object, or slice + array_push($stk, array('what' => SERVICES_JSON_IN_CMT, 'where' => $c, 'delim' => false)); + $c++; + //print("Found start of comment at {$c}\n"); + + } elseif (($substr_chrs_c_2 == '*/') && ($top['what'] == SERVICES_JSON_IN_CMT)) { + // found a comment end, and we're in one now + array_pop($stk); + $c++; + + for ($i = $top['where']; $i <= $c; ++$i) + $chrs = substr_replace($chrs, ' ', $i, 1); + + //print("Found end of comment at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + } + + } + + if (reset($stk) == SERVICES_JSON_IN_ARR) { + return $arr; + + } elseif (reset($stk) == SERVICES_JSON_IN_OBJ) { + return $obj; + + } + + } + } + } + + /** + * @todo Ultimately, this should just call PEAR::isError() + */ + function isError($data, $code = null) + { + if (class_exists('pear')) { + return PEAR::isError($data, $code); + } elseif (is_object($data) && (get_class($data) == 'services_json_error' || + is_subclass_of($data, 'services_json_error'))) { + return true; + } + + return false; + } +} + +if (class_exists('PEAR_Error')) { + + class Services_JSON_Error extends PEAR_Error + { + function Services_JSON_Error($message = 'unknown error', $code = null, + $mode = null, $options = null, $userinfo = null) + { + parent::PEAR_Error($message, $code, $mode, $options, $userinfo); + } + } + +} else { + + /** + * @todo Ultimately, this class shall be descended from PEAR_Error + */ + class Services_JSON_Error + { + function Services_JSON_Error($message = 'unknown error', $code = null, + $mode = null, $options = null, $userinfo = null) + { + + } + } + +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/JSON_Format.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/JSON_Format.php new file mode 100644 index 0000000..5573b07 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/JSON_Format.php @@ -0,0 +1,105 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// Pretty print some JSON +function json_format($json) +{ + $tab = " "; + $new_json = ""; + $indent_level = 0; + $in_string = false; + +/* + commented out by monk.e.boy 22nd May '08 + because my web server is PHP4, and + json_* are PHP5 functions... + + $json_obj = json_decode($json); + + if($json_obj === false) + return false; + + $json = json_encode($json_obj); +*/ + $len = strlen($json); + + for($c = 0; $c < $len; $c++) + { + $char = $json[$c]; + switch($char) + { + case '{': + case '[': + if(!$in_string) + { + $new_json .= $char . "\n" . str_repeat($tab, $indent_level+1); + $indent_level++; + } + else + { + $new_json .= $char; + } + break; + case '}': + case ']': + if(!$in_string) + { + $indent_level--; + $new_json .= "\n" . str_repeat($tab, $indent_level) . $char; + } + else + { + $new_json .= $char; + } + break; + case ',': + if(!$in_string) + { + $new_json .= ",\n" . str_repeat($tab, $indent_level); + } + else + { + $new_json .= $char; + } + break; + case ':': + if(!$in_string) + { + $new_json .= ": "; + } + else + { + $new_json .= $char; + } + break; + case '"': + if($c > 0 && $json[$c-1] != '\\') + { + $in_string = !$in_string; + } + default: + $new_json .= $char; + break; + } + } + + return $new_json; +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/OFC_Chart.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/OFC_Chart.php new file mode 100644 index 0000000..a3371a9 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/OFC_Chart.php @@ -0,0 +1,116 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +if (! function_exists('json_encode')) +{ + require_once('OFC/JSON.php'); +} + +require_once('OFC/JSON_Format.php'); + +require_once('OFC/OFC_Elements.php'); + +require_once('OFC/Charts/OFC_Charts_Area.php'); +require_once('OFC/Charts/OFC_Charts_Bar.php'); +require_once('OFC/Charts/OFC_Charts_Line.php'); +require_once('OFC/Charts/OFC_Charts_Pie.php'); +require_once('OFC/Charts/OFC_Charts_Scatter.php'); +require_once('OFC/Charts/Area/OFC_Charts_Area_Hollow.php'); +require_once('OFC/Charts/Bar/OFC_Charts_Bar_Filled.php'); +require_once('OFC/Charts/Bar/OFC_Charts_Bar_3d.php'); +require_once('OFC/Charts/Bar/OFC_Charts_Bar_Glass.php'); +require_once('OFC/Charts/Bar/OFC_Charts_Bar_Horizontal.php'); +require_once('OFC/Charts/Bar/OFC_Charts_Bar_Sketch.php'); +require_once('OFC/Charts/Bar/OFC_Charts_Bar_Stack.php'); +require_once('OFC/Charts/Line/OFC_Charts_Line_Dot.php'); +require_once('OFC/Charts/Line/OFC_Charts_Line_Hollow.php'); + +class OFC_Chart +{ + function OFC_Chart() + { + $this->title = new OFC_Elements_Title( "Many data lines" ); + $this->elements = array(); + } + + function set_title( $t ) + { + $this->title = $t; + } + + function set_x_axis( $x ) + { + $this->x_axis = $x; + } + + function set_y_axis( $y ) + { + $this->y_axis = $y; + } + + function add_y_axis( $y ) + { + $this->y_axis = $y; + } + + function set_y_axis_right( $y ) + { + $this->y_axis_right = $y; + } + + function add_element( $e ) + { + $this->elements[] = $e; + } + + function set_x_legend( $x ) + { + $this->x_legend = $x; + } + + function set_y_legend( $y ) + { + $this->y_legend = $y; + } + + function set_bg_colour( $colour ) + { + $this->bg_colour = $colour; + } + + function toString() + { + if (function_exists('json_encode')) + { + return json_encode($this); + } + else + { + $json = new Services_JSON(); + return $json->encode( $this ); + } + } + + function toPrettyString() + { + return json_format( $this->toString() ); + } +} + diff --git a/pacotes/openflashchart/php5-ofc-library/lib/OFC/OFC_Elements.php b/pacotes/openflashchart/php5-ofc-library/lib/OFC/OFC_Elements.php new file mode 100644 index 0000000..32fa7c0 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/lib/OFC/OFC_Elements.php @@ -0,0 +1,31 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once('OFC/Elements/OFC_Elements_Base.php'); +require_once('OFC/Elements/OFC_Elements_Axis.php'); +require_once('OFC/Elements/Axis/OFC_Elements_Axis_X.php'); +require_once('OFC/Elements/Axis/OFC_Elements_Axis_X_Label.php'); +require_once('OFC/Elements/Axis/OFC_Elements_Axis_X_Label_Set.php'); +require_once('OFC/Elements/Axis/OFC_Elements_Axis_Y.php'); +require_once('OFC/Elements/Axis/OFC_Elements_Axis_Y_Right.php'); +require_once('OFC/Elements/Legend/OFC_Elements_Legend_X.php'); +require_once('OFC/Elements/Legend/OFC_Elements_Legend_Y.php'); +require_once('OFC/Elements/OFC_Elements_Title.php'); + diff --git a/pacotes/openflashchart/php5-ofc-library/open-flash-chart-object.php b/pacotes/openflashchart/php5-ofc-library/open-flash-chart-object.php new file mode 100644 index 0000000..edb63ee --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/open-flash-chart-object.php @@ -0,0 +1,127 @@ + + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +function open_flash_chart_object_str( $width, $height, $url, $use_swfobject=true, $base='' ) +{ + // + // return the HTML as a string + // + return _ofc( $width, $height, $url, $use_swfobject, $base ); +} + +function open_flash_chart_object( $width, $height, $url, $use_swfobject=true, $base='' ) +{ + // + // stream the HTML into the page + // + echo _ofc( $width, $height, $url, $use_swfobject, $base ); +} + +function _ofc( $width, $height, $url, $use_swfobject, $base ) +{ + // + // I think we may use swfobject for all browsers, + // not JUST for IE... + // + //$ie = strstr(getenv('HTTP_USER_AGENT'), 'MSIE'); + + // + // escape the & and stuff: + // + $url = urlencode($url); + + // + // output buffer + // + $out = array(); + + // + // check for http or https: + // + if (isset ($_SERVER['HTTPS'])) + { + if (strtoupper ($_SERVER['HTTPS']) == 'ON') + { + $protocol = 'https'; + } + else + { + $protocol = 'http'; + } + } + else + { + $protocol = 'http'; + } + + // + // if there are more than one charts on the + // page, give each a different ID + // + global $open_flash_chart_seqno; + $obj_id = 'chart'; + $div_name = 'flashcontent'; + + //$out[] = ''; + + if( !isset( $open_flash_chart_seqno ) ) + { + $open_flash_chart_seqno = 1; + $out[] = ''; + } + else + { + $open_flash_chart_seqno++; + $obj_id .= '_'. $open_flash_chart_seqno; + $div_name .= '_'. $open_flash_chart_seqno; + } + + if( $use_swfobject ) + { + // Using library for auto-enabling Flash object on IE, disabled-Javascript proof + $out[] = '
'; + $out[] = ''; + $out[] = ''; + } + + return implode("\n",$out); +} + diff --git a/pacotes/openflashchart/php5-ofc-library/package.xml b/pacotes/openflashchart/php5-ofc-library/package.xml new file mode 100644 index 0000000..de93684 --- /dev/null +++ b/pacotes/openflashchart/php5-ofc-library/package.xml @@ -0,0 +1,123 @@ + + + OCF + pear.php.net + Open Flash Charts interface library + Open Flash Charts interface library + + John Glazebrook + open-flash-chart + open-flash-chart@teethgrinder.co.uk + yes + + 2008-07-08 + + + 2.0.0 + 2.0.0 + + + beta + stable + + PHP + Helper library for working with Open Flash Charts + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.0.0 + + + 1.4.9 + + + + + + + + 2.0.0 + 2.0.0 + + + beta + stable + + 2008-07-08 + PHP + Helper library for working with Open Flash Charts + + + diff --git a/pacotes/openflashchart/swfobject.js b/pacotes/openflashchart/swfobject.js new file mode 100644 index 0000000..08fb270 --- /dev/null +++ b/pacotes/openflashchart/swfobject.js @@ -0,0 +1,5 @@ +/* SWFObject v2.1 + Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis + This software is released under the MIT License +*/ +var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write(" + + + + + + + +
test
+ + + + + + \ No newline at end of file -- libgit2 0.21.2