Home forums Using CanvasJS Force empty labels on unexistant data

This topic contains 1 reply, has 2 voices, and was last updated by  Sunil Urs 2 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5623

    aitecc
    Participant

    I’m creating some simple line graphs where X data aren’t linear (example: X: 1, 3, 6) .
    The points are correctly distributed and displayed in the graph X axis, but in the nonesistant positions it automatically compile the label (2, 4, 5 appears).

    There is a way to hide the X labels where there isn’t any related data?

    #5630

    Sunil Urs
    Keymaster

    Those labels are coordinates on the axis and are shown irrespective of whether a point exists or not. But in case you want to hide them, there is a workaround that I can suggest. But it works only if all x values are integers – or multiples of the set “interval”.

    Here is a JSFiddle http://jsfiddle.net/canvasjs/WH3Tt/


    Sunil Urs

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

You must be logged in to reply to this topic.