-
Notifications
You must be signed in to change notification settings - Fork 97
How to set X,Y value in VueUiXy #195
-
Currently, VueUiXy only allows setting Y values. How can I set the X values?
for example : [ 10, 45] ,[19,80] , [53,78],[ 101.9 , 57]
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
graphieros
May 26, 2025
In VueUiXy, X values are defined in the config, and all dataset items share the same scale. This is the 'time' axis.
const config = ref({ chart: { grid: { labels: { xAxisLabels: { values: [] // Set your x axis values here } } } } })
Replies: 2 comments 1 reply
-
series: [
[ 10, 45] ,
[ 19,80] ,
[53,78],
[101.9 , 57]
],
does not worked.
Beta Was this translation helpful? Give feedback.
All reactions
1 reply
-
Like VueUiHistoryPlot
const dataset: VueUiHistoryPlotDatasetItem[] = [ { name: "Series 1", values: [ { x: 355, y: 2.3, label: "January" }, { x: 112, y: 1.2, label: "February" }, { x: 313, y: 0.4, label: "March" }, { x: 555, y: 1.2, label: "April" }, ], }, ], }, ] ]
Beta Was this translation helpful? Give feedback.
All reactions
-
In VueUiXy, X values are defined in the config, and all dataset items share the same scale. This is the 'time' axis.
const config = ref({ chart: { grid: { labels: { xAxisLabels: { values: [] // Set your x axis values here } } } } })
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
graphieros
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment