Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firstSliceAngle (Pie, Doughnut) rotation #666

Closed
ghost opened this issue Feb 6, 2020 · 2 comments · Fixed by #809
Closed

firstSliceAngle (Pie, Doughnut) rotation #666

ghost opened this issue Feb 6, 2020 · 2 comments · Fixed by #809
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Feb 6, 2020

Please add feature for the ability to rotate Pie/Doughnut charts based on the First Slice Angle option.

    // src/core-interfaces.ts & types/index.d.ts
...
    displayBlanksAs?: string
    fill?: string,
    firstSliceAngle? : number,
    hasArea?: boolean
...
// src/gen-charts.ts
...
// 4: Close "SERIES"
    strXml += '  </c:ser>'
    strXml += `  <c:firstSliceAng val="${opts.firstSliceAngle || 0}"/>`
    ...

Thank you.

@gitbrent
Copy link
Owner

gitbrent commented Feb 6, 2020

What are the possible values for firstSliceAngle? 0-360?
Any screencaps of what the results look like?
Does this apply to both 2D and 3D pie charts?

@ghost
Copy link
Author

ghost commented Feb 6, 2020

Possible values: 0-360.
Applicable: 2D, 3D Pie, Doughnut
Not Applicable: Composite [second plot] Pie Charts (pie with pie for sector; pie with column for sector)

2D Pie Example of change:
image

2D Pie - UI Option:
image

3D Pie - UI Option:
image

Doughnut - UI Option:
image

Does not depend on the number of series.

@gitbrent gitbrent self-assigned this Feb 11, 2020
@gitbrent gitbrent added this to the 3.2.0 milestone Feb 11, 2020
@gitbrent gitbrent modified the milestones: 3.2.0, 3.3.0 May 14, 2020
@gitbrent gitbrent modified the milestones: 3.3.0, 3.4.0 Aug 9, 2020
@gitbrent gitbrent linked a pull request Dec 23, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant