is there a node.js package to embed Google Analytics charts into a web page - node.js

I am building a Node.js Analytics dashboard that includes internally generated data, and would like to add Charts from our Google Analytics.
1/ What is the right Google Analytics API to do so
2/ Is there a node.js package to embed the chart itself (rather than retrieving the data from GA and then having to build the chart myself)?

While not specifically Node.js, this is now possible with client-side JavaScript and Google's Embed API. That page also has well documented tutorials for building a basic dashboard, interactive charts and more.

You'll want to use the Core Reporting API to pull data, and you could try Google Chart Tools for creating your graphs.

Check out EmbeddedAnalytics.
While not a node.js solution, we are a 3rd party solution (using the Core Reporting) designed specifically so that you can avoid the heavy lifting of "retrieving the data from GA and then having to build the chart myself" as you have said yourself.
The process is very simple.
Grant us authorization to access your GA Data via the API.
Design your chart (all kinds of formatting are available).
Embed an <iframe> tag where the chart is to display.

Related

Is it possible to use Sonar Web reporting tool stand alone?

SonarQube is a tool use for code quality inspection, it is based on plugins. Sonar has built-in web reporting tool which shows analysis results on web page via different charts and UI controls.
My understanding is that: "Sonar provides different plugins for it's different functionalities, for example sonar-php is a plugin that can be used for analyzing php code, once the code is analyzed it represent the results on web page by mentioning different stats and graphs/charts."
If the above understanding is correct, I assumed Sonar use some kind of web reporting plugin to show all cool graphs and controls to display analysis results that is independent of data source and only responsible of presenting the provided data.
Now, my question is , Suppose I do have some data source , Is it possible to customize and use only that web reporting tool of Sonar to display results on web page ? or it's not possible and I have wrong assumption?
SonarQube is a code quality management tool. There is no specific web reporting tool to display whatever data you want.
If you want to analyze code, you can create a plugin to inject issues on specific part of the code for example. You may be interested by the documentation « Developing a Plugin »

Why Rest Api in Sharepoint

What is the main reason that we go for Rest Api in SharePoint 2013. Already we have Client Object Model for implementing application. Anybody can please guide me.
The Client Side Object Model is built upon the REST API so that is one reason for it to exist. For good JavaScript developers they may like the simplicity of the REST API. For people trying to keep their page size to a minimum, they may appreciate forgoing the size of the CSOM and its dependencies. Lastly, in mash up scenarios with other tools, having an easy way to address content via REST urls makes for better interoperability with other tools instead of relying on a product specific API (i.e. the CSOM).

How to create and display a custom base map with ESRI Leaflet?

The educational web app I'm working on makes use of ESRI base maps displayed with Leaflet. (See CODAP and click the Map tool.) One of our partners would like to be able to use a base map that displays biomes as, for example, displayed here.
ESRI supplies a bunch of useful base maps. But how do I create my own? And can I start with an image like the one linked to above?
typically people use either ArcMap or ArcGIS Pro to publish their own content as services hosted either on ArcGIS Online or their own installation of ArcGIS Server, but its also possible to upload shapefiles, csvs and other files into ArcGIS Online directly using the website.
https://doc.arcgis.com/en/arcgis-online/share-maps/publish-features.htm
http://doc.arcgis.com/en/arcgis-online/share-maps/use-hosted-layers.htm
anyone can get a perpetual free account for R&D and non-commercial service hosting by signing up on our Developers website.
https://developers.arcgis.com

There are BI / OLAP tools for MEAN Stack platform?

Can anyone indicate me to a framework of BI / OLAP or at least a Chart Engine, preferably open source, which properly integrate with MEAN.JS or MEAN.IO platform in SPA - Single Page Application architecture?
I know the keen.io. It is free in low transactional volume, but it is not open-source.
The Pentaho is a great BI tool, it's open-source, has RESTful Services and supports MongoDB, but your dashboard still employs Java on the server side and is one generation behind frameworks like Node.js and Angular.JS and they are only migrating now for jQuery and Bootstrap.
Thank you in advance for any contribution.
Discovery 1
There is a amazing API, similar to jQuery in objective of manipulate DOM for you to compose graphic charts, named D3.JS - Data-Driven Documents d3js.org.
Discovery 2
There is a chart engine named NVD3 nvd3.org, built on D3.JS, that allow you apply re-usable chart components in your Javascript applications.
Discovery 3
There is a Angular.JS module named AngularJS-NVD3-directives http://cmaurer.github.io/angularjs-nvd3-directives/, that integrate the chart components of NVD3 into directives of Angular.JS, allowing use it natively in your Angular.JS applications.
The Open Source Solution for MEAN Stack
You can integrate AngularJS-NVD3-directives components with Pentaho RESTful services via Mongoose accessing your MongoDB data to build dashboards and scoreboards control panels for your applications.
You still need to write code to integrate each of the components of a control panel as grid layout, themes, field projection and visibility, filter, sort, pivot tables and charts.
Today, the development process of control panels isn't straightforward, but you already have an open source solution good enough to design impressive applications.
I've never used them and may be they're not what you're looking for, but you should definitively take a look to this two projects: d3js and raphaeljs
Hope this helps you!

What are the pros and cons of developing a SharePoint component versus a standalone app?

A client wants us to develop a Picture Library system for them. The requirements are pretty typical - need to add pictures, tag them with metadata, store different sized versions and so on.
The client is keen on it being developed as a component which plugs into their existing SharePoint system. However, my feeling is that we would be better served building a standalone app - that way we don't have to shoehorn it into a SharePoint page and muck about integrating with SharePoint's APIs.
I am trying to look at this objectively and would welcome any arguments either way that people have.
Using an existing framework like Sharepoint imposes a lot of constraints on the design which makes the software architecture more uniform.
It does require some work on the part of the developer, because the developer does have to understand the API architecture and API's, etc.
However, developing a standalone application is the way that business's software architecture becomes a mix of 200 applications, using 20 different languages/architectures/platforms, half of which were developed by people no longer there - in short, a mess.
Sharepoint is documented, and will be supported probably long after you leave the company. Can you guarantee support for the application that you develop for as long as Microsoft will support Sharepoint?
You should do a cost/benefit analysis of integrating with SharePoint. You have listed some cons for integrating with SharePoint. Here are some pros.
Widely adopted platform.
Existing functionality to store/retreive/update images to data store.
Existing functionality to tag images.
Existing functionality to group several images together and treat as one virtual document (if using SharePoint 2010).
Keep in mind that you can integrate any custom ASP.NET page/application in Sharepoint so you can approach development like a standalone app. Your client wishes might include synchronization with Sharepoint's own picture library functionality and in that case you'll have to work with it's API.
It seems with SharePoint you are already done because it can more or less do what you describe already. What requirements do you have that cannot be met by OOB SharePoint?
I've used picture libraries for something similar before. While they have their quirks you do get a lot 'for free' like a UI, bulk uploading, metadata and 2 alternate sizes rendered.. My biggest gripe is they don't support the datagrid view so I cannot edit list metadata en masse like you can with other list types.

Resources