File tree Expand file tree Collapse file tree 7 files changed +9
-5
lines changed
src/components/plugins/viz-components Expand file tree Collapse file tree 7 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @devtable/api" ,
3- "version" : " 10.46.0 " ,
3+ "version" : " 10.46.1 " ,
44 "description" : " " ,
55 "main" : " index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " @devtable/dashboard" ,
3- "version" : " 10.46.0 " ,
3+ "version" : " 10.46.1 " ,
44 "license" : " Apache-2.0" ,
55 "publishConfig" : {
66 "access" : " public" ,
Original file line number Diff line number Diff line change @@ -5,10 +5,12 @@ import { ICartesianChartConf } from '../type';
55export function getXAxes ( conf : ICartesianChartConf , xAxisData : $TSFixMe [ ] ) {
66 const { overflow, ...axisLabel } = conf . x_axis . axisLabel ;
77 const overflowOption = getLabelOverflowOptionOnAxis ( overflow . on_axis ) ;
8+ const xDataEmpty = xAxisData . length === 0 ;
89 return [
910 {
1011 data : xAxisData ,
1112 name : conf . x_axis_name ?? '' ,
13+ nameGap : xDataEmpty ? 5 : undefined ,
1214 id : 'main-x-axis' ,
1315 axisTick : {
1416 show : true ,
Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ import { IScatterChartConf } from '../type';
44export function getXAxes ( conf : IScatterChartConf , xAxisData : $TSFixMe [ ] ) {
55 const allNumbers = xAxisData . every ( ( d ) => ! Number . isNaN ( Number ( d ) ) ) ;
66 const { axisLabel } = conf . x_axis ;
7+ const xDataEmpty = xAxisData . length === 0 ;
78 return [
89 {
910 data : xAxisData ,
1011 name : conf . x_axis . name ?? '' ,
12+ nameGap : xDataEmpty ? 5 : undefined ,
1113 id : 'main-x-axis' ,
1214 axisTick : {
1315 show : true ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @devtable/root" ,
3- "version" : " 10.46.0 " ,
3+ "version" : " 10.46.1 " ,
44 "private" : true ,
55 "workspaces" : [
66 " api" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @devtable/settings-form" ,
3- "version" : " 10.46.0 " ,
3+ "version" : " 10.46.1 " ,
44 "license" : " Apache-2.0" ,
55 "publishConfig" : {
66 "access" : " public" ,
Original file line number Diff line number Diff line change 22 "name" : " @devtable/website" ,
33 "private" : true ,
44 "license" : " Apache-2.0" ,
5- "version" : " 10.46.0 " ,
5+ "version" : " 10.46.1 " ,
66 "scripts" : {
77 "dev" : " vite" ,
88 "preview" : " vite preview"
You can’t perform that action at this time.
0 commit comments