You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The barchart needs the data, keys and indexby is to mandatory with some format in nivo. Can we change that format (for example)
data = [
{ quarter: 1, earnings: 13000 },
{ quarter: 2, earnings: 16500 },
{ quarter: 3, earnings: 14250 },
{ quarter: 4, earnings: 19000 }
];
keys={["earnings"]}
indexBy="quarter"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
data = [
{ quarter: 1, earnings: 13000 },
{ quarter: 2, earnings: 16500 },
{ quarter: 3, earnings: 14250 },
{ quarter: 4, earnings: 19000 }
];
keys={["earnings"]}
indexBy="quarter"
can we have the data as
data= [
[
"West",
206306.20716774464
],
[
"East",
157020.43506669998
],
[
"Central",
114640.8310316801
],
[
"South",
95591.81726551056
]
]
key = {null} and indexby {null}
or in another wise like
xAxis : [
"West",
"East",
"Central",
"South"
]
yAxis :[
206306.20716774464,
157020.43506669998,
114640.8310316801,
95591.81726551056
]
therefore data=[
xAxis, yAxis
]
key : xAxis
indexby: yAxis
is there any other possibilites to use like any of those?
Beta Was this translation helpful? Give feedback.
All reactions