We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

X-Axis Point Markers not appearing on strings - Bug

Thread ID:

Created:

Updated:

Platform:

Replies:

112444 Sep 24,2013 01:55 AM UTC Oct 3,2013 05:35 AM UTC JavaScript 4
loading
Tags: ejChart
Pradeep
Asked On September 24, 2013 01:55 AM UTC

It seems like the markers on the x-axis ( or the vertical lines )
that specify each point, only appear if the x-axis labels are integers.
They don't seem to appear on string labels.

Check these 2 examples
https://www.dropbox.com/s/gwtfsnhfuz2mnft/bug_1_1_x_axis_numbers.jpg
https://www.dropbox.com/s/5wgxx2y8d5dy7ic/bug_1_2_x_axis_week.jpg


In the 2nd example, the marker appears in between the weeks, but
not on them. This is fine here, but in some cases, I use really big names,
and it is not comfortable to not know where the point actually lies.
Can you tell me a workaround for this?

Pradeep
Replied On September 24, 2013 02:20 AM UTC

Without this,the major grid lines don't appear on the actual points,
but only in between the points.
https://www.dropbox.com/s/4od7kb86orvh54g/bug_1_3_major_grid_lines.jpg

primaryXAxis:

{
   title: { text: groupValue.toUpperCase(), font: { fontFamily: 'Oswald', size: '17px' }},
   majorGridLines: { visible: true, color: "rgb(37,37,37)" }
},


Gowrimathi S [Syncfusion]
Replied On September 24, 2013 11:27 AM UTC

Hi Pradeep

Thanks for using Syncfusion product.

Please find the response for the query.

By default, the chart render the ticks and gridlines between the points for string value type axis. So, we suggest  you to use “labelPlacement” property of axis to achieve this behavior as follow

 [JS]

primaryXAxis:{

                     //default value is labelPlacement: “betweenTicks”

                    labelPlacement: 'onTicks',

                            },

Based on the query we have created a simple sample and find the sample from the attachment.

Regards

Gowrimathi S



label_a7285c78.zip

Pradeep
Replied On September 25, 2013 01:22 AM UTC

thanks, that worked :)

Gowrimathi S [Syncfusion]
Replied On October 3, 2013 05:35 AM UTC

Thanks for the update, please let me know if you have any further assistance

Ragards
Gowrimathi S

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;