You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This function will iterate through the snapshots of the series, and grab the highest render times (sum of all component times). We'll then use it in the renderingScale function and compare with the render time of the current tab. The max render time will determine the Y-axis's highest number.
95
+
constcalculateMaxTotalRender=(serie: number): number=>{// This function will iterate through the snapshots of the series, and grab the highest render times (sum of all component times). We'll then use it in the renderingScale function and compare with the render time of the current tab. The max render time will determine the Y-axis's highest number.
// this function will use the domain array to assign each key a different color to make rectangle boxes and use range to set the color scheme each bar
112
+
constrenderingScale=scaleLinear<number>({// this function will use the domain array to assign each key a different color to make rectangle boxes and use range to set the color scheme each bar
122
113
domain: [0,Math.max(calculateMaxTotalRender(series),data.maxTotalRender)],// [minY, maxY] the domain array on rendering scale will set the coordinates for Y-axis points.
0 commit comments