This discussion is archived
8 Replies Latest reply: Nov 12, 2012 9:22 AM by 742417 RSS

Html5 Conditional Display

Rich H Newbie
Currently Being Moderated
APEX 4.2 Theme 25 Oracle DB 11gr2 - I need to conditionally display Html5/Flash chart regions depending on browser compatibility, does anybody have an ideas on how to achieve this. Thanks in advance.
  • 1. Re: Html5 Conditional Display
    Hilary Expert
    Currently Being Moderated
    Hi Rich,

    With APEX 4.2, we've integrated AnyChart 6 charts which provides users with the ability to create HTML5 charts and Flash charts. Something to note is that Flash charts in 4.2 automatically use the 'FLASH_PREFERRED' AnyChart Rendering type: http://anychart.com/products/anychart/docs/users-guide/migration-guide.html#from-5.1.x-to-6.x-rendering-types. This setting means that where Flash is available, the chart will be rendered as Flash. However, where Flash isn't available, the chart will be rendered as HTML5. This is an automatic fallback with the 'FLASH_PREFERRED' setting. So potentially this will remove your need to conditionally display the chart regions based on browser compatibility.

    Regards,
    Hilary
  • 2. Re: Html5 Conditional Display
    Patrick Wolf Employee ACE
    Currently Being Moderated
    Hi Rich,

    do you want to hide the chart region at all or show HTML5 charts instead of Flash charts if supported? If it's the later, have a look at the online help of the "Chart Rendering" attribute of your chart.

    Regards
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf
  • 3. Re: Html5 Conditional Display
    Rich H Newbie
    Currently Being Moderated
    Patrick/Hilary Thanks for your responses, I hadn't noticed the FLASH_PREFFERED setting on flash charts, so I was going down the two versions of the chart (Flash/Html5) conditional display route. Alles ist klar, vielen Dank
  • 4. Re: Html5 Conditional Display
    742417 Newbie
    Currently Being Moderated
    Hilary,
    where in the Apex chart properties would you change the rendering.type attribute?

    Thanks,
    Christoph
  • 5. Re: Html5 Conditional Display
    Hilary Expert
    Currently Being Moderated
    Hi Christoph,

    The "Chart Rendering" select list item on the Chart Attributes page control the setting of the rendering for your chart. It can only be set to Flash Chart (i.e. AnyChart 'FLASH_PREFERRED' rendering) or HTML5 Chart (i.e. AnyChart 'SVG_ONLY' rendering).

    Regards,
    Hilary
  • 6. Re: Html5 Conditional Display
    742417 Newbie
    Currently Being Moderated
    Hilary,
    does this mean that the two other settings, FLASH_ONLY and SVG_PREFERRED are not available? Not that I would want those anyway ;)

    Thanks,
    Christoph
  • 7. Re: Html5 Conditional Display
    Hilary Expert
    Currently Being Moderated
    Hi Christoph,

    That's correct, we've chosen not to support the rendering types FLASH_ONLY and SVG_PREFERRED. However, if there was sufficient demand for their inclusion in a future release, I'm sure we could revisit things. As with any other such requests, they can be entered in our Feature Requests application, here: https://apex.oracle.com/pls/apex/f?p=55447:1.

    Regards,
    Hilary
  • 8. Re: Html5 Conditional Display
    742417 Newbie
    Currently Being Moderated
    Excellent.
    Thanks Hilary.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points