jQWidgets Forums

jQuery UI Widgets Forums Chart legned and chart overlapping

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • legned and chart overlapping #52963

    alisofts
    Participant

    Hi, is there anyway to define relative positioning for the chart and the legend so that they wouldn’t overlap?
    I have over 20 items in my series with a vertical flow that is rendered in 2 columns and goes underneath the actual chart.
    See my chart settings below.

    Any help is appreciated,
    alisofts

    chartSettings = {
    title: ‘Market Value’,
    description: ”,
    showLegend: true,
    showBorderLine: true,
    legendLayout: { left: 250, top: 100, width: 300, height: 200, flow: ‘vertical’ },
    showToolTips: true,
    padding: { left: 5, top: 5, right: 5, bottom: 5 },
    titlePadding: { left: 0, top: 0, right: 0, bottom: 10 },
    enableAnimations: true,
    colorScheme: ‘scheme01’,
    seriesGroups:
    [
    {
    type: ‘pie’,
    offsetX: 120,
    showLabels: true,
    series: [
    {
    dataField: ‘percentage’,
    displayText: ‘category’,
    labelRadius: 50,
    initialAngle: 15,
    radius: 100,
    centerOffset: 0,
    formatFunction: function (value) {
    if (isNaN(value))
    return value;
    return parseFloat(value).toFixed(2) + ‘%’;
    }
    }
    ]
    }
    ]
    };

    legned and chart overlapping #53010

    Dimitar
    Participant

    Hello alisofts,

    You can change the legend’s position via the legendLayout property. Please check out its JSFiddle example to see it in action.

    Best Regards,
    Dimitar

    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.