Hi,

By this way you can append your chart on different div with refreshed(NEW) value.

This is very small change in the code and you will achieve the desire output.

chart.placeAt(“linechart”,“only”);

“only” parameters is responsible for placing chart with refreshed value.

var chart = new sap.viz.ui5.Line(

                                                 {

                                                       width : “800px”,

                                                    height : “400px”,

                                                     plotArea : {

                                                            ‘colorPalette’ : d3.scale.category20().range()

                                                            },

                                                    title : {

                                                        visible :false,

                                                        text : ‘Stock Data’

                                                    },

                                                    dataset : dataset

                                                });

                                            chart.setModel(oModelChart);

                                         chart.placeAt(“linechart”,”only”);

               };}

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply