amcharts / amcharts5

The newest, fastest, and most advanced amCharts charting library for JavaScript and TypeScript apps.
Other
343 stars 91 forks source link

Bug new tool - Line Arrow #1713

Open shishima123 opened 2 weeks ago

shishima123 commented 2 weeks ago

From https://github.com/amcharts/amcharts5/issues/1709

Thank you for adding new Tool

I tried applying it and realized that you added a straight line with an arrow overlapping at the top of the line. This causes an issue when moving the line, where the arrow has a slight delay before overlapping with the line.

This is not a major issue, and users might accept it.

However, when I hide the bullets at both ends, ahead of the arrow there is an extra part of the line Could you shorten the line a little?

Also, when I clear all drawings using drawingControl.clearDrawings() the arrows still remain on the screen.

Here are the 2 functions I use to clear all drawings and hide bullets.

function clearAllDrawing() {
  drawingControl.clearDrawings()
}

function disableDrawBullet(state) {
  stockChart.panels.each((panel) => {
    panel.series.each((series) => {
      if (
        series.isType('DrawingSeries') &&
        !['LabelSeries', 'IconSeries'].includes(series.className)
      ) {
        series.bulletsContainer.set('forceHidden', state)
      }
    })
  })
}

https://github.com/user-attachments/assets/cf122a3b-1ed2-4310-b939-0259f31d1a98

shishima123 commented 1 week ago

sorry for mentioning you @martynasma But I just discovered another bug when you reload the page, the arrow color will be restored to the default color

https://github.com/user-attachments/assets/112dc6b2-ac80-4553-8fcf-733c8cd895a1

martynasma commented 1 week ago

It's a different bug. Can you post a separate issue?