ffxv | Final Fantasy XV Reverse Engineerng and libraries
kandi X-RAY | ffxv Summary
kandi X-RAY | ffxv Summary
Final Fantasy XV Reverse Engineerng and libraries
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ffxv
ffxv Key Features
ffxv Examples and Code Snippets
Community Discussions
Trending Discussions on ffxv
QUESTION
I'm animating an amchart timeline pie chart and am currently trying to get it to display months and days instead of just days, as i have a lot of data and "day 132" isn't the best way to illustrate it.
Is there an easy way to do so with amcharts itself or maybe just js? I tried with a list of " If currentDay>=32 && currentDay<60 " type arguments to define months but that didn't work and even if it had, I'm sure it's not the most efficient way to do so. Unfortunately, the preview here won't work because I have way too much code/data for this chart to put here so I'll link a jsfiddle.
https://jsfiddle.net/ca18nzk1/
Thanks ! : )
...ANSWER
Answered 2018-May-13 at 21:09AmCharts doesn't have a built-in solution for this case, especially in a pie chart, so you have to come up with something on your own. Depending on your needs/accuracy, you could just divide/mod the current day into months/days instead of doing a list of ifs like you proposed, or you can use something like MomentJS to turn your day of year value into an actual date to get the month and date, for example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ffxv
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page