yonid

Missing Labels On Large Dataset

Recommended Posts

Hi ,

 

I'm using Column2D Fusion chart SWF in order to render my JSON data.

When json dataset is too big some of the chart x-axies labels are missing (but the column data is displayed as expected).

Can you please guide me how to display the labels?

Thanks,

Yoni

 

 

 

Chart artifacts:

1) Javascript chart embedding

 

 

chartTypeMap: {

'col2d': 'Column2D.swf'

},

 

 

initChart: function() {

this.$('#report-chart').insertFusionCharts({

swfUrl: '/merchants/static/charts/' + this.chartTypeMap['col2d'],

dataSource: this.model.toJSON(),

dataFormat: 'JSON',

width: '100%',

height: '100%',

id: _.uniqueId('chart_'),

detectFlashVersion: 1/*,

debugMode: true*/

});

this.chartInitialized = true;

},

2) JSON data attached.

3) Screenshot attached.

post-28610-0-83796400-1345120505_thumb.jpg

chart json.txt

Share this post


Link to post
Share on other sites
Guest Rishi Choudhari

Try adding "labelStep": "1" to the chart attributes.

 

Read more about labelStep in the docs - http://docs.fusioncharts.com/charts/contents/?ChartSS/Column2D.html#Anchor1

 

Hi ,

 

I'm using Column2D Fusion chart SWF in order to render my JSON data.

When json dataset is too big some of the chart x-axies labels are missing (but the column data is displayed as expected).

Can you please guide me how to display the labels?

Thanks,

Yoni

 

 

 

Chart artifacts:

1) Javascript chart embedding

 

 

chartTypeMap: {

'col2d': 'Column2D.swf'

},

 

 

initChart: function() {

this.$('#report-chart').insertFusionCharts({

swfUrl: '/merchants/static/charts/' + this.chartTypeMap['col2d'],

dataSource: this.model.toJSON(),

dataFormat: 'JSON',

width: '100%',

height: '100%',

id: _.uniqueId('chart_'),

detectFlashVersion: 1/*,

debugMode: true*/

});

this.chartInitialized = true;

},

2) JSON data attached.

3) Screenshot attached.

 

 

 

Share this post


Link to post
Share on other sites
Guest Rishi Choudhari

However, alternate labels will still be skipped, given that the width of the chart is too less for all the labels to be displayed without overlap.

 

Try experimenting with various widths, and see the one that works best for your situation.

 

Also, FusionCharts XT automatically rotates the labels to a vertical when available width doesn't allow horizontal text. Thus, in this case, it would make sense if you always have "labelDisplay": "rotate" in the chart attributes.

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Like Rishi has mentioned you have to try experimenting with various widths, and see the one that works best for your situation.

 

I tried with 1100 as width and I was able to see all the data labels.

 

Please find attached screen shot of the chart rendered.

 

Hope this helps!

post-23884-0-26728300-1345710188_thumb.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now