+
+
+
diff --git a/src/views/dashboard/configuration/WidgetConfig.vue b/src/views/dashboard/configuration/WidgetConfig.vue
index 10f7fcd2..32fdce89 100644
--- a/src/views/dashboard/configuration/WidgetConfig.vue
+++ b/src/views/dashboard/configuration/WidgetConfig.vue
@@ -13,221 +13,44 @@ 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. -->
-
+
+
+
diff --git a/src/views/dashboard/configuration/graph-styles/Line.vue b/src/views/dashboard/configuration/graph-styles/Line.vue
new file mode 100644
index 00000000..32b9abf3
--- /dev/null
+++ b/src/views/dashboard/configuration/graph-styles/Line.vue
@@ -0,0 +1,18 @@
+
+bar config
+
diff --git a/src/views/dashboard/configuration/graph-styles/index.ts b/src/views/dashboard/configuration/graph-styles/index.ts
new file mode 100644
index 00000000..8e487cc6
--- /dev/null
+++ b/src/views/dashboard/configuration/graph-styles/index.ts
@@ -0,0 +1,26 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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.
+ */
+
+import AreaConfig from "./Area.vue";
+import LineConfig from "./Line.vue";
+import BarConfig from "./Bar.vue";
+
+export default {
+ AreaConfig,
+ LineConfig,
+ BarConfig,
+};
diff --git a/src/views/dashboard/configuration/graph-styles/types.ts b/src/views/dashboard/configuration/graph-styles/types.ts
new file mode 100644
index 00000000..3d7d25d1
--- /dev/null
+++ b/src/views/dashboard/configuration/graph-styles/types.ts
@@ -0,0 +1,20 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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.
+ */
+export interface BarConfig {
+ showBackground: boolean;
+ barWidth: number;
+}
diff --git a/src/views/dashboard/data.ts b/src/views/dashboard/data.ts
index 7c637137..a87cdaa4 100644
--- a/src/views/dashboard/data.ts
+++ b/src/views/dashboard/data.ts
@@ -21,7 +21,7 @@ export const ChartTypes = [
{ label: "Heatmap", value: "Heatmap" },
{ label: "Pie", value: "Pie" },
{ label: "Card", value: "Card" },
- { label: "Progress Bar", value: "ProgressBar" },
+ { label: "Top List", value: "TopList" },
{ label: "Table", value: "Table" },
{ label: "Endpoint List", value: "EndpointList" },
{ label: "Instance List", value: "InstanceList" },
diff --git a/src/views/dashboard/graphs/Bar.vue b/src/views/dashboard/graphs/Bar.vue
index 0c5b5cc4..58c3ded6 100644
--- a/src/views/dashboard/graphs/Bar.vue
+++ b/src/views/dashboard/graphs/Bar.vue
@@ -32,9 +32,9 @@ const props = defineProps({
type: Object as PropType<{
theme: string;
showBackground: boolean;
- barMaxWidth: number;
+ barWidth: number;
}>,
- default: () => ({ theme: "light", showBackground: true, barMaxWidth: 30 }),
+ default: () => ({ theme: "light", showBackground: true, barWidth: 20 }),
},
});
/*global Nullable */
@@ -80,7 +80,7 @@ function getOption() {
name: i,
type: "bar",
symbol: "none",
- barWidth: props.config.barMaxWidth,
+ barWidth: props.config.barWidth,
stack: "sum",
lineStyle: {
width: 1.5,
diff --git a/src/views/dashboard/graphs/ProgressBar.vue b/src/views/dashboard/graphs/TopList.vue
similarity index 100%
rename from src/views/dashboard/graphs/ProgressBar.vue
rename to src/views/dashboard/graphs/TopList.vue
diff --git a/src/views/dashboard/graphs/index.ts b/src/views/dashboard/graphs/index.ts
index d073fa81..d7a79163 100644
--- a/src/views/dashboard/graphs/index.ts
+++ b/src/views/dashboard/graphs/index.ts
@@ -19,7 +19,7 @@ import Area from "./Area.vue";
import Line from "./Line.vue";
import Bar from "./Bar.vue";
import Heatmap from "./Heatmap.vue";
-import ProgressBar from "./ProgressBar.vue";
+import TopList from "./TopList.vue";
import Table from "./Table.vue";
import Pie from "./Pie.vue";
import Card from "./Card.vue";
@@ -28,7 +28,7 @@ export default {
Line,
Bar,
Heatmap,
- ProgressBar,
+ TopList,
Area,
Table,
Pie,