Skip to Content
0
Former Member
Feb 11, 2016 at 07:01 PM

Change values in Chart dynamically using script

432 Views

Hi,

I have a problem with label in my chart

Using RapidPrototype, I can resolve this case, but when I change my filter the year my chart back.

-----------------------------------------

setTimeout(function(){

if(!$('.PAN_TAB').hasClass('cima')){

$('.PAN_TAB').addClass('cima');

var distanciaY = parseInt($('g.v-modules g.v-module g.v-markers.v-datashapesgroup g.v-m-datalabel g.v-datalabel text').attr('y'));

var tamanhoreal = distanciaY - 20;

$('g.v-modules g.v-module g.v-markers.v-datashapesgroup g.v-m-datalabel g.v-datalabel text').attr('y', tamanhoreal);

};

},3000);

------------------------------------------------

when I change one filter back

I searched but did not find a solution

Change Chart title and Axis label dynamically using script or CSS

https://scn.sap.com/thread/3771866

SAP Design Studio 1.6: Change the color of the charts with CSS

https://scn.sap.com/thread/3860882

Labels on chart vertical axis - decimals

https://scn.sap.com/thread/3715782

best Regards

Attachments

code.JPG (52.4 kB)
erro.PNG (9.4 kB)
Capturar.JPG (19.1 kB)
Capturar1.JPG (17.6 kB)