refine use ticks[ticks.length - 1].value
This commit is contained in:
@@ -10,7 +10,8 @@ const TOFIXED_DEICMAL = 1;
|
||||
export const getStepSizeOfYTicks = (maxTimeInSecond, numOfParts) => {
|
||||
const {unitToUse, timeValue} = getTimeUnitAndValueToUse(maxTimeInSecond);
|
||||
let resultStepSize;
|
||||
resultStepSize = (timeValue * (1.125) / numOfParts);
|
||||
const getLarger = 1 + (1 / (numOfParts - 1));
|
||||
resultStepSize = (timeValue * getLarger / numOfParts);
|
||||
|
||||
return {resultStepSize, unitToUse};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user