Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

Add support for annotation plug-in #63

Closed
micw opened this issue Jan 2, 2018 · 3 comments · Fixed by #64
Closed

Add support for annotation plug-in #63

micw opened this issue Jan 2, 2018 · 3 comments · Fixed by #64
Milestone

Comments

@micw
Copy link
Contributor

micw commented Jan 2, 2018

Hello,
I'm trying to draw some threshold lines in my chart. For horizontal lines, I use an extra data set with constant value - works but it's not optimal. After reading a bit, I found the following plug-in that allows to add some annotations (boxes, lines) to charts: https://github.com/chartjs/chartjs-plugin-annotation
If you could add support for it, this would be great!
Kind regards,
Michael.

@moberwasserlechner
Copy link
Owner

I will extend the PR with some addional features the annotation plugin offers.

  • Vertical lines
  • Box annotation

@moberwasserlechner
Copy link
Owner

Annotations work with line, bar, scatter and bubble charts that use linear, logarithmic, time, or category scales. Annotations will not work on any chart that does not have exactly two axes, including pie, radar, and polar area charts.

Annotations only work with charts having exactly two axes like line, bar, scatter and bubble charts.

@moberwasserlechner
Copy link
Owner

The integration now supports everything the plugin does except click events.

moberwasserlechner pushed a commit that referenced this issue Mar 10, 2018
…o the value methods in both box and line annoation needed additional typed value methods
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants