Skip to content

Commit da03163

Browse files
committed
Add pan and zoom to dashboard charts
1 parent 20f7aa8 commit da03163

11 files changed

Lines changed: 479 additions & 632 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.0.0
2+
- Add pan and zoom to dashboard charts
3+
- Rename anomaly scores HTTP resource
4+
15
- 1.0.0-beta
26
- Update to Rubix ML 1.0
37

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ The HTTP server exposes the following resources and their methods.
149149
| GET | /model | Return the properties of the model. |
150150
| POST | /model/predictions | Make a set of predictions on a dataset. |
151151
| POST | /model/probabilities | Return the joint probabilities of each sample in a dataset. |
152-
| POST | /model/anomaly_scores | Return the anomaly scores of each sample in a dataset. |
152+
| POST | /model/anomaly-scores | Return the anomaly scores of each sample in a dataset. |
153153
| GET | /server | Return the properties of the server. |
154154
| GET | /dashboard/events | Subscribe to the dashboard events stream. |
155155
| POST | /graphql | Query the server using GraphQL. |

assets/app.js

Lines changed: 21 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/app.js.gz

1.01 KB
Binary file not shown.

package-lock.json

Lines changed: 441 additions & 612 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"watch": "npm run dev -- --watch"
1111
},
1212
"devDependencies": {
13-
"@babel/core": "^7.13.16",
14-
"@babel/plugin-transform-typescript": "^7.13.0",
15-
"@babel/preset-env": "^7.13.15",
13+
"@babel/core": "^7.14.3",
14+
"@babel/plugin-transform-typescript": "^7.14.3",
15+
"@babel/preset-env": "^7.14.2",
1616
"@babel/preset-typescript": "^7.13.0",
1717
"@creativebulma/bulma-tooltip": "^1.2.0",
1818
"@fortawesome/fontawesome-free": "^5.15.3",
@@ -32,21 +32,21 @@
3232
"css-loader": "^4.3.0",
3333
"file-loader": "^6.1.0",
3434
"graphql": "^15.5.0",
35-
"graphql-tag": "^2.11.0",
35+
"graphql-tag": "^2.12.4",
3636
"ify-loader": "^1.1.0",
3737
"mini-css-extract-plugin": "^0.9.0",
3838
"moment": "^2.29.1",
3939
"moment-locales-webpack-plugin": "^1.2.0",
4040
"node-sass": "^4.14.1",
41-
"optimize-css-assets-webpack-plugin": "^5.0.4",
41+
"optimize-css-assets-webpack-plugin": "^5.0.6",
4242
"plotly.js": "^1.58.4",
43-
"sass": "^1.32.11",
43+
"sass": "^1.33.0",
4444
"sass-loader": "^9.0.3",
4545
"svg-url-loader": "^7.1.1",
4646
"typescript": "^4.2.4",
4747
"vue": "^2.6.12",
4848
"vue-apollo": "^3.0.7",
49-
"vue-loader": "^15.9.6",
49+
"vue-loader": "^15.9.7",
5050
"vue-router": "^3.5.1",
5151
"vue-sse": "^1.1.1",
5252
"vue-style-loader": "^4.1.3",

src/HTTP/Controllers/ModelController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function routes() : array
6060
}
6161

6262
if ($this->model->isScoring()) {
63-
$routes['/model/anomaly_scores'] = [
63+
$routes['/model/anomaly-scores'] = [
6464
'POST' => [
6565
[$this, 'decompressRequestBody'],
6666
[$this, 'parseRequestBody'],

src/HTTP/Requests/ScoreRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ScoreRequest extends JSONRequest
1111
*/
1212
public function __construct(Dataset $dataset)
1313
{
14-
parent::__construct('POST', '/model/anomaly_scores', [
14+
parent::__construct('POST', '/model/anomaly-scores', [
1515
'samples' => $dataset->samples(),
1616
]);
1717
}

ui/components/InferenceRateChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default Vue.extend({
129129
responsive: true,
130130
displaylogo: false,
131131
modeBarButtons: [
132-
['toImage'],
132+
['zoom2d', 'pan2d', 'resetScale2d', 'toImage'],
133133
],
134134
});
135135

ui/components/ResponseRateChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export default Vue.extend({
165165
responsive: true,
166166
displaylogo: false,
167167
modeBarButtons: [
168-
['toImage'],
168+
['zoom2d', 'pan2d', 'resetScale2d', 'toImage'],
169169
],
170170
});
171171

0 commit comments

Comments
 (0)