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

When using HTML Canvas for Charts, title alignment is ignored

It seems that several settings are ignored when using the HTML5 Canvas for displaying charts.  The alignment of the title seems to be always set to center, regardless of the setting for "textAlignment" in the properties object specified when creating the chart title. Also, the title alignment doesn't appear to take the labels into account in a bar chart when aligning the title, it only aligns to the chart picture, not the entire chart, which includes the labels (which in my case are much longer than the chart itself).

1 Reply

SK Sanjith Kesavan Syncfusion Team October 15, 2015 01:44 PM UTC

Hi David,

Query1: The alignment of the title seems to be always set to center, regardless of the setting for "textAlignment" in the properties object specified when creating the chart title.
We have analyzed this query and replicated the scenario in our sample. But we are not able to reproduce the reported issue. “textAlignment” is working fine in the our sample. We have prepared the sample with textalignment as “near”. Please find the below code example.

[JS]


Please find the below screenshot of the chart with the title text alignment as “near”.


Please find the sample from below location.
Sample Link: http://www.syncfusion.com/downloads/support/forum/120766/ze/JS1041133691

If you still face any concern, kindly revert back us by modifying the attached sample along with replication procedure. Or else please provide us the sample in which reported issue is reproducing. This will be helpful for us to find and fix the issue sooner.


Query2:  Also, the title alignment doesn't appear to take the labels into account in a bar chart when aligning the title, it only aligns to the chart picture, not the entire chart, which includes the labels.
We were able to reproduce the problem and have logged defect report regarding this.  A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates

Link: https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents


Please let us know if you have any concern.


Regards,

Sanjith K.


Loader.
Live Chat Icon For mobile
Up arrow icon