Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
340 views
in Technique[技术] by (71.8m points)

angular - Unable to clear the 3d chart items after redrawing in RGraph

I am using RGraph.net to draw 3d charts in our angular 7 application. i have to draw a 3d column chart based on user actions(like click event). when user selected 5 i can draw the chart and it has 3 items with .rgraph_accessible_text_xaxis_labels class. after user again selected 9 so i can redraw existing chart with new data. but first 3d chart data still exist you can check in images. In first image only 3 items(check Browser console in image1) are there but after redraw the chart 12 items(check browser console in image2) are there but it should 9 items.

ISSUE: I am unable to clear the previous items in 3d chart after redrawing the chart with new data enter image description here

enter image description here

question from:https://stackoverflow.com/questions/65932613/unable-to-clear-the-3d-chart-items-after-redrawing-in-rgraph

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

let canvas = (document.getElementById('cvs2')); RGraph.reset(canvas2);


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...