diff --git a/docs/usersguide/chartjs.md b/docs/usersguide/chartjs.md index ea22159..9e9af69 100644 --- a/docs/usersguide/chartjs.md +++ b/docs/usersguide/chartjs.md @@ -116,7 +116,8 @@ barplot chart with minimum/maximum and normal range id="id11" fromid="id4" refindex="2" - extremelimits="0,1" - normallimits="6.9,7.1"> + extremelimits="4,8" + normallimits="6.9,7.1" + initialdata="7"> diff --git a/src/elements/chartjs.js b/src/elements/chartjs.js index 00a373a..7409cda 100644 --- a/src/elements/chartjs.js +++ b/src/elements/chartjs.js @@ -76,7 +76,7 @@ export class Chartjs { * process all attributes of component and sets appropriate settings of subesquent chartjs */ bind() { - console.log('chartjs bind'); + //console.log('chartjs bind'); this.refindex = parseInt(this.refindex, 10); this.refvalues = parseInt(this.refvalues, 10); this.refendindex = this.refindex + this.refvalues; @@ -214,7 +214,7 @@ export class Chartjs { * this is called when the DOM is attached to view - instantiate the chartjs and sets all necesary binding */ attached() { - console.log('chartjs attached'); + //console.log('chartjs attached'); //listening to custom event fmidata and fmireset const fromel = document.getElementById(this.fromid); if (fromel) { @@ -363,7 +363,7 @@ export class Chartjs { options: this.options, tooltipEvents: ['mousemove', 'touchstart', 'touchmove', 'click'] }); - console.log('chartjs data', this.data); + // console.log('chartjs data', this.data); } /**