Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/src/munin-plot.js
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade to Bootstrap 5Arthur de Jong2021-09-031-27/+14
| | | | | | This updates the events that are handled in Javascript to no longer use jQuery and stops the use of Bootstrap tooltips. Bootstrap introduces slightly different font sizes and we include some changes to padding.
* Update to Plotly.js 2.4Arthur de Jong2021-09-031-4/+4
| | | | This includes some changes to import D3 ourselves.
* Fix typos found by codespellArthur de Jong2021-08-101-2/+2
|
* Trim leading and trailing nulls before plottingArthur de Jong2021-05-021-2/+12
| | | | | | This avoids confusing Plotly area plots where a value of 0 is plotted instead. We cannot strip all nulls because that would make it not show gaps in graphs.
* Refactor code to process data in one placeArthur de Jong2021-05-021-134/+133
| | | | | This gets rid of the two invocations of Plotly.d3.csv() function that processed data slightly differently.
* Fix graph auto-reloadingArthur de Jong2021-02-221-3/+2
| | | | | | We can no longer check if our data series are complete because the new API returns null values for the whole date range so we check the time range instead.
* Try to support gaps in graphsArthur de Jong2021-02-211-6/+8
|
* Also dim min/max range for non-highlighted seriesArthur de Jong2021-01-311-12/+10
|
* Support more timestamp formatsArthur de Jong2021-01-301-1/+1
| | | | This results in slightly more compact URLs without escaped spaces.
* Reload the whole data when the range changesArthur de Jong2021-01-301-58/+20
| | | | | | | | This avoids mixing various data point densities in one single graph and ensures that the vertical scales are reasonable for the data that is shown. This also changes the mechanism by which new data is fetched.
* Update some NPM packagesArthur de Jong2020-12-201-72/+74
| | | | | | | | | Includes a fix for CVE-2020-7788 in ini npm package. This upgrades to newer eslint and webpack and includes a few fixes for that. Closes https://github.com/arthurdejong/munin-plot/pull/6
* Allow uploading a dashboard JSON fileArthur de Jong2020-08-161-0/+13
|
* Allow downloading the dashboard as a JSON fileArthur de Jong2020-08-161-11/+29
|
* Allow loading dashboard from JSONArthur de Jong2020-08-161-1/+36
| | | | | This allows copy-pasting the dashboard definition and loading graphs from that.
* Allow exporting dashboard to JSONArthur de Jong2020-08-161-0/+44
| | | | | This puts JSON in the copy-paste buffer so it can be saved to a file by the user.
* Make time period selection simplerArthur de Jong2020-08-161-5/+2
| | | | | This makes all time periods relative time ranges based on the current date and time.
* Ignore seconds when making data requestsArthur de Jong2020-06-201-2/+2
|
* Send the correct relayout eventArthur de Jong2020-06-201-1/+1
| | | | | | | This ensures that the legend for other graphs is correctly updated when changing the date range (zoom or pan). Fixes 63802b9
* Only hover on one series in busy graphArthur de Jong2020-06-141-0/+4
|
* Be slightly more efficient with handling zoom changesArthur de Jong2020-04-101-7/+7
| | | | | This only handles the event if the event contains a change in the X-axis range.
* Add a dashboard chooserArthur de Jong2020-01-271-1/+23
|
* Split setting of graph list to separate functionArthur de Jong2020-01-271-17/+26
|
* Use more jQueryArthur de Jong2020-01-271-114/+88
|
* Add a button to clear all graphsArthur de Jong2020-01-261-0/+13
|
* Hide nav buttons until everything is loadedArthur de Jong2020-01-261-31/+28
|
* Remember hidden traces in graphsArthur de Jong2020-01-201-29/+55
| | | | | This stores the traces that were manually hidden in the graph in local storage and restores the hidden state when re-adding the graphs.
* Save the graph size in local storageArthur de Jong2020-01-201-11/+24
|
* Simplify way assets are addedArthur de Jong2020-01-201-0/+9
| | | | | This adds all entry points to the munin-plot.js file as requirements. This also allows us to ship a simple CSS file instead of a SCSS file.
* Add an animation to removing a graphArthur de Jong2020-01-051-4/+6
| | | | This makes it clearer to the use what is going on.
* Store date range and current graphs in local storageArthur de Jong2020-01-051-2/+34
| | | | | This ensures that the list of graphs is restored when the browser is re-opened.
* Various minor improvementsArthur de Jong2020-01-051-17/+22
| | | | | | This has a few minor tweaks to the styling, fixes issues with tooltips lingering around after dragging and uses jQuery a bit more resulting in slightly more compact code.
* Simplify left bar of graphArthur de Jong2019-12-311-33/+37
| | | | | | | The title of the graph is now shown on above the graph for extra clarity allowing the other actions to be shown in the bar directly. This also adds bootstrap tooltips in various places.
* Add navigation bar with date range selectorArthur de Jong2019-12-301-468/+528
| | | | | This also adds a few small style tweaks and ensures that webpack does not minimise development builds.
* Use ESLint to check code styleArthur de Jong2019-12-301-287/+302
|
* Use webpack to build Javascript partArthur de Jong2019-12-301-0/+530
This uses npm to install the required packages and builds the files with webpack.