Skip to content

Commit b54d3f5

Browse files
committed
New feature - VueUiXy added support for multiple y Axis scales
1 parent ffa91ac commit b54d3f5

File tree

6 files changed

+291
-75
lines changed

6 files changed

+291
-75
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-data-ui",
33
"private": false,
4-
"version": "2.1.49",
4+
"version": "2.1.50",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
77
"keywords": [

src/App.vue

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,26 +98,32 @@ const dataset = ref([
9898
const dataset2 = ref([
9999
{
100100
name: "Series 1",
101-
series: [ -55, -34, -21, -13, -8, -5, -3, -2, -1, -1, 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55],
102-
type: "bar",
103-
color: "rgb(95,139,238)"
101+
series: [ 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55],
102+
type: "plot",
103+
color: "rgb(95,139,238)",
104+
smooth: true,
105+
scaleSteps: 20,
106+
scaleLabel: "label test"
104107
},
105108
{
106109
name: "Series 2",
107110
series: [ 55, 34, 21, 13, 8, 5, 3, 2, 1, 1, 0, -1, -1, -2, -3, -5, -8, -13, -21, -34, -55],
108111
type: "line",
109112
color: "rgb(66,211,146)",
110-
useArea: true,
113+
useArea: false,
111114
useProgression: true,
112115
dataLabels: false,
113-
shape: "hexagon"
116+
shape: "hexagon",
117+
scaleLabel: "label test"
114118
},
115119
{
116120
name: "Series 3",
117-
series: [ 64, 60, 52, 42, 30, 16, 0, -18, -38, -46, -50, -46, -38, -18, 0, 16, 30, 42, 52, 60, 64],
118-
type: "plot",
121+
series: [ 3600, 2900, 4700, 2950, 3222, 4786, 3333, 2222, 4444, 5555, 3336, 2272, 1112, 3337, 2298],
122+
type: "line",
119123
color: "rgb(255,100,0)",
120-
shape: "star"
124+
shape: "star",
125+
smooth: true,
126+
scaleLabel: "label test"
121127
},
122128
{
123129
name: "Series 4",
@@ -127,16 +133,19 @@ const dataset2 = ref([
127133
useArea: false,
128134
dataLabels: false,
129135
color: "rgb(200,200,50)",
130-
shape: "pentagon"
136+
shape: "pentagon",
137+
scaleLabel: "label test"
131138
},
132139
{
133140
name: "Target",
134-
series: [ 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],
141+
series: [ -500, 500, -500, 500, -500, 500, -500, 500, -500, 500, -500, 500],
135142
type: "line",
136143
color: "#404040",
137144
dashed: true,
138145
useTag: "start",
139146
dataLabels: false,
147+
scaleSteps: 20,
148+
scaleLabel: "label test"
140149
},
141150
]);
142151
@@ -2679,6 +2688,9 @@ const xyConfig = ref({
26792688
chart: {
26802689
grid: {
26812690
labels: {
2691+
yAxis: {
2692+
useIndividualScale: true
2693+
},
26822694
xAxisLabels: {
26832695
rotation: 0,
26842696
values: ['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC']
@@ -4618,7 +4630,7 @@ const dumbConfig = ref({
46184630
</template>
46194631
</Box>
46204632

4621-
<Box @copy="copyConfig(PROD_CONFIG.vue_ui_xy)">
4633+
<Box open @copy="copyConfig(PROD_CONFIG.vue_ui_xy)">
46224634
<template #title>
46234635
<BaseIcon name="chartLine" />
46244636
VueUiXy
@@ -4655,12 +4667,12 @@ const dumbConfig = ref({
46554667
</div>
46564668
</template>
46574669
</VueDataUiTest>
4658-
<VueDataUiTest
4670+
<!-- <VueDataUiTest
46594671
component="VueUiXy"
46604672
:config="xyConfig"
46614673
:dataset="dataset"
46624674
>
4663-
</VueDataUiTest>
4675+
</VueDataUiTest> -->
46644676
</template>
46654677
<template #prod>
46664678
<VueDataUi
@@ -4676,11 +4688,11 @@ const dumbConfig = ref({
46764688
</template>
46774689

46784690
</VueDataUi>
4679-
<VueDataUi
4691+
<!-- <VueDataUi
46804692
component="VueUiXy"
46814693
:config="xyConfig"
46824694
:dataset="dataset"
4683-
/>
4695+
/> -->
46844696
</template>
46854697
<template #config>
46864698
{{ PROD_CONFIG.vue_ui_xy }}

0 commit comments

Comments
 (0)