Posts by user141661 • 71 points
3 posts
-
2
votes1
answer65
viewsA: Map JSON to array-specific format for Google Charts line chart
var result = [ { "Countrys": [ "Cyprus", "Finland", "Germany", "Grenada", "Haiti", "Ireland", "North Korea", "Swaziland", "Turkmenistan", "Zambia" ], "ListDataPerYear": [ { "Year": 2011,…
-
0
votes3
answers203
viewsA: sort array by date
You could use the function sort PHP if you had your dates in the "Year-Month-Day" format, or if your dates were a timestamp. By the way, this is the way I would recommend you record in your…
-
2
votes1
answer83
viewsA: Limit characters in div and display points only if necessary?
How can I display the points only if H2 is going to exceed the limit? Just add the condition of only executing the code if the string is greater than 100 characters, agree?…