-
Notifications
You must be signed in to change notification settings - Fork 89
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
Chart based on month, date, hour and minutes. #114
Comments
@happytm all you should need to do is to define the data structure with the architecture you've described above. As for the slice sizes, you just need to add |
@vasturiano I am sorry I am not good in javascript. Is there any example function you can provide which automatically create this graph like you show it with random math in couple of your examples. Here I do not need random but fixed number of children of same size in each ring? Thanks. |
@vasturiano Is there any easy way to define data structure without manually defining 545000 data points ? I tried to do it manually but gave up due to huge data.
Thanks.
|
Something like this? Takes a while to run, though!
console.log(genNode()); |
@mattsgreen Thank you for help. Console log show it is working but how do I implement in chart ? I tried to do this but did not work.
|
Call the function within the data parameter: Sunburst() You can remove the console.log line, too 😊
|
@mattsgreen I did following and no error in console log but still no chart showing up.
|
Remove .label('name') |
@mattsgreen It works ! Thank you very much. |
@mattsgreen I have created simple home automation dashboard using uPlot but like to use sunburst-chart. I am not very good with javascript as you can see above. Can you please look at my repository linked below and help me? https://github.com/happytm/BatteryNode Thanks. |
I would like to create sunburst chart for front end of home automation system with following requirement.
The inner most ring is of 12 children named 1 to 12 for months all equal size.
The next rings consists of 31 children named 1-31 representing dates of each month mentioned above (total of 372 children
of same size for this ring).
The next rings consists of 24 children named 1-24 representing hours of each date mentioned above (total of 8928 children
of same size for this ring).
The next rings consists of 60 children named 1-60 representing minutes for each hour mentioned above (total of 535680 children of same size for this ring).
Is this possible? if so can you show me example code to create this chart?
Thanks.
The text was updated successfully, but these errors were encountered: