Can i embed anychart in my gMail - anychart

Am using Pie chart in AnyChart and is it possible to put the Pie chart in an email and send it across? The requirement is like i need to mail a report to my superiors and in the mail body, would it be possible to place the pie chart?

If you want to send chart in the email you need to save a chart as image:
http://docs.anychart.com/latest/Common_Settings/Exports
This can be done either by client-side script or generated on the server side and sent, take a look at Server Side Chart Rendering documents for more information:
http://docs.anychart.com/latest/Common_Settings/Server-side_Rendering

Related

How do we get price data from chart Trading View?

I'd like to get price data and date from the chart Trading View using React.js so that I can use the data in my application (e.g. Exchange (buy/sell)).
I found a chart called Lightweight TradingView and it works great.

Does the Google Street View API support retrieving a full 360 equi-rectangualr image?

The docs are not clear on this as they mention fov and viewport suggesting a portion of the entire spherical image.
Does the Google Street View API support retrieving the entire 360 degree equi-rectangular (lat/lon) image?
No, but you could download separate panorama tiles and pack them together of use a third party tool (ex: https://istreetview.com/) and get the entire 360 degree image.
Another option would be to code the above functionality by yourself by using Google StreetView Image API (https://developers.google.com/maps/documentation/streetview/intro). To be honest, I did not try this myself, but through the API you should be able to retrieve all parts of the image and then stitch it back into equirectangular panorama.
This might give you more info:
How to get the original panorama image by panoid in google street view?
EDIT: While searching a way to overcome the fact that Google StreetView app doesn;t work as marketed, I found another third party service able to retrieve photos https://gothru.co/
It is possible by making use of the FOV and heading options within the API.
Take particular note of the heading param.
https://maps.googleapis.com/maps/api/streetview?size=640x640&location=51.52551,-0.08853&fov=120&heading=0&key=YOUR_KEY
https://maps.googleapis.com/maps/api/streetview?size=640x640&location=51.52551,-0.08853&fov=120&heading=120&source=outdoor&key=YOUR_KEY
https://maps.googleapis.com/maps/api/streetview?size=640x640&location=51.52551,-0.08853&fov=120&heading=240&key=YOUR_KEY
By making these three separate API calls you will receive the 360 image sliced into three parts.
You can then use something like node blend to combine them and voila you have a 360 panoramic image!

how can i get a picture from a webcam and upload it to salesforce?

I am using mediacapture to get the image from a webcam, but i dont know how to upload the picture to salesforce controllers. I can get the picture in any format: jpg,png,gif.
What is the next step?

jfreechart at client side

I have implemented gantt chart using jfreechart. I want to know how can I get this chart accessed from client side. Also I do not want just image of the chart, I also want the zooming functionality alongside it. How to achieve this? Please help.
Can you please elaborate more?
While minimally interactive charts are possible in a servlet context, a fully interactive desktop application may be made available from the server via Java Web Start. Among the JFreeChart samples, the JWS demo best illustrates the potential.
I think you must catch client event and handle it from server side, and of course reload the image with the changes.

Highcharts JS: Download all charts of current site with one click

We use Highcharts JS in our Webapp. We also use "highcharts exporting" so that our customers can download a diagram or piechart with just one click.
Now I would like to add the functionality that you can download all diagramms which are display by highcharts with just one click. So that our customer does not have to download each chart individually. is there such a functionality in highcharts already?
I can not find an easy way to do this.
The highcharts exporting module is submitting a POST request to the highcharts server (passing in the SVG of the chart) to generate the PDF or PNG.
I tried calling chart.exportChart() in succession but this will not work since the first calls changes document focus and the subsequent calls will not fire. So I think you have two options:
Do it server side. Have your javascript return the SVG (chart.getSVG()) of all the charts and write a server side script that generates the POST requests, zipping up the resulting files and returns them client side.
Stay client side. Get the SVG of the chart objects and manipulate it to embed multiple charts in one SVG document. Then make the request to the highcharts server. This way you could get one PDF document containing multiple charts.
This is how I would do it:
Set up your own export server with the hekp of PhantomJS. (Here's a shortcut for this http://www.highcharts.com/articles/2-news/52-serverside-generated-charts)
Send each chart data through AJAX to the PhantomJS export service.
Combine your exported PNG's to one image with server side script (php or py) or with the help of PhantomJS by rendering all in one page, rasterize and export as one and send back its path via AJAX to the front end.
Receive the image and let users download it :) .
The first two steps are explained i ndetails in a recent tutorial video I created for Packt here: https://www.packtpub.com/web-development/learning-highcharts-video
I hope it helps.

Resources