amcharts / amcharts5

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

Unable to close indicators stockchart #1688

Closed workingbuddy10 closed 2 months ago

workingbuddy10 commented 2 months ago

After adding this new feature of creating the horizontal lines via the plus button. One cannot close the additional panel. As the plus button overlays the close button of the panel.

https://www.amcharts.com/docs/v5/charts/stock/toolbar/drawing-control/#Adding_line_drawings

image

martynasma commented 2 months ago

You can move panel controls via custom theme:

const myTheme = am5.Theme.new(root);

myTheme.rule("Grid", ["scrollbar", "minor"]).setAll({
  visible: false
});

myTheme.rule("PanelControls").setAll({
  dx: -30
});

root.setThemes([
  am5themes_Animated.new(root),
  myTheme
]);
workingbuddy10 commented 2 months ago

@martynasma It can be an enhancement, if its added in the library itself. As its a common issue!!

martynasma commented 2 months ago

No, it's not. The tooltip button is a custom functionality, not something that's built-in.