feat:Added piechart in Dashboard

This commit is contained in:
2025-02-22 15:35:48 +05:30
parent 357071b967
commit f7cb1af2c4
384 changed files with 112765 additions and 8 deletions
+22
View File
@@ -0,0 +1,22 @@
describe('SVG.easing', function() {
var easedValues = {
'-':0.5,
'<>':0.5,
'>':0.7071,
'<':0.2929,
}
;['-', '<>', '<', '>'].forEach(function(el) {
describe(el, function() {
it('is 0 at 0', function() {
expect(SVG.easing[el](0)).toBe(0)
})
it('is 1 at 1', function() {
expect(Math.round(SVG.easing[el](1)*1000)/1000).toBe(1) // we need to round cause for some reason at some point 1==0.999999999
})
it('is eased at 0.5', function() {
expect(SVG.easing[el](0.5)).toBeCloseTo(easedValues[el])
})
})
})
})