File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/components/DataStructures/Graph/GraphRenderer Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ class GraphRenderer extends Renderer {
161
161
max ,
162
162
center ,
163
163
stepSize = 30 ,
164
- stepHeight = 15 , // size of scale mark tick on axes
164
+ stepHeight = 25 , // size of scale mark tick on axes
165
165
increment = 1
166
166
) {
167
167
const scales = [ ] ;
@@ -253,12 +253,13 @@ class GraphRenderer extends Renderer {
253
253
254
254
/*
255
255
* Calculate value increment of axis coordinate labels.
256
+ * XXX best adjust various sizes and zoom for extra small/large maxCoord
256
257
*/
257
258
calculateIncrement ( axisScale , stepSize = 30 ) {
258
259
const maxCoord = ( axisScale /= stepSize ) ; // The maximum coordinate each axis displays.
259
- if ( maxCoord <= 20 ) {
260
+ if ( maxCoord <= 10 ) {
260
261
return 1 ;
261
- } else if ( maxCoord <= 50 ) {
262
+ } else if ( maxCoord <= 90 ) {
262
263
return 5 ;
263
264
}
264
265
const maxIncrement = 10 ;
You can’t perform that action at this time.
0 commit comments