Home forums Using CanvasJS Fix the width of chart

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  archange 3 weeks, 5 days ago.

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

    archange
    Member

    Hi,

    Is it possible to fix the width of chart part ?

    I’m using a line chart with 600 values and I try to set width only for the chart part with no result.

    What I try to have is 1px per point displayed.

    Any idea ?

    Thanks.

    Archange

    #17620

    Suyash Singh
    Moderator

    @archange,

    Are you looking for viewportMinimum & viewportMaximum? If this doesn’t suit your requirements, can you please brief us more about your requirements so that we can understand it better & help you out.

    __
    Suyash Singh
    Team CanvasJS

    #17629

    archange
    Member

    Hi and thanks for the response.

    I’m not looking for viewportminimum and maximum.

    What I try to do is to fix at 600px only the “graphic part”, the representation of my data, without the label of AXIS Y.

    With other words I try to have a “pitch=1” for the graphic part (600 points to display = 600 pixel on screen)

    I hope I’m clear and sorry for my poor English.

    Archange

    • This reply was modified 4 weeks, 1 day ago by  archange.
    #17641

    Suyash Singh
    Moderator

    Archange,

    Are you looking for something like this? If this doesn’t suit your requirements, please brief us more about your requirements or provide some pictorial representation so that we can understand it better & help you out.

    __
    Suyash Singh
    Team CanvasJS

    #17643

    archange
    Member

    Works fine ! Thank you !

    I added a div (width = 600px) over the chartcontainer, align with the Y Axis and the right border is over the last point of the plot area.

    You rock !

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

You must be logged in to reply to this topic.