Home Forums Report Bugs x labels span outside of the chart Reply To: x labels span outside of the chart

#20785

@brian2304,

Why is there no way to define margins or offsets for these labels?
I tried adding spaces, html “<br />” elements etc, nothing works.

Sorry, adding break is not available as of now. However you can achieve the same by setting labelMaxWidth, after which label gets wrapped.

I want ticks to only be visible for these 2 labels. Is this possible?
I tried setting “intervalType: ‘day’” and “interval” to the difference in days between these 2 dates, but canvas-js creates ticks for completely different days.

Can you kindly create jsfiddle with sample data, so that we can understand your scenario better and help you out?


Vishwas R
Team CanvasJS