Fixes quarters

This commit is contained in:
Roman Galochkin 2020-03-02 08:31:09 +03:00
parent 9592e50c1b
commit 9a41be8c37

View File

@ -430,7 +430,10 @@ export class CdfChartD3 {
case 'months': case 'months':
return d3.timeMonth.every(4); return d3.timeMonth.every(4);
case 'quarters': case 'quarters':
return d3.timeMonth.every(3); // It is temporary solution, but it works
// if the difference between edge dates is not
// much more than 10 units.
return d3.timeMonth.every(12);
case 'hours': case 'hours':
return d3.timeHour.every(10); return d3.timeHour.every(10);
case 'days': case 'days':