on 01-27-2015 11:32 AM
Hi,
I followed thread but was unable to disable animation.
I need to update the chars data very frequently so animation makes the chart worthless...
I tried to "switch" animation off using:
var oPlotArea = oBarChart.getPlotArea();
oPlotArea.destroyAnimation();
You can see the example of this in this JSBin
http://jsbin.com/yudeza/3/edit?html,output
Thanks in advance for your help.
Best regards,
Guillaume
So, if you would transfer the XML coding from the mentioned example to JS, it will work.
var oBarChart = new sap.viz.ui5.Bar({
width: "800px",
height: "400px",
plotArea: new sap.viz.ui5.types.Bar({
animation: new sap.viz.ui5.types.Bar_animation({
dataLoading: false,
dataUpdating: false
})
}),
title: {
visible: true,
text: 'Total Product Sales by Unit Price'
},
dataset: oDataset
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just so you guys know the end of the story.
I managed to disable the animation but the sap.viz library was not "powerful" enough (or I missed something) to support updating while dragging a slider (yes, that was kind of demanding!)
Thus, I ended up building some graphs with D3.js using the fantastic examples by Mike Bostock and the result was pretty convincing!
If I have time, I'll try wrapping them up in reusable SAPUI5 components (notice the non-committing sentence)
Best regards,
Guillaume
Message was edited by: Guillaume GARCIA
Hi Guillaume,
instead of destroyAnimation(), did you try destroyInteraction()?
I don't see the destroyAnimation() function in the API documentation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks but, nope, this has not the expected effect.
destroyAnimation is a method of the Bar chart's plotArea:
JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.viz.ui5.types.Bar
Best regards,
Guillaume
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.