Home Forums Report Bugs x labels span outside of the chart

x labels span outside of the chart

Viewing 2 posts - 1 through 2 (of 2 total)
  • #20783

    Example

    Wrapping them is not an option.
    I had to remove the bottom label on the axisY, because it was too close to the left label on axisX.
    Right label gets cut off.

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

    Do you at least know of any hacks or workarounds that can be used to move the labels to be right underneath the chart?

    Also as aside question:
    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.

    #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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.