Skip to Content

Viz Bar chart is not rendering in firefox


SAP UI5 viz bar chart is not rendering in Firefox if the user performs the below operation

1. if the data model is switching between empty JSON and data JSON

2. Switching between setVisble(false) and setVisible(true) in bar chart object

To Simulate this issue, i have created the single HTML file loads SAP VIZ BAR chart and to test this

1. Add this attached file into SAP UI5 project (rename .txt to .html)

2. Run this file using any web server

3. Hit "Load Chart" button to load sample viz chart

4. Hit "Clear Chart" to make the model empty

5. Again Hit "Load Chart" and observe the only axis renders not the bars (If not reproducible please hit "Clear Chart" 2 or 3 times and hit "Load Chart"

Please help me to resolve this issue and let me know if i miss something in this file.

[FireFox browser version 37.0.1 and SAP UI5 version :1.30.0]

Thanks in Advance


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 12, 2015 at 09:43 AM

    Created the snippix to replicate this issue

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 14, 2015 at 09:00 AM

    Hi Srinath,

    In Mozilla, first time it works, second time it doesn't. In console, it says NS_ERROR_FAILURE.

    And I click on the error, it gives me this -

    There seems to be some issue with your dataLabel aggregation. If I pass empty for dataLabel:{} it works.

    Please run this in Mozilla - Plunker - BarChartTest


    Sai Vellanki.

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks Sai. But Data Label is very important aspect to show the measure value and this issue is only with FireFox and other browser is working well.

      Do you have any suggestion?