Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

A problem with sap.ca.ui.charts.ChartToolBar

$
0
0

Hi guys,

 

I'm using "sap.ca.ui.charts.ChartToolBar"("sap.ca" seems has been deprecated in latest UI5 version, but I didn't find a control in other library which has the same function as "sap.ca.ui.charts.ChartToolBar". if there is one, please tell me!).

 

Two charts has been inserted into it(Actually one of them is an HTML view, the other is "sap.ca.ui.charts.BubbleChart"). And there is also a dropdown filter.


When the dropdown changes, what I expect is only the bubble chart to refresh. However, I found that once the data model of bubble chart is reset, the HTML view will also re-render, that is, onBeforeRendering and onAfterRending on the view will be invoked, which causes annoying problems.

 

Does anyone help tell me how can I do to stop HTML view re-rendering? It almost drives me crazy...

 

 

Update:

Plunker link: http://plnkr.co/edit/GsTsJWCJS9SsgKnVykn9

 

I have to correct myself about when HTML view will re-render:

 

1. The HTML view will re-render the first time I enter the ChartToolBar view and change the dropdown.

But it will not re-render if not reset data model of bubble when changing the dropdown.

 

2. If I switch to bubble chart and then switch back to HTML view, changing the dropdown will not cause the HTML view to re-render.

 

So my question is how to stop HTML view re-rendering for the first time I enter the ChartTooBar view and change the dropdown.


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>