Skip to content
This repository has been archived by the owner on Jan 18, 2018. It is now read-only.

Change Highcharts to add another last point for every series with the latest current value of its datapoint. #9

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Giermann
Copy link

This fixes an issue displaying area typed series. In my special case I do have rarely changing boolean datapoints, not displaying an area for "true" (1) state after the last change. With this additional point for every series, it displays correctly up to the end of the chart.

… latest current value of its datapoint.

This fixes an issue displaying area typed series. In my special case I do have rarely changing boolean datapoints, not displaying an area for "true" (1) state after the last change. With this additional point for every series, it displays correctly up to the end of the chart.
String values seem to be quoted sometimes and may be "true", "on" or "yes" to show up as 1.
Instead of creating the chart data while reading the logfiles, create them at the beginning in the user specified order.
This prevents random ordering depending on their appearance in log files.

Show them one by one after init to avoid browsers complaining about blocking scripts.
The rangeSelector was not shown with all series initially hidden, so display at least the first.
After setting chart.ready it is safe to show all series with a single redraw which is much faster then sequential show().
Order of object properties is not guaranteed, so use another logDataOrder array.
(found in Firefox 44)
Add missing removeAttr() for step options
Set visible to true for all series options.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant