Comments (5)
Hi @charmbv!
The mentioned issue is not fixed. The context of the plotline mouseover/mouseout functions is not passed correctly.
Internal note:
There are differences between minified and non-minified code. Please, check the demos below. FYI @MarkusBarstad console.log
is giving different objects (this)
.
Minified: https://jsfiddle.net/BlackLabel/5cLuqgr4/
Non-minified (src version): https://jsfiddle.net/BlackLabel/o97suLkg/
I think it is related to the usage of the arrow function, which is transpiled to a normal function, and the context is changed:
from highcharts.
@charmbv, I think I got a cache issue last time, when I was debugging your case because now everything is working correctly.
Can you create a demo with the reproduced issue in some online editor?
from highcharts.
I will try to create a sample application. Will post a link here when I have something.
from highcharts.
As usual, when trying to create a sample project it "suddenly" works. However, I still get an error that I can't figure out how to solve. I'm using the following code (adapted from https://jsfiddle.net/BlackLabel/3k216ywa/) to show the tooltip at the place of the event:
private showPlotLineTooltip(plotLine: any, event: any) {
const series: Highcharts.Series = plotLine.axis.series[0];
const chart: Highcharts.Chart = series.chart;
const tooltip: Highcharts.Tooltip = chart.tooltip;
const point: Highcharts.Point = new Highcharts.Point().init(series, {
value: plotLine.options.value,
});
const normalizedEvent: any = chart.pointer.normalize(event);
(point as any).tooltipPos = [
normalizedEvent.chartX - chart.plotLeft,
normalizedEvent.chartY - chart.plotTop,
];
(point as any).showPlotLineTooltip = plotLine.options.showPlotLineTooltip;
tooltip.refresh(point as any);
}
This works when using Highcharts 11.2.0 but fails with 11.4.0 on the new Highcharts.Point().init(...)
line. Any idea on how to fix this?
from highcharts.
@charmbv, you are trying to create a dummy point by using init
method, which is not supported now in Highcharts, you can check the Pull Request here: #20286
Now, you should create the dummy point as a normal constructor. This is not a bug, it is intended. Feel free to reach out to our other support channels, for example Highcharts forum, where our support engineers will help you with the configuration of your chart.
from highcharts.
Related Issues (20)
- Screen reader is not announcing 'No data to display' information when focus lands on chart when their is no data. HOT 1
- Error when using Navigator, axis inverted and boostThreshold HOT 3
- ES5 build not working - inlcudes-function polyfill too late in the file and dissolve-function does not exist HOT 2
- Range selector scrolls away while scrollablePlotArea enabled HOT 6
- Incorrect initial value for some custom editable options in the edit mode sidebar.
- Issue with flamechart in Vue HOT 1
- `mapbubble` bubble legend displays unexpected x-axis with ticks since v11.3.0 HOT 1
- Axis extremes not assigned correctly when chart is resized with `scrollbar` and `responsive` rules HOT 2
- Highcharts PIE doesn't display noData string for hidden points HOT 1
- Center track line when using tick amount HOT 1
- `SeriesLineOptions` & `SeriesColumnOptions` types missing in 11.4.1 HOT 10
- Can't pan map when provider url is defined HOT 1
- Legend injected accessibility styling seemingly not accounted for
- Unwanted animation of label when right aligned
- The `Chart.addSeries()` function with `visible: false` causes the error with `series-on-point` module HOT 1
- Synchronization of connector values editing between components does not work correctly for connectors with modifier.
- Tooltip not destroyed HOT 2
- Range Selector dropdown doesn't open in Gantt chart HOT 1
- Map changes January 2024: Norwegian County and municipalities HOT 1
- `decimalPoint` / `thousandsSep` not applied properly for `tooltip` and `dataLabels` when using `format` and `{point.y}` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from highcharts.