Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

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");

               };}

Labels in this area