-
NandaNovember 7, 2017 at 6:34 am #8082
Hello,
I bought Corona component to compare data of some organizations. I have 5 dimensions to compare with each organization. So, instead of 24 hours, I want to use 5 dimensions. Instead of page url, I want to use organization name. Instead of number of page views, I have ‘score’.
But looks like the 24 hours logic is not easy to change. Hence, posting this. Can you guide him in how I can achieve it?
Regards,
Nanda KishorevizulyNovember 7, 2017 at 10:28 am #8084Hello Nanda,
Thank you for your question. This should actually be pretty easy for you to implement. The Corona chart does its best to automatically calculate the radial scale for you based on the the min and max values of viz.x and viz.y functions you pass into it.
The demo you got in your download has the following code.
viz.y(function (d, i) { return d.views; }) .x(function (d, i) { return d.hour; })
Assuming your data has the properties d.organization and d.score you should be able to do this:
viz.y(function (d, i) { return d.score; }) .x(function (d, i) { return d.organization; })
Let me know if that doesn’t work and I can help you further.
Cheers,
Tom
sparkNovember 8, 2017 at 11:39 am #8087Hi,
I tried to make the corona chart work with the same data.
But i get error in XMLHttp error in d3.csv().I hosted the whole thing in a local server still i get the same error.
I don’t know what’s wrong with it.
Please helpvizulyNovember 8, 2017 at 2:04 pm #8088Hi,
Typically those errors are either security issues related to your local setup OR the URL you are trying to reach has the wrong path. I would suggest opening up a browser debugger and validate you can open the file you are trying to reach directly in your browser.
If you want to post your stack trace I might be able to offer more help.
Cheers,
Tom
-
|
You must be logged in to reply to this topic.