Browse Source

line-pod v0.4.0

pull/25/head
Alexey Velikiy 3 years ago
parent
commit
84aa3f91b1
  1. 2
      client/package.json
  2. 4
      client/src/components/hastic_pod/index.ts
  3. 2
      client/src/services/metrics.service.ts
  4. 18
      client/yarn.lock

2
client/package.json

@ -9,7 +9,7 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"@chartwerk/line-pod": "^0.2.4",
"@chartwerk/line-pod": "^0.4.0",
"@kyvg/vue3-notification": "^2.3.4",
"@types/lodash": "^4.14.176",
"axios": "^0.23.0",

4
client/src/components/hastic_pod/index.ts

@ -1,6 +1,6 @@
import { ChartwerkLineChart, LineOptions, LineTimeSerie } from "@chartwerk/line-pod";
import { LinePod, LineTimeSerie } from "@chartwerk/line-pod";
export class HasticPod extends ChartwerkLineChart {
export class HasticPod extends LinePod {
constructor(el: HTMLElement, series?: LineTimeSerie[]) {
super(el, series, {
renderLegend: false,

2
client/src/services/metrics.service.ts

@ -17,6 +17,6 @@ export async function getMetrics(from: number, to: number, step: number) {
const res = await axios.get(uri);
const target = _.keys(res["data"]["data"])[0];
const values = res["data"]["data"][target].map(([a,b]) => [b,a]);
const values = res["data"]["data"][target];
return [target, values];
}

18
client/yarn.lock

@ -223,17 +223,17 @@
"@babel/helper-validator-identifier" "^7.14.9"
to-fast-properties "^2.0.0"
"@chartwerk/core@^0.1.1":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@chartwerk/core/-/core-0.1.1.tgz#cc15c4f388737032a1e9616959541989e54b4824"
integrity sha512-AgERJVR6agOXULOQsc7sQHM7INP8iaF+kGj2c08DYTZ6SmIUGJFWpcSVTTccZZ3Szf/ypiI60tC1bgTKaIchTg==
"@chartwerk/core@^0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@chartwerk/core/-/core-0.2.0.tgz#208604a51a38f307e45b751f2fe6f13e655b67c1"
integrity sha512-VWlBMn6FiYts3RbDdFd3ChQ9QzpdewUlv7Scwc8e/54863abtG4YHyD/X9cVB5RjRivEJd9cJPHWkPaWKuik3g==
"@chartwerk/line-pod@^0.2.4":
version "0.2.4"
resolved "https://registry.yarnpkg.com/@chartwerk/line-pod/-/line-pod-0.2.4.tgz#67f9f026ca330c4e746d80ff9ce88e99ddca9b1d"
integrity sha512-XXoDBEIHyxSNdbpjKWZwU4zXE9nlN7731lYx3F5ICQxozGrb3FEPsj4gS63nPAdyQXWWvglSk+t12L8deN0P2A==
"@chartwerk/line-pod@^0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@chartwerk/line-pod/-/line-pod-0.4.0.tgz#954e8fb4726aa949bf383d07c72ee23f65da3801"
integrity sha512-gCwgXCedicBqn9ixPfinEKJomJBo9YjoLEAEiGMpNgrj0j+TYh/fboFrbaUwiHM21ERNoDj/Pj97moUTBQONsA==
dependencies:
"@chartwerk/core" "^0.1.1"
"@chartwerk/core" "^0.2.0"
"@cnakazawa/watch@^1.0.3":
version "1.0.4"

Loading…
Cancel
Save