Skip to content

Commit 6501454

Browse files
committed
Cleanup
1 parent 0019a4e commit 6501454

File tree

5 files changed

+21
-12
lines changed

5 files changed

+21
-12
lines changed

src/core/config/Categories.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,11 @@
359359
"Play Media",
360360
"Remove EXIF",
361361
"Extract EXIF",
362-
"Split Colour Channels"
362+
"Split Colour Channels",
363+
"Hex Density chart",
364+
"Scatter chart",
365+
"Series chart",
366+
"Heatmap chart"
363367
]
364368
},
365369
{

src/core/operations/HeatmapChart.mjs

+6-5
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class HeatmapChart extends Operation {
2626

2727
this.name = "Heatmap chart";
2828
this.module = "Charts";
29-
this.description = "";
30-
this.infoURL = "";
29+
this.description = "A heatmap is a graphical representation of data where the individual values contained in a matrix are represented as colors.";
30+
this.infoURL = "https://wikipedia.org/wiki/Heat_map";
3131
this.inputType = "string";
3232
this.outputType = "html";
3333
this.args = [
@@ -85,6 +85,8 @@ class HeatmapChart extends Operation {
8585
}
8686

8787
/**
88+
* Heatmap chart operation.
89+
*
8890
* @param {string} input
8991
* @param {Object[]} args
9092
* @returns {html}
@@ -99,7 +101,6 @@ class HeatmapChart extends Operation {
99101
minColour = args[8],
100102
maxColour = args[9],
101103
dimension = 500;
102-
103104
if (vBins <= 0) throw new OperationError("Number of vertical bins must be greater than 0");
104105
if (hBins <= 0) throw new OperationError("Number of horizontal bins must be greater than 0");
105106

@@ -182,7 +183,7 @@ class HeatmapChart extends Operation {
182183
.attr("stroke-width", drawEdges ? "0.5" : "none")
183184
.append("title")
184185
.text(d => {
185-
let count = d.length,
186+
const count = d.length,
186187
perc = 100.0 * d.length / values.length,
187188
tooltip = `Count: ${count}\n
188189
Percentage: ${perc.toFixed(2)}%\n
@@ -218,7 +219,7 @@ class HeatmapChart extends Operation {
218219

219220
/**
220221
* Packs a list of x, y coordinates into a number of bins for use in a heatmap.
221-
*
222+
*
222223
* @param {Object[]} points
223224
* @param {number} number of vertical bins
224225
* @param {number} number of horizontal bins

src/core/operations/HexDensityChart.mjs

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ class HexDensityChart extends Operation {
2525

2626
this.name = "Hex Density chart";
2727
this.module = "Charts";
28-
this.description = "";
29-
this.infoURL = "";
28+
this.description = "Hex density charts are used in a similar way to scatter charts, however rather than rendering tens of thousands of points, it groups the points into a few hundred hexagons to show the distribution.";
3029
this.inputType = "string";
3130
this.outputType = "html";
3231
this.args = [
@@ -90,6 +89,8 @@ class HexDensityChart extends Operation {
9089

9190

9291
/**
92+
* Hex Bin chart operation.
93+
*
9394
* @param {string} input
9495
* @param {Object[]} args
9596
* @returns {html}

src/core/operations/ScatterChart.mjs

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class ScatterChart extends Operation {
2424

2525
this.name = "Scatter chart";
2626
this.module = "Charts";
27-
this.description = "";
28-
this.infoURL = "";
27+
this.description = "Plots two-variable data as single points on a graph.";
28+
this.infoURL = "https://en.wikipedia.org/wiki/Scatter_plot";
2929
this.inputType = "string";
3030
this.outputType = "html";
3131
this.args = [
@@ -73,6 +73,8 @@ class ScatterChart extends Operation {
7373
}
7474

7575
/**
76+
* Scatter chart operation.
77+
*
7678
* @param {string} input
7779
* @param {Object[]} args
7880
* @returns {html}

src/core/operations/SeriesChart.mjs

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ class SeriesChart extends Operation {
2424

2525
this.name = "Series chart";
2626
this.module = "Charts";
27-
this.description = "";
28-
this.infoURL = "";
27+
this.description = "A time series graph is a line graph of repeated measurements taken over regular time intervals.";
2928
this.inputType = "string";
3029
this.outputType = "html";
3130
this.args = [
@@ -58,6 +57,8 @@ class SeriesChart extends Operation {
5857
}
5958

6059
/**
60+
* Series chart operation.
61+
*
6162
* @param {string} input
6263
* @param {Object[]} args
6364
* @returns {html}

0 commit comments

Comments
 (0)