mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
Added 'rotate' option to Morris.Donut
This commit is contained in:
parent
8f8aa35e3b
commit
72cdb4c6dc
@ -24,6 +24,7 @@ class Morris.Donut extends Morris.EventEmitter
|
||||
],
|
||||
backgroundColor: '#FFFFFF',
|
||||
labelColor: '#000000',
|
||||
rotate: 0,
|
||||
formatter: Morris.commas
|
||||
resize: false
|
||||
|
||||
@ -69,7 +70,7 @@ class Morris.Donut extends Morris.EventEmitter
|
||||
min = 5 / (2 * w)
|
||||
C = 1.9999 * Math.PI - min * @data.length
|
||||
|
||||
last = 0
|
||||
last = (this.options.rotate / 180) / Math.PI
|
||||
idx = 0
|
||||
@segments = []
|
||||
for value, i in @values
|
||||
|
Loading…
Reference in New Issue
Block a user