Announcement

Collapse
No announcement yet.

Fusion Charts Free problem in flash object (problem Size)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fusion Charts Free problem in flash object (problem Size)

    Hello

    for chart in AMS finally found working flash "free" FusionCharts Free v2.2

    they are working, easy to embedd in application,
    no need for creating XML/JSON files and loading them in Web Object

    the only problem I have, is fitting them in a SWF Object, with certain size.
    only seems to display as expected after: right click->zoom in & right click-> Show All

    anyone any idea

  • #2
    If I clearly understand, it could be related on which display option you set in the flash object pane.
    Check the "FlashScalingMode" and choose between these options:

    Show All
    Makes the entire movie visible in the area defined by the object's bounding box without distortion, while maintaining the original aspect ratio of the movie. Borders may appear on two sides of the movie.

    No Border
    Scales the movie to fill the area defined by the object's bounding box without distortion, while maintaining the original aspect ratio of the movie. Any part of the movie that falls outside the area defined by the object's bounding box will be cropped.

    Exact Fit
    Resizes the movie to fill the area defined by the object's bounding box, ignoring the movie's original aspect ratio. The movie may appear distorted as a result.
    By the way: if not from XML, where the data come from?
    We are slowly invading your planet to teach lazy humans to read the user manual.
    But don't be scared: we are here to help.

    Comment


    • #3
      specially with smaller sizes

      Problem with smaller charts 200x200 or smaller
      works well in HTML !!!
      need multiple smaller charts, in one page
      but I'm stuck with the Flash object view size

      see attached example
      small generic/dirty app to test SWF files/charts)

      see screenshot for 2Dpie,
      shows good for .5 Sec and then zooms ???

      change size in script and you see what I mean
      Attached Files

      Comment


      • #4
        I am having a problem with the flash object not been active or changing until I click it, I am not sure if this is a error in code or error in how windows 8.1 handles flash content, but you select the chart click show I get a black box until I active it by clicking the flash object.
        Plugins or Sources MokoX
        BunnyHop 2021 Here

        Comment


        • #5
          ^^I tried the latest trial on an 8.1 vm and the flash object fails to show the item, it just shows black square, this happens even with the included flash files. Updating flash has no effect.

          Comment


          • #6
            Something definitely off in Windows 8.1, but it appears that you can address this issue by simply setting the focus to the Flash object in the On Show event script.

            Ulrich

            Comment


            • #7
              Originally posted by Ulrich View Post
              Something definitely off in Windows 8.1, but it appears that you can address this issue by simply setting the focus to the Flash object in the On Show event script.

              Ulrich
              Yes I agree as if I click it it also makes it work, so setting focus seems to be a good ides.
              Plugins or Sources MokoX
              BunnyHop 2021 Here

              Comment


              • #8
                O.k. so far windows 8.1
                But what about yhe size if you want a smaller pie 200x200 pix
                Personally use win7 64b. Strange this works in html.
                Also tried open flash charts. But couldn't get it to show yet.

                Comment


                • #9
                  From what I could understand after looking at this, it appears that the variables which set the size of the chart need to be passed when the file is loaded, otherwise the Flash file uses internally defined values (350 for both dimensions).

                  Once you have set the dimensions to the desired size, say 200 x 200 pixels, via Flash.SetFlashVariable(), you can use the "Rewind" option in the context menu, and you see that the pie chart fits into the assigned space.

                  Click image for larger version

Name:	SNAP-2013-10-31-01.png
Views:	1
Size:	49.1 KB
ID:	284099

                  This doesn't help you much, as you can't rewind via Lua action right after the Flash finished loading - sadly it doesn't send a notification (FSCommand) when it finished drawing. You could use a one second timer: When the timer triggers, stop it so it won't run again, then use Flash.Seek() to set the SWF to the beginning and Flash.Play() to restart playing. You would see the chart in its default size for a moment, before it resizes to fit into the assigned space.

                  It may be best if you host the chart in a Web object. In this case you could set the size as parameters of the embedded object, and the graph would be shown in the desired dimensions right from the start.

                  Ulrich

                  Comment


                  • #10
                    Thnx Ulrich

                    Comment


                    • #11
                      Originally posted by Ulrich View Post
                      It may be best if you host the chart in a Web object. In this case you could set the size as parameters of the embedded object, and the graph would be shown in the desired dimensions right from the start.

                      Ulrich
                      At this point you could use this free chart tool that, IMO, is widely better than FusionCharts, with great possibilities of customization, animations and stunning effects even in the free version.

                      http://www.maani.us/xml_charts/

                      Here are some additional indications about making XMLCharts (Flash) interact with the web page using javascript:
                      http://www.maani.us/xml_charts/index...cript_to_Flash
                      We are slowly invading your planet to teach lazy humans to read the user manual.
                      But don't be scared: we are here to help.

                      Comment


                      • #12
                        Originally posted by Cybergraph View Post
                        At this point you could use this free chart tool that, IMO, is widely better than FusionCharts, with great possibilities of customization, animations and stunning effects even in the free version.

                        http://www.maani.us/xml_charts/
                        Yep I agree, these are COOL charts (already posted way back with sample TJS for AMS7.5) but ...
                        - they are not free (no interaction in the free one)
                        - when user clicks chart it will link to home page
                        - trouble loading new version in Flash object (no info anymore on old version XML settings)

                        If I would use web object, there are many more cool opensource Charting solutions
                        (requires more coding HTML/Javascript) and yes one could do this inline ...

                        For me the workaround, Ulrich suggested is cool, since I load charts only once in my app (static size) after this I only reload same chart with other data, like a dashboard.

                        Fusioncharts free are very easy to configure in the flash object, and no need for saving XML/Javascript to disk (wich is requirement for my project)

                        Thnx for the suggestion anway

                        Comment

                        Working...
                        X