Skip to content

Annotations not appearing on chart #898

Closed Answered by stockiNail
adilold asked this question in Q&A
Discussion options

You must be logged in to vote

@adilold your annotation plugin configuration is wrong.

You added the annotations config directly to the root node 'annotation' instead of in a inner node 'annotations'.

The plugins config should be (already tested in your jsfiddle):

    plugins: {
      annotation: {
        annotations: { // <--- missing in your config
          marker: {
            type: 'point',
            xValue: 50.0,
            yValue: 16.0,
            pointStyle: 'crossRot',
            radius: 20
          },
          label1: {
            type: 'label',
            xValue: 30.0,
            yValue: 16.4,
            content: ['this is a label'],
            font: {
              size: 18
            }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adilold
Comment options

Answer selected by adilold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants