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. Image for the cookie policy date

X-Axis Point Markers not appearing on strings - Bug

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?

4 Replies

PR Pradeep 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)" }
},



GS Gowrimathi S Syncfusion Team 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


PR Pradeep September 25, 2013 01:22 AM UTC

thanks, that worked :)


GS Gowrimathi S Syncfusion Team October 3, 2013 05:35 AM UTC

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

Ragards
Gowrimathi S

Loader.
Up arrow icon