File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/class-solid/src/components/plots Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const AxisBottom = (props: AxisProps) => {
1919 props . type && updateChart ( "scalePropsX" , { type : props . type } ) ;
2020 } ) ;
2121
22- const format = ( ) => ( props . tickFormat ? props . tickFormat : d3 . format ( ".3g " ) ) ;
22+ const format = ( ) => ( props . tickFormat ? props . tickFormat : d3 . format ( ".4 " ) ) ;
2323 const ticks = ( ) => props . tickValues || generateTicks ( chart . scaleX . domain ( ) ) ;
2424 return (
2525 < g transform = { `translate(0,${ chart . innerHeight - 0.5 } )` } >
@@ -49,7 +49,7 @@ export const AxisLeft = (props: AxisProps) => {
4949 } ) ;
5050
5151 const ticks = ( ) => props . tickValues || generateTicks ( chart . scaleY . domain ( ) ) ;
52- const format = ( ) => ( props . tickFormat ? props . tickFormat : d3 . format ( ".0f " ) ) ;
52+ const format = ( ) => ( props . tickFormat ? props . tickFormat : d3 . format ( ".4 " ) ) ;
5353 return (
5454 < g transform = "translate(-0.5,0)" >
5555 < line
You can’t perform that action at this time.
0 commit comments