Archie144

How To Display Last Value Used For Chart On X Axis

Recommended Posts

When I used labelStep='10' attribute chart shows labels on interval of 10 on x axis but because of this many time my last data point also get hide.

 

I want to show labels on every 10th interval but also want to show my last data point even that is not multiple of 10.

 

How to do this?

eq: if dates from 1st to 31st are on x axis and I've used lavelStep=10 then chart does not show my 31st day which is last day but I want to show that.

 

Edited by Archie144

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Please try the same by using <labelStep='2'> inside the <chart> element.

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites

I've used labelStep= 10 because there are around 70 to 91 data points on x axis and these points will not be fixed always. That is the reason I don't know in advance which labelStep element will be correct to use. But to make is spacious and easier to understand I've used labelStep=10 but because of this my last data point gets hidden many time which I want to avoid by adding some attribute like

 

<Chart labelStep=10 includeLastDataPoint="Yes".....>

 

But I'm not getting any such element which will do job of includeLastDataPoint="Yes".

 

-Archana-

 

 

Hi,

 

Please try the same by using <labelStep='2'> inside the <chart> element.

 

Hope this helps.smile.gif

 

 

 

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thank you very much for your valuable feedback.

 

Please try the same by setting <showLabels='1'> inside the last <set> element in order to display the label for the last day.

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites

Thank you very much for your feedback.

But , It's not working even with this.

I've attached my xml n screen shots of how it looks like and How I want to.

my xml: lineChartArc.xml

 

Current screen shot: post-15998-064424700 1305011276_thumb.jpg

 

I want like this : post-15998-079696300 1305011260_thumb.jpg

 

Hi,

 

Thank you very much for your valuable feedback.

 

Please try the same by setting <showLabels='1'> inside the last <set> element in order to display the label for the last day.

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

Please note that you can not display non-uniform labels using <labelStep> attribute.

 

You would need to set blank values (ex:' ') for those labels which you do not want to show.

 

Hope this helps.smile.gif

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