I'm having this problem. I'm using the load and setExtremes events on my chart.
When I click on the export button, all then event are lauched.
The events are causing some undesired behavior.
I would like to disable the events calling on export.
Is this posible?
You can use chartOptions and disable chart -> events http://api.highcharts.com/highcharts#exporting.chartOptions
Related
I need to show users different tooltips on mouse over event. Do we have something like that in Vaadin component library? If no, how to show tooltips in Vaadin23?
You could use also get the root element of whatever component you want the tooltip for and set the attribute:
Button button = new Button("Example");
button.getElement.setAttribute("title", "This is the tooltip");
There is an addon for tooltips https://vaadin.com/directory-beta/addon/tooltip
There is also ongoing work on adding tooltips to the core framework, you can follow the discussion here https://github.com/orgs/vaadin/discussions/3196
I am using jQuery-ui autocomplete, and I am tyring to handle the event that is fired each time the user moves up and down through the list of results by using the up and down keyboard arrow keys (not when using mouse).
Is that possible? if so, how?
I have solved it by handle focus event for this case and then I ignore default behaviour by returing false (sames as event.preventdefault()).
Basically I want to do simple thing - save to user cookie chart xAxis.min and xAsis.max when user uses the Navigator, so that next time I could show him chart on the same selected period.
Is there some kind of onChange event or I have to read chart's parameters in setInterval?
You can use the xAxis.events.afterSetExtremes (API) or xAxis.events.setExtremes event. From your requirements I would assume that afterSetExtremes is sufficient.
If you want to only capture changes through the navigator you need to check
if(event.trigger == 'navigator'), otherwise you can just look at general changes.
Here is a JFiddle Highstock demo that shows the use of setExtremes event and what event.trigger values you can get.
By default, the tooltip appears as soon as the cursor enters the chart. I would like to control when it first appears in one of two ways:
Wait for user to hover over (around) a data point on the chart.
This way the user can look at the entire chart without the
distraction of the tooltip.
mousedown - is there a way to disable the default mousedown function
and use it for displaying the tooltip instead? And because the
tooltip and crosshair seem to be joined, perhaps the same mousedown
event could fire the crosshair to appear?
number 2 would be best; any suggestions/solutions would be appreciated!
Number 2 is possible to achieve by:
disable default Highcharts tooltip
create point.click event handler
in above handler, create your own tooltip (it's simple div with some CSS)
make proper position for tooltip (accessed via this.point.plotX and this.point.plotY
Hi I want to hide the chart(highchart) onload, after loaded by click event I want to show the chart. But now after the click event it shows empty div and the chart is missing.
soon please.
Try rebind the highchart initialization on click event.