jQuery UI Widgets Forums Chart pie graph size issue

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • pie graph size issue #7688

    kamal sharma
    Member

    when i am changing my div size then pie graph is not automatically decreasing or increasing its radios size . so  i want to know that, is this possible to reduce or increase pie graph size according to the div size. while all other graphs are automatically set size according to div size.

    Thanks & Regards

    kamal sharma

    pie graph size issue #7728

    Peter Stoev
    Keymaster

    Hi kamal sharma,

    The pie chart’s radius property specifies the circle’s size.

    Code snippet:

       var settings = {
    title: "Desktop browsers share in Dec 2011",
    description: "(source: wikipedia.org)",
    enableAnimations: true,
    showLegend: false,
    legendPosition: { left: 520, top: 140, width: 100, height: 100 },
    padding: { left: 5, top: 5, right: 5, bottom: 5 },
    titlePadding: { left: 0, top: 0, right: 0, bottom: 10 },
    source: dataAdapter,
    colorScheme: 'scheme02',
    seriesGroups:
    [
    {
    type: 'pie',
    showLabels: true,
    series:
    [
    {
    dataField: 'Share',
    displayText: 'Browser',
    labelRadius: 100,
    initialAngle: 15,
    radius: 130,
    centerOffset: 0,
    formatSettings: { sufix: '%', decimalPlaces: 1 }
    }
    ]
    }
    ]
    };
    // setup the chart
    $('#jqxChart').jqxChart(settings);

    Sample using the above initialization code: javascript_chart_pie_series.htm.

    Best Wishes,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.