diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 8e4297ca..f52ec8d1 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -106,6 +106,8 @@ const msg = { no: "No", tableHeaderCol1: "Name of the first column of the table", tableHeaderCol2: "Name of the second column of the table", + showXAxis: "Show X Axis", + showYAxis: "Show Y Axis", hourTip: "Select Hour", minuteTip: "Select Minute", secondTip: "Select Second", diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index 778f846b..5ba39161 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -106,6 +106,8 @@ const msg = { no: "否", tableHeaderCol1: "表格的第一列的名称", tableHeaderCol2: "表格的第二列的名称", + showXAxis: "显示X轴", + showYAxis: "显示Y轴", hourTip: "选择小时", minuteTip: "选择分钟", secondTip: "选择秒数", diff --git a/src/views/dashboard/configuration/Widget.vue b/src/views/dashboard/configuration/Widget.vue index 48fc4ee2..c0e569ce 100644 --- a/src/views/dashboard/configuration/Widget.vue +++ b/src/views/dashboard/configuration/Widget.vue @@ -31,7 +31,13 @@ limitations under the License. --> :is="dashboardStore.selectedGrid.graph.type" :intervalTime="appStoreWithOut.intervalTime" :data="states.source" - :config="dashboardStore.selectedGrid" + :config="{ + ...dashboardStore.selectedGrid.graph, + i: dashboardStore.selectedGrid.i, + metrics: dashboardStore.selectedGrid.metrics, + metricTypes: dashboardStore.selectedGrid.metricTypes, + standard: dashboardStore.selectedGrid.standard, + }" />
{{ t("noData") }} diff --git a/src/views/dashboard/configuration/widget/graph-styles/Line.vue b/src/views/dashboard/configuration/widget/graph-styles/Line.vue index 159bca52..219674cc 100644 --- a/src/views/dashboard/configuration/widget/graph-styles/Line.vue +++ b/src/views/dashboard/configuration/widget/graph-styles/Line.vue @@ -13,6 +13,24 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->