Home Forums Chart Support Placement of datapoint texts

Placement of datapoint texts

Viewing 4 posts - 1 through 4 (of 4 total)
  • #39877

    I am making a chart to display temperature forecasts over 24 hours as a spline area chart

    In this chart I have a stripline, placed on the midnight date. With datapoints I place text strings on both sides around this line, which show the date for the day before and after midnight, and the time for sunrise and sunset. Their placement is based on a date, plus the length of the text.

    However, this is tedious and not very accurate. The text strings constantly move around. Is there a better way to do this?

    Kinda like this.

    temperature forecast

    #39987

    @grasssnake,

    Can you kindly create JSFiddle reproducing the issue you are facing & share it with us so that we can look into the chart-options being used, understand the scenario better and help you out?

    —-
    Manoj Mohan
    Team CanvasJS

    #39990

    We can curate it with code too.

    #40017

    @vinaysingh0399,

    Indexlabels gets positioned based on the value coordinate and seems to be working fine. Having a JSFiddle along with the chart options and the data that you are using will help us understand the actual scenario better and guide you with an appropriate solution.

    From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue or not able to understand the exact requirements.

    Having a JSFiddle helps us in figuring out the issue and many a times we can just edit your code on JSFiddle to fix the issue right-away.

    —-
    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.