jQuery UI Widgets Forums Chart Pie Chart Left Justified

This topic contains 2 replies, has 2 voices, and was last updated by  macgroom 11 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Pie Chart Left Justified #15782

    macgroom
    Member

    Hi there

    I’ve been looking at the sample code for Pie chart with legend.

    The pie chat seems to render in the middle and then you position the legend to the right of it.

    Is it possible to have the pie widget left justified so that there is more room on the right for longer legends?

    Similarly could I position it right justified and have the legend on the left?

    Thanks

    Mac.

    Pie Chart Left Justified #15821

    Dimitar
    Participant

    Hello Mac,

    By modifying the padding and legendLayout properties, you can achieve whatever alignment you wish. For example, to have the pie chart appear on the left in the Pie Series Legend example, set padding as follows:

                    padding: { left: 5, top: 5, right: 400, bottom: 5 },

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Pie Chart Left Justified #15834

    macgroom
    Member

    Hi Dimitar

    Many thanks for your quick reply, I got it 🙂

    Mac.

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

You must be logged in to reply to this topic.