Search found 60 matches

Go to advanced search

by cnighswonger
Tue Mar 15, 2022 1:32 pm
Forum: Highcharts Usage
Topic: How to prevent xAxis from autoadapting when adding additional series
Replies: 3
Views: 112
 
Jump to post

Re: How to prevent xAxis from autoadapting when adding additional series

mateusz.b wrote: Sat Mar 12, 2022 12:22 am Let me know if that was what you were looking for!
That is it!

Thanks for your kind help!
by cnighswonger
Fri Mar 11, 2022 3:41 pm
Forum: Highcharts Usage
Topic: How to prevent xAxis from autoadapting when adding additional series
Replies: 3
Views: 112
 
Jump to post

How to prevent xAxis from autoadapting when adding additional series

Notice on this fiddle how the xAxis scale adapts when the OAT series is added. I want to prevent that. I just want the points in the second series added to the correct point in time without adapting the datetime scale to the new series:

https://jsfiddle.net/chris_kdd/b9c32k6h/
by cnighswonger
Fri Mar 04, 2022 4:02 pm
Forum: Highcharts Usage
Topic: Highcharts navigator arrow (or any) event?
Replies: 1
Views: 76
 
Jump to post

Highcharts navigator arrow (or any) event?

Is it possible to attach a custom callback to the navigator arrows (or any other navigator event)? Something like: navigator : { events: { arrowClick : arrowClick, } } The API doc seem to imply something like this , but it does not work in practice : navigator : { xAxis : { events: { afterSetExtreme...
by cnighswonger
Fri Mar 04, 2022 2:07 pm
Forum: Highcharts Usage
Topic: What is triggering afterSetExtremes when e.trigger == undefined
Replies: 6
Views: 287
 
Jump to post

Re: What is triggering afterSetExtremes when e.trigger == undefined

Incidentally, e.trigger should really never be undefined, even when the redraw is called internally.

I've opened the following bug for this:

https://github.com/highcharts/highcharts/issues/17055
by cnighswonger
Thu Mar 03, 2022 5:47 pm
Forum: Highcharts Usage
Topic: Axis.get()
Replies: 7
Views: 182
 
Jump to post

Re: Axis.get()

Hey mateusz.b,
mateusz.b wrote: Thu Mar 03, 2022 5:43 pmI was thinking that you want a method that would return specific series upon calling it directly on axis object.
That was due to my misunderstanding of the object provided by e.target. I apologize for the confusion there.

Thanks for all of the help!

Kind regards,
Chris
by cnighswonger
Thu Mar 03, 2022 5:04 pm
Forum: Highcharts Usage
Topic: Axis.get()
Replies: 7
Views: 182
 
Jump to post

Resolved: Axis.get()

The issue I'm addressing is when handed an event (such as when using afterSetExtremes, etc.) I would like to be able to use the e.target object (the xAxis in this case) to operate on a series attached to that axis. As it is, I have to know the index of the series. A get() method similar to the Char...
by cnighswonger
Thu Mar 03, 2022 3:21 pm
Forum: Highcharts Usage
Topic: What is triggering afterSetExtremes when e.trigger == undefined
Replies: 6
Views: 287
 
Jump to post

Re: What is triggering afterSetExtremes when e.trigger == undefined

Fixed. For future reference here is what completely eliminated the "undefined" triggering of afterSetExtremes: navigator: { adaptToUpdatedData: false, } This was a bit harder to dig up than I would have expected, but it is mentioned in the API docs here . Specifically: When loading data as...
by cnighswonger
Wed Mar 02, 2022 3:22 pm
Forum: Highcharts Usage
Topic: What is triggering afterSetExtremes when e.trigger == undefined
Replies: 6
Views: 287
 
Jump to post

Re: What is triggering afterSetExtremes when e.trigger == undefined

The previously mentioned fiddle does not show the problem with any consistency. I was able to stop the infinite recursion by adding this to my chart configuration: scrollbar: { liveRedraw: false }, However, e.trigger should default to something more informative than undefined. Even examining stack t...
by cnighswonger
Wed Mar 02, 2022 1:54 pm
Forum: Highcharts Usage
Topic: Axis.get()
Replies: 7
Views: 182
 
Jump to post

Re: Axis.get()

However, on every axis object you can find a series array, which contains series that belong to that specific axis. You can filter them by id. I was hoping to avoid that approach. It is a bit messy to have to iterate over some objects to retrieve attributes, etc. while others have a clean method. I...
by cnighswonger
Tue Mar 01, 2022 5:55 pm
Forum: Highcharts Usage
Topic: Axis.get()
Replies: 7
Views: 182
 
Jump to post

Axis.get()

Is there a way to get a series from an axis object by series.id? If it was a chart object, one would simply series = Chart.get(seriesId) The issue I'm addressing is when handed an event (such as when using afterSetExtremes, etc.) I would like to be able to use the e.target object (the xAxis in this ...
by cnighswonger
Tue Mar 01, 2022 5:02 pm
Forum: Highcharts Usage
Topic: What is triggering afterSetExtremes when e.trigger == undefined
Replies: 6
Views: 287
 
Jump to post

Re: What is triggering afterSetExtremes when e.trigger == undefined

This fiddle shows e.trigger undefined: https://jsfiddle.net/k1zg4pcm/ It is based on the Highcharts Series.setData demo fiddle found here: https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/stock/members/series-setdata/ IMHO, e.trigger should never be undefined. It ma...
by cnighswonger
Tue Mar 01, 2022 3:27 pm
Forum: Highcharts Usage
Topic: addPlotBand() API docs missing?
Replies: 7
Views: 624
 
Jump to post

Re: addPlotBand() API docs missing?

Thanks for your kind help!
by cnighswonger
Tue Mar 01, 2022 2:58 pm
Forum: Highcharts Usage
Topic: What is triggering afterSetExtremes when e.trigger == undefined
Replies: 6
Views: 287
 
Jump to post

Re: What is triggering afterSetExtremes when e.trigger == undefined

I suspect that this is related to a recursion issue with the setExtremes/afterSetExtremes events. I need to confirm that and work up a demo.
by cnighswonger
Tue Mar 01, 2022 2:33 pm
Forum: Highcharts Usage
Topic: What is triggering afterSetExtremes when e.trigger == undefined
Replies: 6
Views: 287
 
Jump to post

What is triggering afterSetExtremes when e.trigger == undefined

According to the api docs, e.trigger should always have one of the following values:

Code: Select all

"navigator" | "pan" | "rangeSelectorButton" | "rangeSelectorInput" | "scrollbar" | "traverseUpButton" | "zoom"
by cnighswonger
Tue Mar 01, 2022 1:50 pm
Forum: Highcharts Usage
Topic: addPlotBand() API docs missing?
Replies: 7
Views: 624
 
Jump to post

Re: addPlotBand() API docs missing?

cnighswonger wrote: Tue Mar 01, 2022 1:47 pm Another question:

Does calling addPlotBand() trigger a redraw?
Sorry for answering my own question in this case: Calling addPlotBand() does not trigger a redraw.

Go to advanced search