|
|
@ -20,7 +20,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should draw correctly', function () { |
|
|
|
it('should draw correctly', function () { |
|
|
@ -59,7 +59,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should draw correctly', function () { |
|
|
|
it('should draw correctly', function () { |
|
|
@ -114,7 +114,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should draw nested JSON correctly', function () { |
|
|
|
it('should draw nested JSON correctly', function () { |
|
|
@ -181,7 +181,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should return false in isOrderAsc and isOrderDesc functions', function () { |
|
|
|
it('should return false in isOrderAsc and isOrderDesc functions', function () { |
|
|
@ -201,7 +201,7 @@ describe('c3 chart data', function () { |
|
|
|
], |
|
|
|
], |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
describe('normal x', function () { |
|
|
|
describe('normal x', function () { |
|
|
@ -242,7 +242,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have correct number of xs', function () { |
|
|
|
it('should have correct number of xs', function () { |
|
|
@ -281,7 +281,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have correct number of xs', function () { |
|
|
|
it('should have correct number of xs', function () { |
|
|
@ -328,7 +328,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have correct number of xs', function () { |
|
|
|
it('should have correct number of xs', function () { |
|
|
@ -375,7 +375,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have correct number of xs', function () { |
|
|
|
it('should have correct number of xs', function () { |
|
|
@ -414,7 +414,7 @@ describe('c3 chart data', function () { |
|
|
|
labels: true, |
|
|
|
labels: true, |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should locate data labels in correct position', function () { |
|
|
|
it('should locate data labels in correct position', function () { |
|
|
@ -441,7 +441,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args to be stacked', function () { |
|
|
|
it('should update args to be stacked', function () { |
|
|
|
args.data.groups = [['data1', 'data2'], ['data3', 'data4']]; |
|
|
|
args.data.groups = [['data1', 'data2'], ['data3', 'data4']]; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should locate data labels in correct position', function () { |
|
|
|
it('should locate data labels in correct position', function () { |
|
|
@ -483,7 +483,7 @@ describe('c3 chart data', function () { |
|
|
|
labels: true, |
|
|
|
labels: true, |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should locate data labels in correct position', function () { |
|
|
|
it('should locate data labels in correct position', function () { |
|
|
@ -510,7 +510,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args to be stacked', function () { |
|
|
|
it('should update args to be stacked', function () { |
|
|
|
args.data.groups = [['data1', 'data2'], ['data3', 'data4']]; |
|
|
|
args.data.groups = [['data1', 'data2'], ['data3', 'data4']]; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should locate data labels in correct position', function () { |
|
|
|
it('should locate data labels in correct position', function () { |
|
|
@ -552,7 +552,7 @@ describe('c3 chart data', function () { |
|
|
|
labels: true, |
|
|
|
labels: true, |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should locate data labels in correct position', function () { |
|
|
|
it('should locate data labels in correct position', function () { |
|
|
@ -579,7 +579,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args to be stacked', function () { |
|
|
|
it('should update args to be stacked', function () { |
|
|
|
args.data.groups = [['data1', 'data2'], ['data3', 'data4']]; |
|
|
|
args.data.groups = [['data1', 'data2'], ['data3', 'data4']]; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should locate data labels in correct position', function () { |
|
|
|
it('should locate data labels in correct position', function () { |
|
|
@ -619,7 +619,7 @@ describe('c3 chart data', function () { |
|
|
|
labels: true |
|
|
|
labels: true |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have data labels on all data', function () { |
|
|
|
it('should have data labels on all data', function () { |
|
|
@ -655,7 +655,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have data labels on all data', function () { |
|
|
|
it('should have data labels on all data', function () { |
|
|
@ -688,7 +688,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have data labels on all data', function () { |
|
|
|
it('should have data labels on all data', function () { |
|
|
@ -717,7 +717,7 @@ describe('c3 chart data', function () { |
|
|
|
labels: true |
|
|
|
labels: true |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have proper y domain', function () { |
|
|
|
it('should have proper y domain', function () { |
|
|
@ -748,7 +748,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -770,7 +770,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args', function () { |
|
|
|
it('should update args', function () { |
|
|
|
args.data.type = 'line'; |
|
|
|
args.data.type = 'line'; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -799,7 +799,7 @@ describe('c3 chart data', function () { |
|
|
|
args.axis = { |
|
|
|
args.axis = { |
|
|
|
rotated: true |
|
|
|
rotated: true |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -821,7 +821,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args', function () { |
|
|
|
it('should update args', function () { |
|
|
|
args.data.type = 'line'; |
|
|
|
args.data.type = 'line'; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -866,7 +866,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -888,7 +888,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args', function () { |
|
|
|
it('should update args', function () { |
|
|
|
args.data.type = 'line'; |
|
|
|
args.data.type = 'line'; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -917,7 +917,7 @@ describe('c3 chart data', function () { |
|
|
|
args.axis = { |
|
|
|
args.axis = { |
|
|
|
rotated: true |
|
|
|
rotated: true |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -939,7 +939,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args', function () { |
|
|
|
it('should update args', function () { |
|
|
|
args.data.type = 'line'; |
|
|
|
args.data.type = 'line'; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -984,7 +984,7 @@ describe('c3 chart data', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -1006,7 +1006,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args', function () { |
|
|
|
it('should update args', function () { |
|
|
|
args.data.type = 'line'; |
|
|
|
args.data.type = 'line'; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -1034,7 +1034,7 @@ describe('c3 chart data', function () { |
|
|
|
args.axis = { |
|
|
|
args.axis = { |
|
|
|
rotated: true |
|
|
|
rotated: true |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -1056,7 +1056,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args', function () { |
|
|
|
it('should update args', function () { |
|
|
|
args.data.type = 'line'; |
|
|
|
args.data.type = 'line'; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -1096,7 +1096,7 @@ describe('c3 chart data', function () { |
|
|
|
type: 'bar', |
|
|
|
type: 'bar', |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -1118,7 +1118,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args', function () { |
|
|
|
it('should update args', function () { |
|
|
|
args.data.type = 'line'; |
|
|
|
args.data.type = 'line'; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -1147,7 +1147,7 @@ describe('c3 chart data', function () { |
|
|
|
args.axis = { |
|
|
|
args.axis = { |
|
|
|
rotated: true |
|
|
|
rotated: true |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -1169,7 +1169,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args', function () { |
|
|
|
it('should update args', function () { |
|
|
|
args.data.type = 'line'; |
|
|
|
args.data.type = 'line'; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -1209,7 +1209,7 @@ describe('c3 chart data', function () { |
|
|
|
type: 'bar', |
|
|
|
type: 'bar', |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -1231,7 +1231,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args', function () { |
|
|
|
it('should update args', function () { |
|
|
|
args.data.type = 'line'; |
|
|
|
args.data.type = 'line'; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -1260,7 +1260,7 @@ describe('c3 chart data', function () { |
|
|
|
args.axis = { |
|
|
|
args.axis = { |
|
|
|
rotated: true |
|
|
|
rotated: true |
|
|
|
}; |
|
|
|
}; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
@ -1282,7 +1282,7 @@ describe('c3 chart data', function () { |
|
|
|
|
|
|
|
|
|
|
|
it('should update args', function () { |
|
|
|
it('should update args', function () { |
|
|
|
args.data.type = 'line'; |
|
|
|
args.data.type = 'line'; |
|
|
|
expect(true).to.be.ok; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|
it('should have y domain with proper padding', function () { |
|
|
|