Browse Source

Merge branch 'linepod-classname' into 'main'

LinePod classname

Closes #1

See merge request chartwerk/line-pod!5
merge-requests/7/head
Alexander Velikiy 3 years ago
parent
commit
e740b4f9e1
  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