-
Re: AmChart CustomSymbol - TimeProvider - Navigation Link
Marcos Vainer LoeffAug 8, 2018 7:01 PM (in response to WENDE)
Hello Wende,
If I understood correctly, you are getting startDate and endDate properties of the chart.lastZoomed object from AmCharts and you are using then in the requestNewTime method, which is a method from PI Vision.
I see that the error comes from PI Vision (editor file) which expects the start property to have a replace() method which doesn't exist. Therefore, my guess is that the startDate from the amChart is not compatible with the input of the requestNewTime(). You will probably have to "transform" the object to something more suitable. This is how I would start troubleshooting this problem.
It is difficult to help you since I don't have the source code of this project.
-
Re: AmChart CustomSymbol - TimeProvider - Navigation Link
WENDE Aug 9, 2018 6:34 AM (in response to Marcos Vainer Loeff)Hello,
thanks for your reply.
Yes that's right, the startDate and endDate properties from AmCharts are used in the PI Vision method.However, it seems to work at the first place as the start and endtime of the display do update when i zoom in the chart. the error only occurs when i'm trying do move from the display to another using a navigation link.
Since i don't know well the requestNewTime method, it's difficult to find what transformation is needed...
You'll find the whole code of the project here :
http://www.rapidshare.com.cn/4iKmPF7
Thanks for your help
-
Re: AmChart CustomSymbol - TimeProvider - Navigation Link
Marcos Vainer LoeffAug 9, 2018 1:47 PM (in response to WENDE)
Could you please add the HTML and the amChart library? I want to test with the exact version. Are you using PI Vision 2017 R2?
-
Re: AmChart CustomSymbol - TimeProvider - Navigation Link
WENDE Aug 9, 2018 8:53 PM (in response to Marcos Vainer Loeff)Yes of course : http://www.rapidshare.com.cn/FV4AknZ
with that it should work.
Yes i'm using PI Vision 2017 R2
Thanks
-
Re: AmChart CustomSymbol - TimeProvider - Navigation Link
Marcos Vainer LoeffAug 14, 2018 11:51 AM (in response to WENDE)
Hey Wende,
I cannot download it. Sorry I was only able to work on this today. Could you upload again please?
-
Re: AmChart CustomSymbol - TimeProvider - Navigation Link
WENDE Aug 14, 2018 12:43 PM (in response to Marcos Vainer Loeff)-
Re: AmChart CustomSymbol - TimeProvider - Navigation Link
Marcos Vainer LoeffAug 14, 2018 5:26 PM (in response to WENDE)
Cannot reproduce the issue. When I create a symbol, I am receive the error:
angular.js:14700 ReferenceError: _ is not defined
at convertToChartDataFormat (sym-amcharts-linechart.js:91)
at symbolVis.dataUpdate (sym-amcharts-linechart.js:78)
at Scope.$digest (angular.js:18261)
at Scope.$apply (angular.js:18531)
at done (angular.js:12547)
at completeRequest (angular.js:12785)
at XMLHttpRequest.requestLoaded (angular.js:12702)
I've added the 3 files to the libraries folder.
-
Re: AmChart CustomSymbol - TimeProvider - Navigation Link
WENDE Aug 15, 2018 1:38 PM (in response to Marcos Vainer Loeff)-
Re: AmChart CustomSymbol - TimeProvider - Navigation Link
Marcos Vainer LoeffAug 21, 2018 2:43 PM (in response to WENDE)
Now I am receiving a different error. I have added both file to the ext\libraries folder. I think the problem is that it is loading underscore before loading moment. Have you faced this issue?
ReferenceError: moment is not defined
at sym-amcharts-linechart.js:95
at Function.m.map.m.collect (underscore-min.js:5)
at m.(/PIVision/anonymous function) [as map] (https://marc-web-sql.marc.net/PIVision/Scripts/app/editor/symbols/ext/libraries/underscore-min.js:5:15545)
at convertToChartDataFormat (sym-amcharts-linechart.js:92)
at symbolVis.dataUpdate (sym-amcharts-linechart.js:78)
at Scope.$digest (angular.js:18261)
at Scope.$apply (angular.js:18531)
at done (angular.js:12547)
at completeRequest (angular.js:12785)
at XMLHttpRequest.requestLoaded (angular.js:12702)
-
Re: AmChart CustomSymbol - TimeProvider - Navigation Link
Roger Palmen Aug 21, 2018 3:19 PM (in response to Marcos Vainer Loeff)Not a compatibility problem: I use amCharts, underscore and moment.js in my custom symbols, and don't have any issues. (i don't use amCharts extensions though).
-
Re: AmChart CustomSymbol - TimeProvider - Navigation Link
WENDE Aug 23, 2018 6:38 AM (in response to Marcos Vainer Loeff)Hello
no i didn't face this issue...
Actually the moment library is only used to convert date format from US to french.
Here's a new version of the code, without using the moment library. It should not affect the timeProvider behaviour.
Rapidshare - Premium file sharing services with self-destruction & auto encryption
-
-
-
-
-
-
-
-
-