Skip to content

Commit 0662954

Browse files
committed
Added the rest of plotly (from 1.1mb to 2.2mb) for advanced plots.
1 parent 6dffdaf commit 0662954

File tree

1 file changed

+40
-39
lines changed

1 file changed

+40
-39
lines changed

src/plotly.ts

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,55 @@
11
// import Plotly from "plotly.js-dist";
22
// export default Plotly as typeof import("plotly.js");
33

4+
// TODO: optimize bundle size
45
window.global = window;
56
var Plotly = require("plotly.js/lib/core") as typeof import("plotly.js");
67
Plotly.register([
78
// traces
89
require("plotly.js/lib/bar"),
9-
// require("plotly.js/lib/box"),
10-
// require("plotly.js/lib/heatmap"),
11-
// require("plotly.js/lib/histogram"),
12-
// require("plotly.js/lib/histogram2d"),
13-
// require("plotly.js/lib/histogram2dcontour"),
14-
// require("plotly.js/lib/contour"),
10+
require("plotly.js/lib/box"),
11+
require("plotly.js/lib/heatmap"),
12+
require("plotly.js/lib/histogram"),
13+
require("plotly.js/lib/histogram2d"),
14+
require("plotly.js/lib/histogram2dcontour"),
15+
require("plotly.js/lib/contour"),
1516

16-
// require("plotly.js/lib/scatterternary"),
17-
// require("plotly.js/lib/violin"),
18-
// require("plotly.js/lib/funnel"),
19-
// require("plotly.js/lib/waterfall"),
17+
require("plotly.js/lib/scatterternary"),
18+
require("plotly.js/lib/violin"),
19+
require("plotly.js/lib/funnel"),
20+
require("plotly.js/lib/waterfall"),
2021
// require("plotly.js/lib/image"), // NOGO
21-
// require("plotly.js/lib/pie"),
22-
// require("plotly.js/lib/sunburst"),
23-
// require("plotly.js/lib/treemap"),
24-
// require("plotly.js/lib/icicle"),
25-
// require("plotly.js/lib/funnelarea"),
22+
require("plotly.js/lib/pie"),
23+
require("plotly.js/lib/sunburst"),
24+
require("plotly.js/lib/treemap"),
25+
require("plotly.js/lib/icicle"),
26+
require("plotly.js/lib/funnelarea"),
2627

27-
// require("plotly.js/lib/scatter3d"),
28-
// require("plotly.js/lib/surface"),
29-
// require("plotly.js/lib/isosurface"),
30-
// require("plotly.js/lib/volume"),
31-
// require("plotly.js/lib/mesh3d"),
32-
// require("plotly.js/lib/cone"),
33-
// require("plotly.js/lib/streamtube"),
34-
// require("plotly.js/lib/scattergeo"),
35-
// require("plotly.js/lib/choropleth"),
36-
// require("plotly.js/lib/pointcloud"),
37-
// require("plotly.js/lib/heatmapgl"),
38-
// require("plotly.js/lib/parcats"),
28+
require("plotly.js/lib/scatter3d"),
29+
require("plotly.js/lib/surface"),
30+
require("plotly.js/lib/isosurface"),
31+
require("plotly.js/lib/volume"),
32+
require("plotly.js/lib/mesh3d"),
33+
require("plotly.js/lib/cone"),
34+
require("plotly.js/lib/streamtube"),
35+
require("plotly.js/lib/scattergeo"),
36+
require("plotly.js/lib/choropleth"),
37+
require("plotly.js/lib/pointcloud"),
38+
require("plotly.js/lib/heatmapgl"),
39+
require("plotly.js/lib/parcats"),
3940
// require("plotly.js/lib/scattermapbox"),
4041
// require("plotly.js/lib/choroplethmapbox"),
41-
// require("plotly.js/lib/densitymapbox"),
42-
// require("plotly.js/lib/sankey"),
43-
// require("plotly.js/lib/indicator"),
44-
// require("plotly.js/lib/table"),
45-
// require("plotly.js/lib/carpet"),
46-
// require("plotly.js/lib/scattercarpet"),
47-
// require("plotly.js/lib/contourcarpet"),
48-
// require("plotly.js/lib/ohlc"),
49-
// require("plotly.js/lib/candlestick"),
50-
// require("plotly.js/lib/scatterpolar"),
51-
// require("plotly.js/lib/barpolar"),
42+
// // require("plotly.js/lib/densitymapbox"),
43+
require("plotly.js/lib/sankey"),
44+
require("plotly.js/lib/indicator"),
45+
require("plotly.js/lib/table"),
46+
require("plotly.js/lib/carpet"),
47+
require("plotly.js/lib/scattercarpet"),
48+
require("plotly.js/lib/contourcarpet"),
49+
require("plotly.js/lib/ohlc"),
50+
require("plotly.js/lib/candlestick"),
51+
require("plotly.js/lib/scatterpolar"),
52+
require("plotly.js/lib/barpolar"),
5253

5354
// transforms
5455
require("plotly.js/lib/aggregate"),
@@ -57,7 +58,7 @@ Plotly.register([
5758
require("plotly.js/lib/sort"),
5859

5960
// components
60-
// require("plotly.js/lib/calendars"),
61+
require("plotly.js/lib/calendars"),
6162
]);
6263

6364
export default Plotly;

0 commit comments

Comments
 (0)