70054

Highcharts/Highstock supported in Google Sites?

Question:

Is it possible to embed Highcharts scripts in Google sites?

I've tried inserting an HTML box and also throwing everything in an HTML file and calling it via a Google Apps script. So far, both methods just give me all the text from the graph (title, axis labels, etc.), but no graph. I know embedding JS in a Google site is kind of tricky, but can this be done?

Answer1:

No. SVG (which Highcharts uses) is not supported within Caja (which an HTML Box and Apps Script use to sanitize and ensure safe code).

Answer2:

Yes, as of Jan 2016 (at least), I can easily use a <em>highcharts</em> library in GAS.

A dynamically updating graph using <em>highcharts</em> library within GAS environment can be found here: <a href="https://github.com/electronicsguy/MereScripts/tree/master/Google-Apps/Highcharts" rel="nofollow">GAS-highcharts</a>

A Working example is here: <a href="http://bit.ly/1SMJ4st" rel="nofollow">working-highcharts-GAS</a>

It is based on this JSFiddle: jsfiddle (dot) net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/stock/demo/dynamic-update/

Recommend

  • Cut off UITableViewController when embedded into a Container in a UIViewController
  • git pull add, commit and push in java [closed]
  • How to display rendered html content in text widget of tkinter in python 3.4.x
  • Why would you want to use composition in golang?
  • How to increase the python speed over loops?
  • K Shortest Path Python Not Working
  • Rely on Facebook user id as a permanent user identifier
  • Keep same scale in different graphs ggplot2
  • JFreechart X and Y axis scaling
  • Neo4j: Legacy Indexes and auto index vs new label bases schema indexes
  • How to add learning rate to summaries?
  • PyQt4 application on Windows is crashing on exit
  • Double dispatch in Java example
  • Activation Function choice for Neural network
  • NHibernate manually control fetching
  • During installation of Django, why do I keep getting ImportError: No module named django?
  • pillow imaging ImportError
  • Breaking out column by groups in Pandas
  • Ajax calls do not work in IE unless you fiddle with security settings
  • Keep this build forever option - Jenkins
  • Yii2: Config params vs. const/define
  • How to install a .deb file on a jailbroken iphone programmatically?
  • Ajax Loaded meta Tags
  • MongoDB in PHP using aggregate to group by _id is null not working
  • All Classes Conforming to Protocol Inherit Default Implementation
  • DomPDF {PAGE_NUM} not on first page
  • Display issues when we change from one jquery mobile page to another in firefox
  • Javascript simulate pressing enter in input box
  • req.body is undefined - nodejs
  • Modifying destination and filename of gulp-svg-sprite
  • How to model a transition system with SPIN
  • How to show dropdown in excel using jrxml (jasper api)?
  • Importing jscolor library in angular 2
  • Websockets service method fails during R startup
  • To display the title for the current loaction in map in iphone
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • A cron job substitute?
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • KeystoneJS: Relationships in Admin UI not updating
  • trying to dynamically update Highchart column chart but series undefined