Dear Will, I was struggling to plot out charts using <ma-watch-list-chart>
and <ma-annotate-chart>
and no charts is rendered. Both in Chrome and Firefox, I noted that there is an error: Following is the error message from Chrome:
TypeError: Cannot read property 'chartConfig' of null
at AnnotateChartController.$ctrl.filterPoints (http://localhost:8080/modules/advancedComponents/web/directives/annotateChart/annotateChart.js?v=1501676475:499:45)
at AnnotateChartController.$ctrl.$onChanges (http://localhost:8080/modules/advancedComponents/web/directives/annotateChart/annotateChart.js?v=1501676475:491:23)
at Array.h (http://localhost:8080/modules/mangoUI/web/vendor/angular/angular.js?v=1501676475:85:251)
at http://localhost:8080/modules/mangoUI/web/vendor/angular/angular.js?v=1501676475:59:144
at m.$eval (http://localhost:8080/modules/mangoUI/web/vendor/angular/angular.js?v=1501676475:148:347)
at m.$apply (http://localhost:8080/modules/mangoUI/web/vendor/angular/angular.js?v=1501676475:149:52)
at Array.P (http://localhost:8080/modules/mangoUI/web/vendor/angular/angular.js?v=1501676475:59:80)
at m.$digest (http://localhost:8080/modules/mangoUI/web/vendor/angular/angular.js?v=1501676475:147:83)
at m.$apply (http://localhost:8080/modules/mangoUI/web/vendor/angular/angular.js?v=1501676475:149:113)
at http://localhost:8080/modules/mangoUI/web/vendor/angular/angular.js?v=1501676475:162:3
All my modules were just updated. I can still plot the chart if I get each of the points using point-xid from watchlist and plot with <ma-serial-chart>
. My watch list is a static watch list with a list of points and is as follow:
[
{
"enabled":true,
"templateXid":"Power",
"loggingProperties":{
"tolerance":0,
"discardExtremeValues":false,
"discardLowLimit":-1.7976931348623157e+308,
"discardHighLimit":1.7976931348623157e+308,
"loggingType":"INTERVAL",
"intervalLoggingType":"AVERAGE",
"intervalLoggingPeriod":{
"periods":3,
"type":"SECONDS"
},
"overrideIntervalLoggingSamples":false,
"intervalLoggingSampleWindowSize":0,
"cacheSize":1
},
"textRenderer":{
"useUnitAsSuffix":true,
"unit":"kW",
"renderedUnit":"kW",
"format":"0.00",
"suffix":"",
"type":"textRendererAnalog"
},
"chartRenderer":{
"timePeriod":{
"periods":1,
"type":"DAYS"
},
"type":"chartRendererImage"
},
"modelType":"DATA_POINT",
"validationMessages":[
],
"id":212,
"dataSourceId":82,
"setPermission":"superadmin",
"chartColour":"",
"rollup":"NONE",
"plotType":"SPLINE",
"purgeOverride":false,
"purgePeriod":{
"periods":1,
"type":"YEARS"
},
"pointLocator":{
"offset":0,
"values":[
],
"max":120,
"min":0.1,
"period":0,
"attractionPointXid":"internal_mango_num_active_user_sessions",
"maxChange":0.2,
"change":0,
"amplitude":0,
"volatility":0,
"startValue":"101",
"roll":false,
"modelType":"PL.VIRTUAL",
"dataType":"NUMERIC",
"changeType":"BROWNIAN",
"settable":false,
"relinquishable":false
},
"readPermission":"user",
"pointFolderId":2,
"unit":"kW",
"dataSourceXid":"DS_Chiller1_VDS",
"renderedUnit":"kW",
"integralUnit":"kW·s",
"deviceName":"Chiller1",
"useIntegralUnit":false,
"useRenderedUnit":false,
"dataSourceName":"Chiller1_VDS",
"name":"ActivePower",
"xid":"DP_Chiller1_ActivePower"
},
{
"enabled":true,
"templateXid":"Power",
"loggingProperties":{
"tolerance":0,
"discardExtremeValues":false,
"discardLowLimit":-1.7976931348623157e+308,
"discardHighLimit":1.7976931348623157e+308,
"loggingType":"INTERVAL",
"intervalLoggingType":"AVERAGE",
"intervalLoggingPeriod":{
"periods":3,
"type":"SECONDS"
},
"overrideIntervalLoggingSamples":false,
"intervalLoggingSampleWindowSize":0,
"cacheSize":1
},
"textRenderer":{
"useUnitAsSuffix":true,
"unit":"kW",
"renderedUnit":"kW",
"format":"0.00",
"suffix":"",
"type":"textRendererAnalog"
},
"chartRenderer":{
"timePeriod":{
"periods":1,
"type":"DAYS"
},
"type":"chartRendererImage"
},
"modelType":"DATA_POINT",
"validationMessages":[
],
"id":213,
"dataSourceId":83,
"setPermission":"superadmin",
"chartColour":"",
"rollup":"NONE",
"plotType":"SPLINE",
"purgeOverride":false,
"purgePeriod":{
"periods":1,
"type":"YEARS"
},
"pointLocator":{
"offset":0,
"values":[
],
"max":120,
"min":0.1,
"period":0,
"attractionPointXid":"internal_mango_num_active_user_sessions",
"maxChange":0.2,
"change":0,
"amplitude":0,
"volatility":0,
"startValue":"101",
"roll":false,
"modelType":"PL.VIRTUAL",
"dataType":"NUMERIC",
"changeType":"BROWNIAN",
"settable":false,
"relinquishable":false
},
"readPermission":"user",
"pointFolderId":2,
"unit":"kW",
"dataSourceXid":"DS_Chiller2_VDS",
"renderedUnit":"kW",
"integralUnit":"kW·s",
"deviceName":"Chiller2",
"useIntegralUnit":false,
"useRenderedUnit":false,
"dataSourceName":"Chiller2_VDS",
"name":"ActivePower",
"xid":"DP_Chiller2_ActivePower"
},
{
"enabled":true,
"templateXid":"Power",
"loggingProperties":{
"tolerance":0,
"discardExtremeValues":false,
"discardLowLimit":-1.7976931348623157e+308,
"discardHighLimit":1.7976931348623157e+308,
"loggingType":"INTERVAL",
"intervalLoggingType":"AVERAGE",
"intervalLoggingPeriod":{
"periods":3,
"type":"SECONDS"
},
"overrideIntervalLoggingSamples":false,
"intervalLoggingSampleWindowSize":0,
"cacheSize":1
},
"textRenderer":{
"useUnitAsSuffix":true,
"unit":"kW",
"renderedUnit":"kW",
"format":"0.00",
"suffix":"",
"type":"textRendererAnalog"
},
"chartRenderer":{
"timePeriod":{
"periods":1,
"type":"DAYS"
},
"type":"chartRendererImage"
},
"modelType":"DATA_POINT",
"validationMessages":[
],
"id":214,
"dataSourceId":84,
"setPermission":"superadmin",
"chartColour":"",
"rollup":"NONE",
"plotType":"SPLINE",
"purgeOverride":false,
"purgePeriod":{
"periods":1,
"type":"YEARS"
},
"pointLocator":{
"offset":0,
"values":[
],
"max":120,
"min":0.1,
"period":0,
"attractionPointXid":"internal_mango_num_active_user_sessions",
"maxChange":0.2,
"change":0,
"amplitude":0,
"volatility":0,
"startValue":"88",
"roll":false,
"modelType":"PL.VIRTUAL",
"dataType":"NUMERIC",
"changeType":"BROWNIAN",
"settable":false,
"relinquishable":false
},
"readPermission":"user",
"pointFolderId":2,
"unit":"kW",
"dataSourceXid":"DS_Chiller3_VDS",
"renderedUnit":"kW",
"integralUnit":"kW·s",
"deviceName":"Chiller3",
"useIntegralUnit":false,
"useRenderedUnit":false,
"dataSourceName":"Chiller3_VDS",
"name":"ActivePower",
"xid":"DP_Chiller3_ActivePower"
},
{
"enabled":true,
"templateXid":"Power",
"loggingProperties":{
"tolerance":0,
"discardExtremeValues":false,
"discardLowLimit":-1.7976931348623157e+308,
"discardHighLimit":1.7976931348623157e+308,
"loggingType":"INTERVAL",
"intervalLoggingType":"AVERAGE",
"intervalLoggingPeriod":{
"periods":3,
"type":"SECONDS"
},
"overrideIntervalLoggingSamples":false,
"intervalLoggingSampleWindowSize":0,
"cacheSize":1
},
"textRenderer":{
"useUnitAsSuffix":true,
"unit":"kW",
"renderedUnit":"kW",
"format":"0.00",
"suffix":"",
"type":"textRendererAnalog"
},
"chartRenderer":{
"timePeriod":{
"periods":1,
"type":"DAYS"
},
"type":"chartRendererImage"
},
"modelType":"DATA_POINT",
"validationMessages":[
],
"id":215,
"dataSourceId":85,
"setPermission":"superadmin",
"chartColour":"",
"rollup":"NONE",
"plotType":"SPLINE",
"purgeOverride":false,
"purgePeriod":{
"periods":1,
"type":"YEARS"
},
"pointLocator":{
"offset":0,
"values":[
],
"max":120,
"min":0.1,
"period":0,
"attractionPointXid":"internal_mango_num_active_user_sessions",
"maxChange":0.2,
"change":0,
"amplitude":0,
"volatility":0,
"startValue":"22",
"roll":false,
"modelType":"PL.VIRTUAL",
"dataType":"NUMERIC",
"changeType":"BROWNIAN",
"settable":false,
"relinquishable":false
},
"readPermission":"user",
"pointFolderId":2,
"unit":"kW",
"dataSourceXid":"DS_Chiller4_VDS",
"renderedUnit":"kW",
"integralUnit":"kW·s",
"deviceName":"Chiller4",
"useIntegralUnit":false,
"useRenderedUnit":false,
"dataSourceName":"Chiller4_VDS",
"name":"ActivePower",
"xid":"DP_Chiller4_ActivePower"
},
{
"enabled":true,
"templateXid":"Power",
"loggingProperties":{
"tolerance":0,
"discardExtremeValues":false,
"discardLowLimit":-1.7976931348623157e+308,
"discardHighLimit":1.7976931348623157e+308,
"loggingType":"INTERVAL",
"intervalLoggingType":"AVERAGE",
"intervalLoggingPeriod":{
"periods":3,
"type":"SECONDS"
},
"overrideIntervalLoggingSamples":false,
"intervalLoggingSampleWindowSize":0,
"cacheSize":1
},
"textRenderer":{
"useUnitAsSuffix":true,
"unit":"kW",
"renderedUnit":"kW",
"format":"0.00",
"suffix":"",
"type":"textRendererAnalog"
},
"chartRenderer":{
"timePeriod":{
"periods":1,
"type":"DAYS"
},
"type":"chartRendererImage"
},
"modelType":"DATA_POINT",
"validationMessages":[
],
"id":216,
"dataSourceId":86,
"setPermission":"superadmin",
"chartColour":"",
"rollup":"NONE",
"plotType":"SPLINE",
"purgeOverride":false,
"purgePeriod":{
"periods":1,
"type":"YEARS"
},
"pointLocator":{
"offset":0,
"values":[
],
"max":120,
"min":0.1,
"period":0,
"attractionPointXid":"internal_mango_num_active_user_sessions",
"maxChange":0.2,
"change":0,
"amplitude":0,
"volatility":0,
"startValue":"55",
"roll":false,
"modelType":"PL.VIRTUAL",
"dataType":"NUMERIC",
"changeType":"BROWNIAN",
"settable":false,
"relinquishable":false
},
"readPermission":"user",
"pointFolderId":2,
"unit":"kW",
"dataSourceXid":"DS_Chiller5_VDS",
"renderedUnit":"kW",
"integralUnit":"kW·s",
"deviceName":"Chiller5",
"useIntegralUnit":false,
"useRenderedUnit":false,
"dataSourceName":"Chiller5_VDS",
"name":"ActivePower",
"xid":"DP_Chiller5_ActivePower"
}
]