Skip to content

Commit 9525db2

Browse files
committed
Minor line chart style adjustments
1 parent 85f64d8 commit 9525db2

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

styles/native/js/core/widgets/linechart.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export const com_mendix_widget_native_linechart_LineChart = {
6262
fontFamily: font.family,
6363
fontSize: font.sizeSmall,
6464
fontWeight: font.weightNormal,
65+
lineColor: border.color,
6566
label: {
6667
/*
6768
All TextStyle properties are allowed and:
@@ -74,8 +75,8 @@ export const com_mendix_widget_native_linechart_LineChart = {
7475
fontFamily: font.family,
7576
fontSize: font.sizeSmall,
7677
fontWeight: font.weightNormal,
78+
relativePositionGrid: "bottom"
7779
},
78-
lineColor: border.color,
7980
},
8081
yAxis: {
8182
/*
@@ -93,6 +94,7 @@ export const com_mendix_widget_native_linechart_LineChart = {
9394
fontFamily: font.family,
9495
fontSize: font.sizeSmall,
9596
fontWeight: font.weightNormal,
97+
lineColor: border.color,
9698
label: {
9799
/*
98100
All TextStyle properties are allowed and:
@@ -104,8 +106,8 @@ export const com_mendix_widget_native_linechart_LineChart = {
104106
fontFamily: font.family,
105107
fontSize: font.sizeSmall,
106108
fontWeight: font.weightNormal,
109+
relativePositionGrid: "top"
107110
},
108-
lineColor: border.color,
109111
},
110112
lineStyles: {
111113
line: {

styles/native/ts/core/widgets/linechart.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const com_mendix_widget_native_linechart_LineChart: LineChartType = {
6464
fontFamily: font.family,
6565
fontSize: font.sizeSmall,
6666
fontWeight: font.weightNormal,
67+
lineColor: border.color,
6768
label: {
6869
/*
6970
All TextStyle properties are allowed and:
@@ -76,8 +77,8 @@ export const com_mendix_widget_native_linechart_LineChart: LineChartType = {
7677
fontFamily: font.family,
7778
fontSize: font.sizeSmall,
7879
fontWeight: font.weightNormal,
80+
relativePositionGrid: "bottom"
7981
},
80-
lineColor: border.color,
8182
},
8283
yAxis: {
8384
/*
@@ -95,6 +96,7 @@ export const com_mendix_widget_native_linechart_LineChart: LineChartType = {
9596
fontFamily: font.family,
9697
fontSize: font.sizeSmall,
9798
fontWeight: font.weightNormal,
99+
lineColor: border.color,
98100
label: {
99101
/*
100102
All TextStyle properties are allowed and:
@@ -106,8 +108,8 @@ export const com_mendix_widget_native_linechart_LineChart: LineChartType = {
106108
fontFamily: font.family,
107109
fontSize: font.sizeSmall,
108110
fontWeight: font.weightNormal,
111+
relativePositionGrid: "top"
109112
},
110-
lineColor: border.color,
111113
},
112114
lineStyles: {
113115
line: {

styles/native/ts/types/widgets.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ interface LineChartAxisStyle<T extends "X" | "Y"> {
294294
fontSize?: number;
295295
fontStyle?: "normal" | "italic";
296296
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
297+
lineColor?: string;
298+
width?: number;
297299
label?: TextStyle & {
298300
relativePositionGrid?: T extends "X" ? "bottom" | "right" : "top" | "left";
299301
};
300-
lineColor?: string;
301-
width?: number;
302302
}
303303

304304
interface LineChartLineStyle {

0 commit comments

Comments
 (0)