Box annotation starts from center of category axes
See original GitHub issueI need box annotation the same as the purple box on the example but it doesn’t work as expected on my chart. I need it to be started and finished on axes lines, not the center!
Here is the config:
chart.options.annotation.annotations.push({
drawTime: "beforeDatasetsDraw",
type: "box",
xScaleID: "x-axis-0",
yScaleID: "y-axis-0",
xMin: "2018 December",
xMax: "2019 February",
yMin: 0,
yMax: 200000,
backgroundColor: "rgba(101, 33, 171, 0.5)"
});
chart.update();
and scales config:
"scales": {
"yAxes": [{stacked: true}],
"xAxes": [{stacked: true}]
}
Also Adding absolute min/max
or offset
parameters will be nice.
Any help will be appreciated.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
9.1. Annotations — VisIt User Manual 3.1 documentation
These annotations convey a good deal of information about what is being visualized, what values are in the plots, and who created the...
Read more >How to add annotations and decorations to charts - think-cell
Learn how to add value axes, CAGRs, difference arrows and legends to think-cell charts.
Read more >matplotlib.axes.Axes.annotate — Matplotlib 3.6.2 documentation
The exact starting point position of the arrow is defined by relpos. It's a tuple of relative coordinates of the text box, where...
Read more >Managing Axes in OVERLAY Layouts - SAS Help Center
If PRIMARY=TRUE for a plot within an overlay-type layout, that plot's data columns and type are used to determine the default axis features, ......
Read more >Axes appearance and behavior - MATLAB - MathWorks
Axes properties control the appearance and behavior of an Axes object. By changing property values, you can modify certain aspects of the axes....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@danielissac Unfortunately, it didn’t work for me. I created the plugin below for my case:
gridlines are offset, you can change that.