Reload data in Amchart - ios

I'm using this library,
https://github.com/ChimpStudios/AmCharts
It works cool, but i didn't find how to reload existing chart. When i call multiple times:
self.mapView.chart = self.map
self.mapView.drawChart()
map disappear or it's color set to black. In original AmChart for JavaScript, object has method validateData, but this method i didn't find in IOS library.
If someone used this library, please help, because in github author not answer.

I'm unfamiliar with this specific library/wrapper, but looking in the repo, it does appear that both chart.validateData() and chart.validateNow() are supported.
Example usage in ChartView.m

Related

how to display a list of report-bots that are available to me

I used to use "iter_dialogs" to get a list of available chats. But this method has stopped working. Can you suggest an alternative? And is it possible to get a list of report-bots to write to them later? I will be very glad of any help.
iter_dialogs() doesn't work anymore, as it has been replaced by get_dialogs(). See Pyrogram's Release Notes for v2:
Iter_ methods have been removed:* This means there is now only one way of iterating through items by using the respective get_* methods which are all turned into generators. Some of the methods have been renamed as well:
iter_history becomes get_chat_history().
iter_chat_members becomes get_chat_members().
iter_dialogs becomes get_dialogs().
iter_profile_photos becomes get_chat_photos().
As for your second question about report bots, I have no idea what you're talking about there. You might want to edit your question to add more detail.

Google Slides API: replaceAllLinks?

In my implementation, I go through a loop to duplicate a slide and then update the text and images of each new slide using ReplaceAllText and ReplaceAllImages. I can do that in one batchUpdate. I wish I could do the same and "ReplaceAllLinks" but could not find anything to do that. Any ideas ?
You want to replace all links in a Google Slides using Slides API.
If my understanding is correct, how about this answer? Please think of this as just one of several possible answers.
Issue and workaround:
Unfortunately, in the current stage, there is no methods for directly achieving "ReplaceAllLinks". So it is required to use a workaround. In this answer, I would like to propose the following workaround.
Retrieve the object IDs you want to replace the link using the method of presentations.get.
Replace the links of the retrieved object IDs using updateTextStyle and updateShapeProperties of the method of presentations.batchUpdate.
In this case, 2 API calls are required.
References:
UpdateTextStyleRequest
UpdateShapePropertiesRequest
If I misunderstood your question and this was not the direction you want, I apologize.

Customized Reactive Component interact with SelectedFilters

It took me quite a long time trying to find a solution, still no solution.
Take the official example to illustrate:
https://opensource.appbase.io/reactive-manual/v3/advanced/reactivecomponent.html
I can add showFilter and filterLabel property to the parent ReactiveCompnent, however, after user picked the color, how to notify the SelectedFilters component about the value picked? how to get notified when user clear the color in the SelectedFilters?
You will need to use custom SelectedFilters with ReactiveComponent. We are constantly working on the improvement of docs. I will add the respective link which might help you understand the usage of ReactiveComponent.
For now, you can check this example. I have created tab-based filtering using ReactiveComponent with custom SelectedFilters.
Hope this helps!

IOS PDF Reader with search , annotation and bookmarks

I'm trying to do a PDF Reader which have the following features:
bookmarks
zooming
highlight //annotation or just changing the background of the rect
search
what I'm using is vfr/Reader :
https://github.com/vfr/Reader
it have the zooming function and bookmarks
and I want to make it like LazyPDf : https://github.com/lazyprogram/LazyPDFKit
which have annotation function
or make it like github.com/Ink/ThatPDF
which have less annotation functions than lazypdf
and add the search from
github.com/KurtCode/PDFKitten
the problem is that i have been working on it for like a month and I didn't make any progress and I don't know where to start or how to merge those applications together , even though all of them uses CGPDF.
please help me to find a way to make my app or let me know if there is a better free library ,and if i need to learn anything just drop a link in a comment.
Thank you !!
You can use below link for pdf reader.
you can easly use the book mark,zooming,saved pdf,email,print pdf
https://github.com/vfr/Reader
You can use iOS PDFKit:
This reponse will help you

Set the Visitor ID in Adobe Analytics through DTM

I'm trying to set the Visitor ID in Adobe Analytics through DTM.
Above the s_code I have:
var visitor = new Visitor("xxxx")
visitor.trackingServer = "xxx.xx.xx.omtrdc.net"
I've created a data element where the legacy code used to call the
Visitor.getInstance("xxxx");
and set the Visitor ID to %Visitor ID%
That's not working however, and my visitor ID is always just set to %Visitor ID% and obviously not reading any values. I'd really appreciate any input that someone can give me.
Thanks,
Mike
The Visitor ID pops s.visitorID and is in general related to visitor id, but is not the same as s.visitor which is what gets popped for the VisitorAPI integration. DTM does not currently have a built-in field for the s.visitor variable, so you will have to set it yourself within the config, either in the Library Management code editor (assuming you are opting to c/p the core lib and not the "Managed by Adobe" option) or else in the Custom Page Code section.
Since you are popping it in a data layer first, you can reference the data layer like this:
s.visitor = _satellite.getVar('Visitor ID');
NOTE: A separate potential issue you may have is with whether or not the Visitor object is available for your data element. Since data elements are the first thing to be evaluated by DTM, you will need to ensure that the VisitorAPI.js library is output before your top page DTM script include.
If this is a problem for you, or if you are wanting to host VisitorAPI.js within DTM, then you may need to adjust where you are popping that stuff. For example, place the VisitorAPI core code above the custom code as the first stuff within the data element, before:
var visitor = new Visitor("xxxx") visitor.trackingServer = "xxx.xx.xx.omtrdc.net
Or, don't use the data element at all. Instead, put the VisitorAPI code within the Adobe Analytics custom code or core lib section and pop all that stuff (aboove the s.visitor assignment). Or a number of other methods; point is, VisitorAPI stuff must be loaded before the data element can make use of it, same as it must be loaded before Adobe Analytics can make use of it.
So DTM is changing pretty fast and furious right now. They have a "Marketing Cloud Service ID" that works well. Before I used that, however, I did find a way to fix the code. Crayon Violent was right, as usual, that the problem was that the script wasn't available yet. I fixed this by putting the following code in between the VisitorAPI.js and the AppMeasurement stuff in the DTM managed library.
var aA = new AppMeasurement();
aA.visitorNamespace="companyname";
aA.visitor = Visitor.getInstance("companyname");
In addition, there were also some issues using my localhost for testing while trying to see if I had this correct or not. If you are having issues and think you have it correct, it may be worthwhile to elevate it to a different environment.

Resources