Skip to content

Commit 74f2a85

Browse files
authored
refactor: replace flot with highcharts (ietf-tools#4030)
* chore: Replace flot with highcharts Since flot hasn't been updated since 2014 and was only used in one place. Simplify how highcharts is initialized and used, and re-enable pre-bs5 export functionality. * Fix tests * Remove some console.log statements
1 parent 337d2ad commit 74f2a85

23 files changed

Lines changed: 81 additions & 80 deletions

.pnp.cjs

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-281 KB
Binary file not shown.

ietf/static/js/flot.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

ietf/static/js/highcharts-export-data.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

ietf/static/js/highcharts-exporting.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

ietf/static/js/highcharts-highcharts.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

ietf/static/js/highcharts-highstock.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

ietf/static/js/highcharts-offline-exporting.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

ietf/static/js/highcharts.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Highcharts from "highcharts";
2+
3+
import Highcharts_Exporting from "highcharts/modules/exporting";
4+
import Highcharts_Offline_Exporting from "highcharts/modules/offline-exporting";
5+
import Highcharts_Export_Data from "highcharts/modules/export-data";
6+
import Highcharts_Accessibility from"highcharts/modules/accessibility";
7+
8+
Highcharts_Exporting(Highcharts);
9+
Highcharts_Offline_Exporting(Highcharts);
10+
Highcharts_Export_Data(Highcharts);
11+
Highcharts_Accessibility(Highcharts);
12+
13+
window.Highcharts = Highcharts;

ietf/static/js/highstock.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Highcharts from "highcharts/highstock";
2+
3+
import Highcharts_Exporting from "highcharts/modules/exporting";
4+
import Highcharts_Offline_Exporting from "highcharts/modules/offline-exporting";
5+
import Highcharts_Export_Data from "highcharts/modules/export-data";
6+
import Highcharts_Accessibility from"highcharts/modules/accessibility";
7+
8+
Highcharts_Exporting(Highcharts);
9+
Highcharts_Offline_Exporting(Highcharts);
10+
Highcharts_Export_Data(Highcharts);
11+
Highcharts_Accessibility(Highcharts);
12+
13+
window.Highcharts = Highcharts;

0 commit comments

Comments
 (0)