The charting engine which we are by default providing with Helical Insight Community Edition is D3 and C3 charts. Being a BI framework we allow you the flexibility to add any sort of javascripting charting engine.

In this article we will cover how you can customize the look and feel of these default charts to match your requirement.

In the template folder we are having separate VF files for every chart type. By default the VF files provided has basic configuration but user can open the VF files to modify or add configurations as per requirement. We will be showing how to add some configurations like rotating the axis, show/hide labels, change color etc.

You can refer to C3 charts link for more detailed understanding.

Example: We will see how to change the color of the Bar chart created using BarChart.efwvf file.

  1. Create the report (using the ‘Template folder’ link ).
  2. Run the report to see the generated report (like the one shown below):-
  3. BarChart

Example 1: Lets change the color of the bar to green (#00ff00). We need to add ‘color’ configuration in the ‘BarChart.efwvf’.

  1. Open the file ‘BarChart.efwvf’ inside the ‘Template Folder’ and look where we have generated the chart using the following code snippet.
  2. var chart = c3.generate({
        bindto: '#chart_1',
        data: {
            json:data,
            type : 'bar',
            keys:{
                x:'client',
                value:['cost']
            },
        },
        - - - - - - 
        - - - - - - 
    });   //C3.generate is closed
    

    In the above snippet, we need to add the ‘color’ key inside ‘data’ where we will specify the data ‘cost’ to have a particular color say green (#00ff00). See the snippet below:

    var chart = c3.generate({
        bindto: '#chart_1',
        data: {
            json:data,
            type : 'bar',
            keys:{
                x:'client',
                value:['cost']
            },
            colors: {
                cost: '#00ff00' // Give the data name ‘cost’ and the specify the color ‘#00ff00’
            },
        },
        - - - - - - 
        - - - - - - 
    });   //C3.generate is closed
  3. Save the ‘BarChart.efwvf ’file and now run the ’Sample EFW Report’ to see the color change.
  4. BarChart_Color

Example 2: Changing the position of legend.

  1. By default legend position is ‘bottom’. See the image below.
  2. bar_3

  3. In the ‘BarChart.efwvf’, see where we have defined ‘legend’ key.
  4. var chart = c3.generate({
    	bindto: '#chart_1',
    	data: {
    		json:data,
    		type : 'bar',
    		keys:{
    			x:'client',
    			value:['cost']
    		},						
    	},
    	legend: {
    		position : 'bottom', //Specify position for the legend
    		show: true       //To show/hide the legend
    	},
            - - - - - - - - - - - - - 
            - - - - - - - - - - - - - 
            - - - - - - - - - - - - - 
    });
  5. Now, we will be changing the configuration of the legend, see the following code snippet for the same.
  6. var chart = c3.generate({
    	bindto: '#chart_1',
    	data: {
    		json:data,
    		type : 'bar',
    		keys:{
    		        x:'client',
    			value:['cost']			
    		},
    		legend: {
    			position : 'right', //Position now changed to right.
    			show: true       //To show/hide the legend
    		},
                    - - - - - - - - - - - - - 
                    - - - - - - - - - - - - - 
                    - - - - - - - - - - - - - 
            }
    });
  7. Save the file and run the report to see the change.
  8. bar_4

    You can also hide the legend by giving ‘Show: false’ in the legend key as following:

    var chart = c3.generate({
    	bindto: '#chart_1',
    	data: {
    		json:data,
    		type : 'bar',
    		keys:{
    			x:'client',
    			value:['cost']
    		},	
    	},
    	legend: {
    		position : 'right', //Position now changed to right.
    		show: false    //Set to false to hide the legend
    	},
            - - - - - - - - - - - - - 
            - - - - - - - - - - - - - 
            - - - - - - - - - - - - - 
    });
    
  9. Save and run the report to see the legend being hide.
  10. barchart

Example 3: Rotation of X Axis ticks.

  1. See the axis configuration that we have done in the axis key inside c3.generate. By default the chart is rotated by giving ‘Rotated:true’. See the following snippet.
  2. var chart = c3.generate({
        - - - - - - - - -
        - - - - - - - - - 
        axis: {
            x:  {
                type: 'category',
                tick: {
                    rotate: 30
                }
            } ,
            rotated: true // By default it is rotated true
        },
        - - - - - - - - - - - - 
        - - - - - - - - - - - -
    });
    
  3. Change the configuration from ‘rotated:true’ to ‘rotated:false’ and the angle by which the tick is to be rotated from ‘30’ to ‘60’.
  4. var chart = c3.generate({
        - - - - - - - - -
        - - - - - - - - - 
        axis: {
            x:  {
                type: 'category',
                tick: {
                    rotate: 60// Give the angle by which the tick is to be rotated
                }
            },
            rotated: false// By default it is rotated true
        },
        - - - - - - - - - - - - 
        - - - - - - - - - - - -
    });
    
  5. Save the file and run the report.See the image below.
  6. chartBAR

In addition to the properties given in the ‘.EFWVF’, you can also add other properties which are supported by the charting library used to create the particular chart(in our case C3 charting library).
To incorporate other properties like adding label to the axis bar chart , refer the link C3 charts.

With reference to the link given above, we will be showing how we can add other properties(in this case axis labels) to the ‘.EFWVF’ file.

To add labels to the axis on bar chart, follow the below steps:-

  • Open the ‘BarChart.efwvf file inside the ‘Template folder’
  • Look where we have generated the chart object.
  • Inside the chart object,we have defined axis key.
  • There are 2 axis defined for x and y axis .
  • Add label inside the axis key for x axis

See the code snippet below for example

var chart = c3.generate({
- - - - - - 
- - - - - -
axis: {                                      // Giving axis configuration
	x: {                                 // Giving axis configuration for X-axis
	type: 'category',
	tick: {
		rotate: 60
	       },
label: {
		text: 'client',              // Give the text you want to appear as label
				position: 'outer-center'     // Give the position for the label
		                          // inner-right : default
					  // inner-center
					  // inner-left
					  // outer-right
					  // outer-center
				          // outer-left
	         }
	   } ,
	rotated: false
     },

Save the file and run the report to see the label on x axis (see the image below)

Label on axis  chart

Leave a Reply

Helical Insight’s self-service capabilities is one to reckon with. It allows you to simply drag and drop columns, add filters, apply aggregate functions if required, and create reports and dashboards on the fly. For advanced users, the self-service component has ability to add javascript, HTML, HTML5, CSS, CSS3 and AJAX. These customizations allow you to create dynamic reports and dashboards. You can also add new charts inside the self-service component, add new kind of aggregate functions and customize it using our APIs.
Helical Insight’s self-service capabilities is one to reckon with. It allows you to simply drag and drop columns, add filters, apply aggregate functions if required, and create reports and dashboards on the fly. For advanced users, the self-service component has ability to add javascript, HTML, HTML5, CSS, CSS3 and AJAX. These customizations allow you to create dynamic reports and dashboards. You can also add new charts inside the self-service component, add new kind of aggregate functions and customize it using our APIs.
Helical Insight, via simple browser based interface of Canned Reporting module, also allows to create pixel perfect printer friendly document kind of reports also like Invoice, P&L Statement, Balance sheet etc.
Helical Insight, via simple browser based interface of Canned Reporting module, also allows to create pixel perfect printer friendly document kind of reports also like Invoice, P&L Statement, Balance sheet etc.
If you have a product, built on any platform like Dot Net or Java or PHP or Ruby, you can easily embed Helical Insight within it using iFrames or webservices, for quick value add through instant visualization of data.
If you have a product, built on any platform like Dot Net or Java or PHP or Ruby, you can easily embed Helical Insight within it using iFrames or webservices, for quick value add through instant visualization of data.
Being a 100% browser-based BI tool, you can connect with your database and analyse across any location and device. There is no need to download or install heavy memory-consuming developer tools – All you need is a Browser application! We are battle-tested on most of the commonly used browsers.
Being a 100% browser-based BI tool, you can connect with your database and analyse across any location and device. There is no need to download or install heavy memory-consuming developer tools – All you need is a Browser application! We are battle-tested on most of the commonly used browsers.
We have organization level security where the Superadmin can create, delete and modify roles. Dashboards and reports can be added to that organization. This ensures multitenancy.
We have organization level security where the Superadmin can create, delete and modify roles. Dashboards and reports can be added to that organization. This ensures multitenancy.
We have organization level security where the Superadmin can create, delete and modify roles. Dashboards and reports can be added to that organization. This ensures multitenancy.
We have organization level security where the Superadmin can create, delete and modify roles. Dashboards and reports can be added to that organization. This ensures multitenancy.
A first-of-its-kind Open-Source BI framework, Helical Insight is completely API-driven. This allows you to add functionalities, including but not limited to adding a new exporting type, new datasource type, core functionality expansion, new charting in adhoc etc., at any place whenever you wish, using your own in-house developers.
A first-of-its-kind Open-Source BI framework, Helical Insight is completely API-driven. This allows you to add functionalities, including but not limited to adding a new exporting type, new datasource type, core functionality expansion, new charting in adhoc etc., at any place whenever you wish, using your own in-house developers.
It handles huge volumes of data effectively. Caching, Pagination, Load-Balancing and In-Memory not only provides you with amazing experience, but also and does not burden the database server more than required. Further effective use of computing power gives best performance and complex calculations even on the big data even with smaller machines for your personal use. Filtering, Sorting, Cube Analysis, Inter Panel Communication on the dashboards all at lightning speed. Thereby, making best open-source Business Intelligence solution in the market.
It handles huge volumes of data effectively. Caching, Pagination, Load-Balancing and In-Memory not only provides you with amazing experience, but also and does not burden the database server more than required. Further effective use of computing power gives best performance and complex calculations even on the big data even with smaller machines for your personal use. Filtering, Sorting, Cube Analysis, Inter Panel Communication on the dashboards all at lightning speed. Thereby, making best open-source Business Intelligence solution in the market.
With advance NLP algorithm, business users simply ask questions like, “show me sales of last quarter”, “average monthly sales of my products”. Let the application give the power to users without knowledge of query language or underlying data architecture
With advance NLP algorithm, business users simply ask questions like, “show me sales of last quarter”, “average monthly sales of my products”. Let the application give the power to users without knowledge of query language or underlying data architecture
Our application is compatible with almost all databases, be it RDBMS, or columnar database, or even flat files like spreadsheets or csv files. You can even connect to your own custom database via JDBC connection. Further, our database connection can be switched dynamically based on logged in users or its organization or other parameters. So, all your clients can use the same reports and dashboards without worrying about any data security breech.
Our application is compatible with almost all databases, be it RDBMS, or columnar database, or even flat files like spreadsheets or csv files. You can even connect to your own custom database via JDBC connection. Further, our database connection can be switched dynamically based on logged in users or its organization or other parameters. So, all your clients can use the same reports and dashboards without worrying about any data security breech.
Our application can be installed on an in-house server where you have full control of your data and its security. Or on cloud where it is accessible to larger audience without overheads and maintenance of the servers. One solution that works for all.
Our application can be installed on an in-house server where you have full control of your data and its security. Or on cloud where it is accessible to larger audience without overheads and maintenance of the servers. One solution that works for all.
Different companies have different business processes that the existing BI tools do not encompass. Helical Insight permits you to design your own workflows and specify what functional module of BI gets triggered
Different companies have different business processes that the existing BI tools do not encompass. Helical Insight permits you to design your own workflows and specify what functional module of BI gets triggered