Highcharts installation

In this page we will describe how to install Highcharts library (see http://www.highcharts.com/ for details) into SpagoBI core and QbE engine.

First of all, you have to download Highcharts 3.0.7.

We suggest to proceed in this way:

You should obtain highcharts-3.0.7/build/dist/highcharts folder containing distribution files. We will refer to this folder as HIGHCHARTS_DIST_FOLDER.

SpagoBI

Then perform these steps on your SpagoBI Server installation:

  • enter SpagoBI Server deployments folder (if you are using Tomcat, this is TOMCAT_HOME/webapps);
  • create folder SpagoBI/js/lib/highcharts-3.0.7;
  • copy the content of HIGHCHARTS_DIST_FOLDER/js folder into SpagoBI/js/lib/highcharts-3.0.7;
  • delete or rename file highchart.jsp in folder SpagoBI/WEB-INF/jsp/engines/chart;
  • rename file highchart.jsp.ori into highchart.jsp in folder SpagoBI/WEB-INF/jsp/engines/chart.

SpagoBIQbeEngine

Download Highcharts 3.0.7 from the official web site (http://www.highcharts.com/).

Then perform these steps on your SpagoBI Server installation:

  • enter SpagoBI Server deployments folder (if you are using Tomcat, this is TOMCAT_HOME/webapps);
  • create folder SpagoBI/js/lib/highcharts-3.0.7;
  • copy the content of HIGHCHARTS_DIST_FOLDER/js folder into SpagoBI/js/lib/highcharts-3.0.7.
To configure the library you want to use in the worksheet for the chart rendering, you should change the file SpagoBI-Server-5.xxx/webapps/SpagoBIQbeEngine/js/spagobi/commons/Settings.js So open the file and act in the line 119, more or less, of this file.

If the value of this line is

,chartlib : 'ext3'
the worksheet engine will use the extJS library; If the value is
,chartlib : 'highcharts'
it will use the Highcharts JS library. If you change this file you don’t have to restart the server, but you should clean the cache of your browser and refresh the web page.

Tags:
Created by Angelo Bernabei on 2012/07/03 14:21
Last modified by Davide Zerbetto on 2016/03/22 10:35

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 2.7.33694 - Documentation