Annotations#

Note

New in version 0.1.15

Note

Requires the annotations module:

easychart.config.scripts.append("https://code.highcharts.com/modules/annotations.js")
easychart.config.save()

See section on extensions for more details.

import easychart

chart = easychart.new()
chart.plot([50, 33, 68, 35, 46, 4, 35, 6, 19, 75, 22, 11])
chart.annotate(
    "Lowest point is here ({point.x}:{point.y})", x=5, y=4, width=100, yOffset=75
)
chart.annotate("Highest point is here", x=9, y=75, width=100, xOffset=65)
chart