jQuery UI Widgets Forums Chart Chart size

This topic contains 1 reply, has 2 voices, and was last updated by  ivanpeevski 7 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Chart size Posts
  • Chart size #133936

    mrezzonico
    Participant

    Hi,

    I know that to define the size of the chartContainer, the following code is used:
    <div id=’chartContainer’ style=”width:850px; height:500px”></div>

    but how can I define the size of the chart, that is, the portion defined by the grid.

    I have tryed with:
    var settings = {
    width: 100,
    height: 100
    }

    but I receive the error “Uncaught Invalid property: width”

    Regards
    Miche

    Chart size #133941

    ivanpeevski
    Participant

    Hi mrezzonico,

    You can’t define the exact width of the chart grid itself, but you can set the padding property to:
    padding: { left: 0, top: 0, right: 0, bottom: 0 },
    In this way, the chart will take the full width of the container. Here is an example – https://jsfiddle.net/gst5jwdy/

    Best Regards,
    Ivan Peevski
    jQWidgets Support
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.