javascript - Displaying data object in wrong category -


i have following implementation:

http://jsfiddle.net/c1dfuj1s/3/

i have 2 catgeories : 1970 , 1975.

my question though adding data 1975, adds 1970.

{    "series": "item6",    "category": "1975",    "value": 105  }, 

enter image description here

not sure why happens, can solve adding 0 value item 6 1970:

 {     "series": "item6",     "category": "1970",     "value": 0 },       {     "series": "item6",     "category": "1975",     "value": 105 }, 

updated fiddle


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -