Sagar H Ganatra
Sagar H Ganatra

Reputation: 31

How to remove date fields from amcharts whose valuefield is not present

Take a look at this example chart - http://live.amcharts.com/1ZWY1/edit/

Some of the values for the field are null and don't want to display them. Is there anyway I can get this working in AmCharts.

Upvotes: 1

Views: 1772

Answers (2)

Raj
Raj

Reputation: 150

if you don't want to show records which don't have value,remove those data from dataProvider and

var categoryAxesSettings = new AmCharts.CategoryAxesSettings(); categoryAxesSettings.equalSpacing = true;

or replace null values with 0 , it shows 0 in balloon when hover to that particular date

Upvotes: 1

zeroin
zeroin

Reputation: 6025

You should remove those data items from your data and also set equalSpacing:true for your CategoryAxis.

Upvotes: 0

Related Questions