I am using Google Vizualization API to create an organization chart.
The API itself does not seem to have a feature to save charts to JPEG, PDF etc.
What options do I have to save the chart to file? [this file will be sent as an email attachment]
There's a great guide to saving gviz charts as images here and a corresponding github gist. It works with SVG charts from the gviz series (note, no Flash).
You can't save the org chart as an image or PDF.
Unlike some of the other Google charts, the code for this creates divs on the page.
If you're not looking for an automated process, you could just take a screenshot of the chart, save it as an image & email it as an attachment.
http://code.google.com/apis/chart/interactive/docs/gallery/orgchart.html
Since you want it automated, the only solution I can think of is a third party control..and you'll probably have to pay for it.
Not many companies make org chart controls..even the popular companies like Telerik & Dundas have not ventured into it yet.
NWoods has a diagram control:
http://www.nwoods.com/components/dotnet/godiagram-overview.htm
There's another at orgchartcomponent.com
http://www.orgchartcomponent.com/doc.aspx
You'll probably have to check the documentation on how the charts are rendered.
If they are images, you can save it as a file.
Related
i want to add this type of progress graph in my site pages.
can any one plz help me
img link is here
You can use a JavaScript charting library to create a live, interactive version of the chart for your site. That way, you can update your progress instead of coding a new static chart each time you want to update it.
Here is an example of a time series line chart made using ZingChart's library. It is a bit different than the image you shared, because it has a Y axis. I'd recommend using one so your users know what is being measured across time.
I'm on the ZingChart team so please feel free to reach out if you have any questions.
I'm working on a Wordpress website for a friend and want to put a calendar on a page that when the mouse scrolls over a country for the country to light up and display some information as well as give the user some options to download a pdf about that country.
See http://us.fulbrightonline.org/countries/selectedregion/23 to get an idea of what I mean.
Just need to get a sense of what technologies and tools are needed to make something like this work. I know I will need to utilize an API but the hovering and attaching a pdf to each country is new to me.
You could try to use the Google Geochart API for your problem. It allows to create interactive maps and to capture click events. It also allows to color countries individually and to display tooltips. You can find more information and examples here: https://developers.google.com/chart/interactive/docs/gallery/geochart
I created a plugin for WordPress that uses this API. It integrates all the needed scripts and allows to build a map from the admin panel. You can find more information here:
http://meisterpixel.com/interactive-map-builder/
The charts module (for drupal 7) facilitates using the Google Charts API. It is great at taking simple data in a view and displaying a nice chart. I have a problem when trying to display more than one series of data. In my case, I would like to plot two lines on the same graph.
This charts module allows for an add on chart that selects a parent chart and then overlaps the data. Sounds perfect, but it's not (at least not yet for me). Here are the steps I completed:
I created my view and setup the tabular display of data with fields and filters I need (as recommended in this Bonus Tip).
I then added a chart page, and set a filter to one item that creates the first line graph.
I then added an add-on chart and change the filter to show the second line graph.
The problem I encountered is when I select the parent display. I receive an error like "This chart add-on must have a parent chart selected under the chart settings." This is what I have done. The only way to get rid of the error is to choose the master as the parent display, which I do not think is right. I have posted on drupal forums and IRC chat with no luck.
My question: has anyone gotten the charts module to work with more than one data series? If so: how?
I had similar issues with pie and column charts with this module. I had little luck with the GUI. However if you look at the charts.api.php Charts supplies several hooks to edit the charts. For instance in my case I copied the Column chart $chart_type in hook_charts_type_info(), to help with GUI development. I also modified the xaxis, fields and labels for $chart via hook_chart_alter(). Looking at the structure and data in the $chart helped me to see what I needed to do through code. As I do not know your exact needs I will not venture further, hope it helps.
I'm a new maintainer of the charts module, and just discovered this question. Thought I'd try to get you going a bit ... Please refer to the Steps to create charts using the views UI, which is part of the (new) community documentation I created recently for the charts module (work in progress, contributions are appreciated ...). I'd be interested in knowing if it helps to get this "issue" solved.
Here are some other (related) documentation pages for the charts module, which may help to get you going with the charts module:
Getting Started.
Create Charts using views.
Charts Howtos.
If you like the content of these (new) documentation pages, please help spreading the word about them. If you don't like them, please let us know (i.e. 'me' ...).
PS about the "... i have posted on drupal forums ... with no luck": please add a link to those posts, so that I can go check them out also.
This is the issue in module. To fix this problem I found a patch here at official drupal.org https://www.drupal.org/node/2233089#comment-9004547 . I have used this patch and fix the issue.
I'm working on an asp.net website that uses FusionCharts v3.1 code to render graphs as swf files.
I need to write code to allow users to re-create and email these graphs on a scheduled basis. Our product uses a service to take care of scheduling and email events so I need to modify the code to first render the data as a graph, save it as a PDF, then attach it to the email body. All this must be done in the service so no UI will be available.
Anyone know if IE can be loaded and display a shockwave object if there's no UI available?
This is Subhayu from the FusionCharts team. Maybe I can offer you some help. :)
Saving the charts as PDF files is as easy as cake. Check out the following link for detailed steps on how to export the charts as PDF and save it directly to the specified location.
Go to www.fusioncharts.com/docs. Using the nav bar on the left go to Exporting as Image/PDF > Server-side Exporting.
For your second query on how to just create the chart image without using any interface(without rendering it to the client side), we have a demo on how to do exactly this in .NET 2.0. Please provide your e-mail id on this post so that we can provide this demo to you. Or you can optionally send a request to support[at]fusioncharts.com.
Hope this helps. :)
I need to show a Line Chart on an ASP.NET page where each data point has a tooltip that shows its exact X and Y values. A chart for a particular dataset will probably only ever be requested once, so caching is disabled and the chart will be regenerated if it ever needs to be shown again.
Restrictions:
Needs to work in a web garden environment
Cannot use Session
Cannot use rich media, such as Flash or Silverlight.
The approaches I've seen used an image map for a generated chart image. Due to the restrictions, all of my charts so far have been generated in a handler in memory, streamed directly back to the user, and then disposed of. Now I need to add tool tips, which would requires both HTML and an image.
My current plan is to generate the chart once on the page to get the HTML, ignore the generated image, and rewrite the "src" of the image tag to point to a second page. The second page generates the same exact chart as the first, ignores the HTML markup, and streams the image back to the client. This all seems very kludgy.
Is there an better way to do this that doesn't involve generating the chart twice?
Available chart controls:
Dev Express 8.2
Syncfusion 6.2
?? - Recommend something
What about using the Google Chart API, and a .Net wrapper? See this SO discussion for more information.
I solved this by using the MS Chart Control. The disk handler can share images across servers in the web garden and automatically cleans up after itself.