Home Forums Chart Support Image labels on X – axis

Image labels on X – axis

Viewing 7 posts - 1 through 7 (of 7 total)
  • #5563

    Hello,

    I’m wondering if there is possibility of adding images as labels on X-axis instead of text, for example:

    dataPoints: [
    { x: 10, y: 71, label: IMAGEURL },
    ]

    #5569

    As of now Images are not supported inside labels.

    #5571

    Thank you for your answer !

    #14589

    Hello,
    Thank you for this beautiful Api, i want to know if it’s possible now to add images to labes on X axis ? and thanks !

    • This reply was modified 7 years, 9 months ago by jamil bouyahi.
    #14608

    @jamil-bouyahi,

    Sorry, this feature is not available as of now.

    ___
    Suyash Singh
    Team CanvasJS

    #14611

    OK .
    Thank you for your reply.

    #14626

    @jamil-bouyahi,

    Positioning image in place of axis labels is not available as an inbuilt feature as of now. However, you can workaround by writing few lines of code using labelFormatter and convertValueToPixel. Please take a look at this JSFiddle for workaround solution to place an image on axis labels.

    Position Images over X-Axis Labels

    —-
    Sanjoy Debnath
    Team CanvasJS

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

You must be logged in to reply to this topic.