Sign in to follow this  
amolchaudhari69@gmail.com

MsLine chart - For Long Data All Labels are not displaying on X-Axis

Recommended Posts

Hello Team,

 

I am using Java script  driven MsLine chart in which I am showing 1 years data (date wise), and setting showLabel=1 to the 1st date of every month. (dont want the zoom option so not going for zoom chart)

 

so when there is a big data the graph is not plotting all data on graph.

 

 

- Ex suppose I have 3 months of data (90 values on X-axis) then show label is not showing the dates for which showLabel is "1"

 

  So I removed  showLabel option and tried . then graph is showing only the alternate Date labels instead of showing All the Dates in X-axis.

 

  I am not getting that why it is happening .

 

  I am doing anything wrong with MsLine Chart ?

 

  Any help is appreciated.

 

  Attaching the XML which has 3 months Dates data but still shows only alternate Dates on X-Axis

 

 

Thanks,

 Amol.

MSL.xml

Share this post


Link to post
Share on other sites

Hi Amol,

 

The reason behind this is due to advanced label management applied to the X axis label.

 

Advanced X axis label management has been implemented to achieve the following:

 

  • All the X axis labels should get centrally aligned to the respective data-plots (columns, points on line charts etc.)
  • X axis labels should not overlap each other
  • X axis labels should not overlap with other chart objects such as legends or X axis name
  • Long labels should not go outside the chart
  • Optimized truncation of longer labels and putting ellipses at the end

If you would like to show the first date of every month, try setting "showLabel" as 1 and rest of the category element "showLabel" as 0. Prior to this, opt not to apply for the advanced label management feature.

 
Ref.Code:
<chart ...labeldisplay='NONE' showLabels='0' >

Hope this helps.

Share this post


Link to post
Share on other sites

Thanks A Lot  Swarnam,

 

Its working absolutely fine ...

 

but due to lots of data plots graphs is looking very nested for 365 days of Data...

 

So I used ZoomLine chart for it   with <chart ...labeldisplay='NONE' showLabels='0' >  configurations ...

 

:( unfortunately its not showing the  first date of every month, when setting "showLabel" as 1  for them remaining are set as 0

 

Could you please assist me to resolve this issue 

 

Thanks.

Amol.

Share this post


Link to post
Share on other sites

Hi,

 

Zoom Line chart do not apply advanced label management and hence you will not be able to achieve similar effect on a Zoom Line chart.

 

Along with Zoom line chart, Bar, Pie, Doughnut, Marimekko, and Multi-series Combination 3D charts also do not support advanced label management.

 

Hope this clarifies.

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
Sign in to follow this