Skip to Content
Author's profile photo Former Member

Append a new chart data on every Button Press.

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

               };}

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.