Setting mouse pointer style

Type tutorial

This tutorial will show how we can change cursor style when hovering over some chart element. Setting cursor style We can use any element’s cursorOverStyle setting to specify which cursor to show when it is hovered by a mouse cursor. Available styles The following table lists a few of the most common cursor styles. For […]

Treemap with partial fills in nodes

Type tutorial

This demo shows how we can add partial data-based fills to Treemap nodes using Rectangle element as a bullet, and a couple of adapters.

Adaptive label colors on a Treemap

Type demo

This demo shows how we can use adapters to automatically color Treemap labels so they standout over node background. Related code Demo

Disabling context menu on chart

Type tutorial

Normally, browsers will display a context menu when you press right mouse button over some element. If done over amCharts 5, it will display a context menu for a <canvas> element. This tutorial will show how you can disable default behavior of a right-click on canvas elements, as well as attach built-in rightclick event to […]