Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

javascript - I want to capture the starting and end point of all the series in multigraph and show it in multiple tables in case of multiple MeasureXY events

I have a MultiGraph i.e a graph with multiple series. What I want to do is use MeasureXY(stockTools GUI Button) to highlight a particular area in my graph and then display the starting and end point of all the series in that highlighted area in a separate table inside my widget. I am able to achieve this in case of single measuremnet using MeasureXY , but I want to create separate tables in case if user decides ro do multiple measurement in graph. What I am wondering is how will I treat every shaded portion individually because I will have to update thier corresponding tables. Any way I can identify them uniquely? Please see the code below.

    navigation: {
  bindings: {
      measureX: {
          end: function() {
              //gets triggered when the measure event ends
          }
      }
  },
  annotationsOptions: {
      events: {
          afterUpdate(e) {
            //gets triggered when the measure event updates.
          },
          remove(e, annotation) {
             // gets triggered when the clicked on the remove icon
          },
      }
  }
}
question from:https://stackoverflow.com/questions/65839751/i-want-to-capture-the-starting-and-end-point-of-all-the-series-in-multigraph-and

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

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...