Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the data set in different years of race chart #4359

Open
faizan-naeemm opened this issue Jan 16, 2024 · 3 comments
Open

How to change the data set in different years of race chart #4359

faizan-naeemm opened this issue Jan 16, 2024 · 3 comments

Comments

@faizan-naeemm
Copy link

I have plotted a race chart , but for my all year object there is different data set for example ..

var allData = {
"2003": [
{
"network": "Facebook",
"MAU": 4020
},
{
"network": "Flickr",
"MAU": 0
}
],
"2004": [
{
"network": "Meta",
"MAU": 2000
},
{
"network": "Flickr",
"MAU": 3675135
}
]

in 2003 i have facebook , in 2004 I have meta , but in chart it is showing the facebook in 2004 with the value of meta .

@zeroin
Copy link
Collaborator

zeroin commented Jan 16, 2024

I would suggest to use the same name, like Meta (Facebook) for all the years.

@faizan-naeemm
Copy link
Author

Its just an example , but in real problem I have different companies which are not same @zeroin

@zeroin
Copy link
Collaborator

zeroin commented Jan 16, 2024

In this chart: https://www.amcharts.com/demos/bar-chart-race/
we add 0 for all the existing names in each year and it solves the problem of not the same data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants