jQWidgets Forums

jQuery UI Widgets Forums Chart Set donut chart start angle from source

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 8 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Set donut chart start angle from source #89268

    David.Berglund
    Participant

    Hi.

    I would like to set my donut charts start angles from my source, inside the chartSettings. (I want to show a donut chart, like the example called “Dashboard”, with percentage)
    I have tried for a while now, and can’t figure it out. So I thought that by adding two Series and have the first one (representing the actual value) start at angle 0 and end at angle “X*360/100”. and the second one start at angle “X*360/100” and end at angle 360 would do the trick.

    I am using your chars in a way that does not allow me to manipulate the charts other than in the chartSettings.
    So if there is a way to do this, or if you have a better idea, I would be very pleased.

    Thank you
    David

    Set donut chart start angle from source #89280

    ivailo
    Participant

    Hi David.Berglund,

    You can use initialAngle property tho set the start angle of your chart. This donut chart demo will be helpful for you.
    The initialAngle is used about the first segment. All other segments are set in relation to they proportions in sequence.

    Best Regards,
    Ivailo Ivanov

    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.