Home forums Using CanvasJS Irrelevant Data on X-Axis

This topic contains 4 replies, has 2 voices, and was last updated by  sufyan.cs10 1 month, 3 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22047

    sufyan.cs10
    Member

    Hi,
    I want to discuss the extra or irrelevant data that i am facing on x-axis.
    I have created a fiddle for this issue where i can see the extra years from 2006-2009. When there is no data on these years then these years should not come in the view. I have tried to remove the interval on axisX but still these years come. I have taken your example for this issue. Please have a look into it.

    Thanks.

    http://jsfiddle.net/jvm3bf2d/3/

    #22054

    Vishwas R
    Keymaster

    @sufyan-cs10,

    You can use Axis / Scale Breaks to shrink and remove the unnecessary regions.

    Please take a look at updated JSFiddle.


    Vishwas R
    Team CanvasJS

    #22066

    sufyan.cs10
    Member

    Why is there a break between 2005-2010? Can we remove that to show it as a plain record?

    #22067

    Vishwas R
    Keymaster

    @sufyan-cs10,

    Scale Breaks are used to shrink the axis-range in order to remove unnecessary regions.

    You can minimize the space occupied by the break using spacing and remove the scale-break line by setting lineThickness to 0. Please take a look at this updated jsfiddle.


    Vishwas R
    Team CanvasJS

    #22068

    sufyan.cs10
    Member

    Great (Y)
    Problem solved.

    Thanks @vishwas R.

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

You must be logged in to reply to this topic.