Browse Source

LinePod classname

merge-requests/5/head
Alexey Velikiy 3 years ago
parent
commit
61a643548a
  1. 2
      package.json
  2. 4
      src/index.ts

2
package.json

@ -1,6 +1,6 @@
{
"name": "@chartwerk/line-pod",
"version": "0.2.4",
"version": "0.3.0",
"description": "Chartwerk line chart",
"main": "dist/index.js",
"scripts": {

4
src/index.ts

@ -9,7 +9,7 @@ const CROSSHAIR_CIRCLE_RADIUS = 3;
const CROSSHAIR_BACKGROUND_RAIDUS = 9;
const CROSSHAIR_BACKGROUND_OPACITY = 0.3;
export class ChartwerkLineChart extends ChartwerkPod<LineTimeSerie, LineOptions> {
export class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> {
lineGenerator = null;
metricContainer = null;
@ -504,7 +504,7 @@ export const VueChartwerkLineChartObject = {
methods: {
render() {
if(this.pod === undefined) {
this.pod = new ChartwerkLineChart(document.getElementById(this.id), this.series, this.options);
this.pod = new LinePod(document.getElementById(this.id), this.series, this.options);
this.pod.render();
} else {
this.pod.updateData(this.series, this.options);

Loading…
Cancel
Save