rks

multi-series 2dline chart values overlapping

Recommended Posts

Having an issue where datavalues are overlapping each other in a multiseries 2dline/MSLine chart.

 

 

 

PHP chart configuration:

 

 

 

$chart_options = array(

           'chartType' => 'MSLine',

           'height' => '500',

           'width' => '700',

           'chartParams' => array(

               'caption' => 'Total Cost Trend ($)',

               'subCaption' => '('.date('m/Y',$start).' to '.date('m/Y',$end).')',

               'xAxisName' => $xAxisName,

               'numberPrefix' => '$',

               'numberSuffix' => '',

               'decimalPrecision' => '0',

               'numDivLines' => '5',

               'formatNumberScale' => '0',

           ),

           'exportEnabled' => true

       );

 

 

 

You can see the values we are putting in the graph in the screenshot.

 

 

 

We are calling addDataset like this: addDataset($site_identifier,'showValues=1;');

 

 

 

What can we do to avoid overlapping value labels?

 

 

 

Screenshot attached.

post-6741-128441576623_thumb.jpg

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Welcome to FusionCharts Forum. :)

I'm afraid, FusionCharts does not have a functionality to avoid overlapping of datavalues. It is present only in the pie charts.

You can, however, try using the rotateValues='1' attribute in the <chart> element.  This attribute lets you set whether the data labels would show up as rotated labels on the chart.

If this does not help please send us the generated XML so that we can find a possible alternative.

Awaiting your reply.

 

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

As the values of the dataplots that you are using has a very small difference in-between them, they are getting overlapped.

Please try using the values with comparatively greater value-difference so that all datavalues get displayed properly.

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