File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ describe('getDefaultAxis()', () => {
6464 grid : true ,
6565 ticks : false ,
6666 tickCount : {
67- signal : 'clamp(ceil(height/60 ), 2, 10)' ,
67+ signal : 'clamp(ceil(height/100 ), 2, 10)' ,
6868 } ,
6969 tickMinStep : 5 ,
7070 title : 'Users' ,
@@ -127,7 +127,7 @@ describe('getDefaultAxis()', () => {
127127 grid : true ,
128128 ticks : false ,
129129 tickCount : {
130- signal : 'clamp(ceil(height/60 ), 2, 10)' ,
130+ signal : 'clamp(ceil(height/100 ), 2, 10)' ,
131131 } ,
132132 tickMinStep : undefined ,
133133 title : 'Users' ,
Original file line number Diff line number Diff line change @@ -278,9 +278,9 @@ const getDefaultOpposingScaleNameFromPosition = (position: Position) => {
278278export const getTickCount = ( position : Position , grid : boolean ) : SignalRef | undefined => {
279279 if ( ! grid ) return ;
280280 const range = [ 'top' , 'bottom' ] . includes ( position ) ? 'width' : 'height' ;
281- // divide the range by 60 to get the ideal number of ticks (grid lines)
281+ // divide the range by 100 to get the ideal number of ticks (grid lines)
282282 // clamp axis tick count to a min of 2 and max of 10
283- return { signal : `clamp(ceil(${ range } /60 ), 2, 10)` } ;
283+ return { signal : `clamp(ceil(${ range } /100 ), 2, 10)` } ;
284284} ;
285285
286286/**
Original file line number Diff line number Diff line change @@ -56,23 +56,23 @@ describe('Chart', () => {
5656 expect ( chart ) . toBeInTheDocument ( ) ;
5757
5858 expect ( screen . getByText ( 'nov.' ) ) . toBeInTheDocument ( ) ;
59- expect ( screen . getByText ( '2 000,00' ) ) . toBeInTheDocument ( ) ;
59+ expect ( screen . getByText ( '5 000,00' ) ) . toBeInTheDocument ( ) ;
6060 } ) ;
6161 test ( 'Locale sets the time and number format correctly for de-DE' , async ( ) => {
6262 render ( < Locale { ...Locale . args } locale = "de-DE" /> ) ;
6363 const chart = await findChart ( ) ;
6464 expect ( chart ) . toBeInTheDocument ( ) ;
6565
6666 expect ( screen . getByText ( 'Nov' ) ) . toBeInTheDocument ( ) ;
67- expect ( screen . getByText ( '2 .000,00' ) ) . toBeInTheDocument ( ) ;
67+ expect ( screen . getByText ( '5 .000,00' ) ) . toBeInTheDocument ( ) ;
6868 } ) ;
6969 test ( 'Locale sets the time and number format correctly for en-US' , async ( ) => {
7070 render ( < Locale { ...Locale . args } locale = "en-US" /> ) ;
7171 const chart = await findChart ( ) ;
7272 expect ( chart ) . toBeInTheDocument ( ) ;
7373
7474 expect ( screen . getByText ( 'Nov' ) ) . toBeInTheDocument ( ) ;
75- expect ( screen . getByText ( '2 ,000.00' ) ) . toBeInTheDocument ( ) ;
75+ expect ( screen . getByText ( '5 ,000.00' ) ) . toBeInTheDocument ( ) ;
7676 } ) ;
7777 } ) ;
7878
You can’t perform that action at this time.
0 commit comments